May 20, 2021 WeChat Mini Program Development Document
This document describes messages or events received on the server side, see Message Push for details.
Pre-cancellation order action to query whether cancellation and cancellation of deductions for breach of contract (not required) can be made before canceling an order
Property | Type | Description |
---|---|---|
ToUserName | string | Express company small program UserName |
FromUserName | string | WeChat team's OpenID (fixed value) |
CreateTime | number | Event time, Unix timestamp |
MsgType | string | Message type, pinned to event |
Event | string | The event type, fixed to transport_precancel_order, is case insensescies |
shopid | string | Merchant id, assigned by a distribution company, can dev_id or appkey |
shop_order_id | string | The ID that uniquely identifies the order and is generated by the merchant |
shop_no | string | Merchant store number, registered on the distribution company side |
waybill_id | string | Delivery order id |
delivery_sign | string | A check string encrypted with appSecret provided on the side of the distribution company |
cancel_reason_id | number | Cancel the reason id |
cancel_reason | string | 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 | The default | Required | Description |
---|---|---|---|---|
ToUserName | string | Is | Return as is fromUserName in the request | |
FromUserName | string | Is | Express company small program UserName | |
CreateTime | number | Is | Event time, Unix timestamp | |
MsgType | string | Is | Message type, pinned to event | |
Event | string | Is | The event type, fixed to transport_precancel_order, is case insensescies | |
resultcode | number | Is | Error code | |
resultmsg | string | Is | The error description | |
deduct_fee | number | Is | The expected deduction of the default payment (in Yuan) may not be | |
desc | string | Is | Deduction instructions |