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

WeChat small programs Small programs use openDelivery


May 19, 2021 WeChat Mini Program Development Document



immediateDelivery.openDelivery

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

Third-party merchants initiate the opening of instant delivery rights

The request address

POST https://api.weixin.qq.com/cgi-bin/express/local/business/open?access_token=COMPNENT_ACCESS_TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials

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

The legal value of errcode

Value Description The lowest version
0 Success
43016 The small program is not certified
86000 Not a third-party call
930568 Personal type programs are not supported
930569 Already open no longer need to open
930571 The merchant does not have internal testing permissions

Use the scene

  1. This interface can only be called by third-party service providers
  2. Service providers can initiate the operation of opening instant distribution interface permissions through the small program developed on behalf of this interface, when the call is successful, the small program administrator will receive a template message to open the operation

Return an example of the data

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