Cancel Order

Request Service

  • cancelOrder

Request Method:

  • POST

Request Sample:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/">
    <SOAP-ENV:Body>
        <ns1:callService>
            <paramsJson>
                {
                  "order_code":"XX-123456-121",
                  "sale_order_code":"",
                  "warehouse_id":"",
                  "reason":"取消订单原因"
                }
            </paramsJson>
            <appToken>appToken</appToken>
            <appKey>appKey</appKey>
            <service>cancelOrder</service>
        </ns1:callService>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Request Parameter:

Parameter Type Required Remark 长度
order_code String N Order code 30
sale_order_code String N Reference Number 50
warehouse_id String N Warehouse Id
reason String N Cancel reason 200

Response Sample:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP-ENV:Envelope xmlns:ns1="http://www.example.org/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
        <ns1:callServiceResponse>
            <response>
                {
                  "ask":"Success",
                  "message":"(API截单废弃)SUCCESS取消订单原因",
                  "nextPage":false,
                  "order_code":"XX-123456-121"
                }
            </response>
        </ns1:callServiceResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response Parameter:

Parameter Type Remark
ask String Request Result: success or failure
cancel_status String Cancellation status 1: Cancellation in progress 2: Cancellation successful 3: Cancellation failed 4: Cancellation successful but not refunded
message String Return Information
nextPage boolean true There is a next page, false there is no next page
order_code String Order number
Error Object Reference Error Format
作者:WesternPost  创建时间:2021-07-02 01:46
最后编辑:覃超华  更新时间:2024-12-31 02:56