Query funds-distribution result
Update Time:2025.01.07After requesting funds-distribution, call the API to query the funds-distribution result. After requesting to unfreeze the remaining funds, call the API to query the result of unfreezing the remaining funds.
1. Request Parameters
Applicable object: Common mode Institutional mode
API rules:https://apihk.mch.weixin.qq.com/v3/global/profit-sharing/orders/{out_order_no}
Request method:GET
Path parameter is a path parameter.
Query parameter needs to be passed in the request URL.
Body parameter needs to be passed in the request JSON.
2. Request Parameters
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Sub-merchant ID | sub_mchid | string[1, 32] | No | Query Sub-merchant ID allocated by Weixin Pay. It needs to be consistent with the sub-merchant ID in the transaction of Weixin Pay. |
Weixin Pay transaction ID | transaction_id | string[1, 32] | Yes | Query Weixin Pay transaction ID |
Merchant order No. | out_order_no | string[1, 64] | Yes | Body The order No. in the merchant system, which is unique. It can only include numbers, capital letters and lowercase letters _-. |
Request Example
URL
3. Response Parameters
Name | Variable Name | Type | Required | Description | |||
---|---|---|---|---|---|---|---|
Sub-merchant ID | sub_mchid | string[1, 32] | No | Merchant ID allocated by Weixin Pay | |||
Weixin Pay order No. | transaction_id | string[1, 32] | Yes | Weixin Pay transaction ID | |||
Merchant order No. | out_order_no | string[1, 64] | Yes | Merchant order No., same as the request parameter. | |||
Weixin order ID | order_id | string[1, 64] | Yes | Weixin order ID, the unique identifier returned by Weixin system. | |||
Funds-distribution order state | state | string | Yes | Funds-distribution order state (see result field in receivers for funds-distribution results of each receiver). | |||
Receiver list | receivers | array[1,50] | Yes | Receiver list | |||
|
Return Example
SUCCESS
ERROR
4. Error Code
Error Codes | Error Message | Description | Solution |
---|---|---|---|
404 | NOT_FOUND | Funds-distribution command does not exist. Check whether the out_order_no is filled in correctly | Check whether the out_order_no is filled in correctly |
400 | INVALID_REQUEST | The merchant information is inconsistent with that in the original command when querying the funds-distribution result | Check whether out_order_no/transaction_id/sub_mchid are filled in correctly |
400 | INVALID_REQUEST | The Weixin Pay transaction ID is inconsistent with that in the original command when querying the funds-distribution result | Check whether the out_order_no/transaction_id is filled in correctly |
403 | NO_AUTH | The merchant has not signed the overseas funds-distribution product | Refer to the product process and access preparation, confirm that the merchant has funds-distribution authorization, and initiate the request again |
403 | NO_AUTH | The merchant has enabled the funds-distribution product and is waiting for it to take effect (Usually takes effect the next day) | The funds-distribution function cannot be initiated on the first day. Please initiate the request on the next day |
403 | NO_AUTH | The parent-child relationship of the merchant does not exist. Please use correct sub-merchant ID to initiate the request | Please check if the sub-merchant ID (sub_mchid) is filled in correctly |