# Service Provider Cancels Allocation of Resource Packs

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

cancelAssign

# Functional description

初始值 Service providers can cancel allocated resource packages through this interface.

  • In order to cancel the allocation, the following two items are met:
    • Within 7 days of allocation
    • And the allocated resource pack is not being used

# Note

  • Unassign as an asynchronous task, after the interface call succeeds, whether the unallocation is ultimately successful, push theUnassign Result EventShall prevail.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/charge/service-provider/package/cancel_assign?access_token=ACCESS_TOKEN 

# Request parameters

attribute type Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. access_Token is available throughgetAccessTokenInterface is obtained.
orderId string yes The vendor order ID to unassign, such as DD2970445798112968704
requestId string yes Unique request ID, the interface to be assigned to the requestassignPackageThe value is consistent.

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message

# Call Example

Example Dxplaination: HTTPS calls

# Sample Request Data

POST https://api.weixin.qq.com/wxa/charge/service-provider/package/cancel_assign?access_token=ACCESS_TOKEN
{
  "orderId": "DD2970445798112968704",
  "requestId": "1687254272930"
}

# Return Data Example


{
  "errcode": 0
}

# Error code

Error code Error code Solutions
10120002 Parameter error
10120405 Method not available Use the correct method to request against the document
10120800 Order ID is not valid