Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small programs Small programs use abnormalConfirm


May 19, 2021 WeChat Mini Program Development Document



immediateDelivery.abnormalConfirm

This interface should be called on the server side, as detailed in the Service Side API.

Unusual items are returned to the merchant merchant confirmation receipt interface

The request address

POST https://api.weixin.qq.com/cgi-bin/express/local/business/order/confirm_return?access_token=ACCESS_TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials
shopid string Is Merchant id, an appkey assigned by a 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 with the distribution company, flash required, value for store id
delivery_sign string Is A check string description encrypted with appSecret provided by the distribution company
waybill_id string Is Delivery order id
remark string Whether Note

Returns a value

Object

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

Use the scene

When the order delivery is abnormal, the rider returns the goods to the merchant, who then calls this interface to return the confirmed receipt.

An example of a request

{
   "shopid": "123456",
   "shop_order_id": "123456",
   "shop_no": "shop_no_111"
   "waybill_id": "123456",
   "remark": "remark",
   "delivery_sign": "123456"
}

Return an example of the data

{
  "resultcode": 0,
  "resultmsg": "ok"
}