POST Refunds/CP/Submit?access_token={access_token}
请求参数
URI 参数
| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| access_token | string |
Required |
Body 参数
SubmitOrderRefundRP| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| orderId | string |
无。 |
|
| refundType | integer |
无。 |
|
| refundAmount | decimal number |
无。 |
|
| returnPayId | string |
无。 |
|
| reasonId | string |
无。 |
|
| remark | string |
无。 |
|
| detail | SubmitOrderRefundDetailInfo 集合 |
无。 |
|
| unitId | string |
无。 |
|
| userId | string |
无。 |
请求格式
application/json, text/json
示例:
{
"orderId": "sample string 1",
"refundType": 2,
"refundAmount": 3.0,
"returnPayId": "sample string 4",
"reasonId": "sample string 5",
"remark": "sample string 6",
"detail": [
{
"orderDetailId": "sample string 1",
"objectId": "sample string 2"
},
{
"orderDetailId": "sample string 1",
"objectId": "sample string 2"
}
],
"unitId": "sample string 7",
"userId": "sample string 8"
}
application/xml, text/xml
示例:
<SubmitOrderRefundRP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JIT.CPOS.DTO.Module.Order.SalesReturn.Request">
<unitId xmlns="http://schemas.datacontract.org/2004/07/JIT.CPOS.DTO.Base">sample string 7</unitId>
<userId xmlns="http://schemas.datacontract.org/2004/07/JIT.CPOS.DTO.Base">sample string 8</userId>
<detail>
<SubmitOrderRefundDetailInfo>
<objectId>sample string 2</objectId>
<orderDetailId>sample string 1</orderDetailId>
</SubmitOrderRefundDetailInfo>
<SubmitOrderRefundDetailInfo>
<objectId>sample string 2</objectId>
<orderDetailId>sample string 1</orderDetailId>
</SubmitOrderRefundDetailInfo>
</detail>
<orderId>sample string 1</orderId>
<reasonId>sample string 5</reasonId>
<refundAmount>3</refundAmount>
<refundType>2</refundType>
<remark>sample string 6</remark>
<returnPayId>sample string 4</returnPayId>
</SubmitOrderRefundRP>
application/x-www-form-urlencoded
示例:
Sample not available.
Response 信息
资源描述
HttpResponseMessage| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| Version | Version |
无。 |
|
| Content | HttpContent |
无。 |
|
| StatusCode | HttpStatusCode |
无。 |
|
| ReasonPhrase | string |
无。 |
|
| Headers | Object 集合 |
无。 |
|
| RequestMessage | HttpRequestMessage |
无。 |
|
| IsSuccessStatusCode | boolean |
无。 |