May 19, 2021 WeChat Mini Program Development Document
This interface should be called on the server side, as detailed in the Service Side API.
Pre-cancel the delivery order interface
POST https://api.weixin.qq.com/cgi-bin/express/local/business/order/precancel?access_token=ACCESS_TOKEN
Property | Type | The default | Required | Description |
---|---|---|---|---|
access_token | string | Is | The interface calls the credentials | |
shopid | string | Is | Merchant id, appkey assigned by the distribution company | |
shop_order_id | string | Is | The ID that uniquely identifies the order and is generated by the merchant | |
shop_no | string | Is | Merchant store number, registered in the distribution company, flash delivery shop_no required, the value of the store id | |
delivery_sign | string | Is | A check string description encrypted with appSecret provided by the distribution company | |
delivery_id | string | Is | Courier company ID | |
waybill_id | string | Is | Delivery order id | |
cancel_reason_id | number | Whether | Cancel the reason ID | |
cancel_reason | string | Whether | The reason for the cancellation |
cancel_reason_id legal value of the information
Value | Description | The lowest version |
---|---|---|
1 | No mailing is required for the time being | |
2 | The price is not right | |
3 | The order information is incorrect and the order is re-ordered | |
4 | The rider's pick-up was not timely | |
5 | Rider delivery is not timely | |
6 | Other reasons (if you select 6, you need to fill in the cancellation reason, otherwise you don't need to fill in) |
Property | Type | Description |
---|---|---|
errcode | number | Error code, when errcode is 0 or does not exist also need to see resultcode |
errmsg | string | The error description |
resultcode | number | The error code returned by the capacity |
resultmsg | string | The error description returned by the capacity |
deduct_fee | number | The expected deduction of the default payment (in yuan) is accurate to the score |
desc | string | Description |
Before the official cancellation of the delivery order, the merchant can call this interface to inquire whether the order can be cancelled, cancellation order delivery company needs to deduct the cost. The cancellation rules are as follows:
Distribution company | Cancel the rule |
---|---|
Shunfeng to the same city rush | Any node can cancel the delivery order before the delivery is complete |
Flash | Any node can cancel the delivery order before the delivery is complete |
U.S. mission delivery | Any node can cancel the delivery order before the delivery is complete |
Dada | The delivery order can be cancelled before the rider picks up the goods |
{
"shopid": "123456",
"shop_order_id": "123456",
"waybill_id": "123456",
"delivery_id": "123456",
"cancel_reason_id": 1,
"cancel_reason": "",
"delivery_sign": "123456",
"shop_no": "shop_no_111"
}
{
"resultcode": 0,
"resultmsg": "ok",
"deduct_fee": 5,
"desc": "blabla"
}