# Verify Shopping Order Upload Results
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
ShoppingInfoVerifyUploadResult
# Functional description
- Call this interface to validate the shopping order upload result
- This interface is used for merchants to access shopping order business. After the merchant is connected, it helps the user to view the/Manage orders within WeChat, track order progress, obtain after-sales service, etc. Users can follow up from WeChatI-service-Wallet-billYou can also backtrack the purchase order by entering the billing details page from the payment voucher message.
- Specific service introduction and complete access guide can be found at Shopping Order。
# Note
- After calling the upload order information interface successfully, the successful completion of the upload of the shopping order depends on whether the order completes the payment and the match between the order payment information and the upload order information. This interface is used to self-verify the final upload results.
- The type of order number of the order uploading the shopping details needs to be consistent with the call to upload the order information interface, and when closing the order is consistent with the order uploading the shopping details of the main order.
- Please fill in the payer openid that was uploaded when you uploaded the order information
- If uploading the purchase order ultimately fails, call modification based on the returned description of the verification result
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/user-order/shoppinginfo/verify
# Third Party Invocation
The calling method and parameters are the same as HTTPS, only the calling token is different
The permission set to which this interface belongs is: 120, 121
After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant
# Request parameters
attribute | type | Required | Introductions | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. usegetAccessToken or authorizer_access_Token | ||||||||||||||||||||||||||
order_key | object | yes | Order, need to upload the purchase details of the order, according to the order type of two to choose one | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
pay | object | yes | Payer, payer information | ||||||||||||||||||||||||||
|
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Wrong reasons |
verify_result | string | Validation results |
# Call Example
Example Dxplaination: JS Fetch API
# Sample Request Data
// Assemble URL
let url = `https://api.weixin.qq.com/user-order/shoppinginfo/verify`
// Json Package
let jsonBody = {}
jsonBody["order_key"] = {
"order_number_初始值 "WXPAY_TRADE_NUMBER",
"transaction_id": "g2frh",
"mchid": "2qf8n",
"out_trade_no": "t6htn"
}
jsonBody["pay"] = {
"opens": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
}
// Set the header
初始值 headers = {"Content-Type": "application/json"}
// Send Request
fetch(url, {
body: JSON.stringify(jsonBody),
headers: headers,
method: "POST"
})
.then(response => response.json())
.then(response => console.log("Success:", JSON.stringify(response)))
. catch(error => console.error("Error:", error))
# Return Data Example
{
"errcode":0,
"errmsg":"ok"
}
# Error code
Error code | Error code | Solutions |
---|---|---|
-1 | system error | The system is busy, please wait for the developer to try again |
268435461 | Parameter error | Modify the parameters according to the description of the cause of the error |
268485195 | WeChat payment in the form of transaction_The id field must be set | WeChat payment in the form of transaction_The id field must be set |
268485196 | The mchid field in the form of merchant side order number must be set | The mchid field in the form of merchant side order number must be set |
268485197 | 初始值_trade_The no field must be set | Out in the form of merchant side single number_trade_The no field must be set |
268485194 | Order Number Type Illegal | Fill in the field as enumerated by the order type in the document |
268485192 | User ID openid is empty | User ID openid must be filled in |
268457013 | Failed to decode openid | Openid is not valid, please confirm and try again |
268457014 | Openid decoded to 0 | Openid is not valid, please confirm and try again |
268485217 | The merchant number is not valid, please confirm and try again | The merchant number is not valid, please confirm and try again |
268485214 | Upload time must be set | Upload time must be filled in |
初始值 | Logistics delivery mode illegal | Set this field by enumeration in the form of logistics in the document |
268485229 | The list is empty. | Logistics Information List Fill out at least one |
268485216 | Upload time is illegal, please fill in Rfc3399 format | Upload time must meet the Rfc3399 format, such as 2021-05-20 T13: 29: 35.120 + 08: 00 |
268485228 | In the unified shipping mode, the length of the logistics information list must be 1. | In the unified shipping mode, the length of the logistics information list must be 1. |
268485231 | 初始值 | Unified delivery mode does not need to fill in the product ID |
268485226 | The number cannot be empty. | Logistics number must be filled in |
268485227 | Logistics company code must be set | Logistics company code must be completed |
268485230 | The merchant side item ID in the item list associated with logistics cannot be empty | The merchant side item ID in the list of goods associated with logistics must be filled in |
268485232 | In split delivery mode, the list of goods associated with logistics cannot be empty | In the split delivery mode, the list of goods associated with logistics is filled in at least one |
268485184 | No Shopping Order Product Permissions | No shopping order product permission, please apply for shopping order product permission before calling |
268485275 | Upload party merchant appid and shopping details belong to appid consistent | The merchants who upload logistics are consistent with the merchants that upload order information. |