视频一区二区三区自拍_千金肉奴隷1985未删减版在线观看_国产成人黄色视频在线播放_少女免费播放片高清在线观看_国产精品v欧美精品v

Login expired. Please log in again.

Feedback

0/300

Feedback

Submitted successfully

ok

Feedback

Network exception, please try again later

ok

Query funds-distribution result API

Latest update time:2023.10.20 Release notes

After 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


Pathparameter is a path parameter.
Queryparameter needs to be passed in the request URL.
Bodyparameter 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 QuerySub-merchant ID allocated by Weixin Pay. It needs to be consistent with the sub-merchant ID in the transaction of Weixin Pay.
Note: Only forInstitutional mode
Example: 1900000109
Weixin Pay transaction ID transaction_id string[1, 32] Yes QueryWeixin Pay transaction ID
Example: 4208450740201411110007820472
Merchant order No. out_order_no string[1, 64] Yes BodyThe order No. in the merchant system, which is unique. It can only include numbers, capital letters and lowercase letters _-.
Note: This order No. is used to identify different requests of funds-distribution commands (including funds-distribution request API/Query funds-distribution result API) initiated from the merchant side.
If the funds of one transaction is distributed multiple times, change the [merchant order No.] before requesting funds-distribution. Otherwise it will be considered as a repeated request.
Example: P20150806125346

Request Eample


https://apihk.mch.weixin.qq.com/v3/global/profit-sharing/orders/P20150806125346?sub_mchid=1900000109&transaction_id=4208450740201411110007820472

{
    "order_id": "7100000749202203238028118660977",
    "out_order_no": "MCH1349FG041421146",
    "transaction_id": "4200000028202203236604547485"
  }

									{
										"stock_id": ".NET",
										"limit": 10,
									}

									{
										"stock_id": "Python",
										"stock_creator_mchid": "123456",
										"limit": 10,
									}

3. Response Parameters

Name Variable Name Type Required Description
Sub-merchant ID sub_mchid string[1, 32] No Merchant ID allocated by Weixin Pay
Example: 1900000109
Weixin Pay order No. transaction_id string[1, 32] Yes Weixin Pay transaction ID
Example: 4208450740201411110007820472
Merchant order No. out_order_no string[1, 64] Yes Merchant order No., same as the request parameter.
Example: P20150806125346
Weixin order ID order_id string[1, 64] Yes Weixin order ID, the unique identifier returned by Weixin system.
Example: 3008450740201411110007820472
Funds-distribution order state state string Yes Funds-distribution order state (see result field in receivers for funds-distribution results of each receiver).
PROCESSING: Funds-distribution is processing,
FINISHED: Funds-distribution is finished,
Example: FINISHED
Receiver list receivers array[1,50] Yes Receiver list
When a merchant initiates a funds-distribution request or a unfreeze the remaining funds request, the same transaction funds can be distributed to multiple receivers (including unfreezing funds to the sponsor). The funds-distribution detail describes each funds-distribution state of each receiver.
Name Variable Name Type Required Description
Distribution currency currency string[3, 3] Yes Distribution currency, same as the request parameter.
Example: CNY
Funds-distribution amount amount int Yes Funds-distribution amount, same as the request parameter.
Example: 100
Funds-distribution description description string[1, 80] Yes Merchant order No., same as the request parameter.
Example: Distribute to merchant 1900000110
Receiver type type string Yes Receiver type, same as the request parameter.
MERCHANT_ID: Merchant ID,
PERSONAL_OPENID: Personal OpenID, converted by merchant APPID
PERSONAL_SUB_OPENID: Personal Sub_OpenID, converted by sub-merchant APPID
Example: MERCHANT_ID
Receiver account account string[1, 64] Yes Receiver account, same as the request parameter.
Example: 1900000109
The result of each funds-distribution detail. result string Yes The result of each funds-distribution detail.
PENDING: Funds to be distributed,
SUCCESS: Funds-distribution succeeded,
CLOSED: Funds-distribution closed,
Example: SUCCESS
Funds-distribution detail fail reason fail_reason string No Funds-distribution detail fail reasons. Set only when funds-distribution detail result is "CLOSED."
NO_RELATION: The funds-distribution relationship has been terminated,
SUB_MERCHANT_FRONEN: The sub-merchant account is frozen,
MCH_CONTRACT_SETTLE_OFF: The merchant settlement contract is in closed state,
MCH_CONTRACT_FROZEN: The merchant settlement contract is frozen,
ACCOUNT_ABNORMAL: The receiver account is abnormal,
RECEIVER_HIGH_RISK: The receiver is at high risk,
RECEIVER_REAL_NAME_NOT_VERIFIED: The receiver has not been real-name verified,
NO_AUTH: The funds-distribution permission has been canceled,
DEFAULT_ERROR: Default error,
Example: ACCOUNT_ABNORMAL
Funds-distribution detail creation time create_time string[1, 64] Yes Funds-distribution detail creation time follows the RFC3339 standard format
Example: 2015-05-20T13:29:35.120+08:00
Funds-distribution detail finish time finish_time string[1, 64] No Funds-distribution detail finish time follows the RFC3339 standard format. Set only when the funds-distribution detail result is "SUCCESS" or "CLOSED".
Example: 2015-05-20T13:29:35.120+08:00
Weixin funds-distribution detail ID detail_id string[1, 64] Yes Weixin funds-distribution detail ID is the details ID of each funds-distribution business.
Example: 36011111111111111111111
Receiver type detail_type string Yes The funds-distribution details include two categories of funds: Funds distributed to other receivers and funds unfrozen to sponsor. These two categories can be distinguished by the field. If the detail type is UNFREEZE_TO_SPONSOR, the funds-distribution details will indicate settlement currency, settlement amount and exchange rate and other information.
DISTRIBUTE_TO_OTHERS: Distribute funds to other receivers,
UNFREEZE_TO_SPONSOR: Unfreeze funds to the sponsor outbound,
Example: DISTRIBUTE_TO_OTHERS
Settlement currency settlement_
currency
string[3, 3] No This field is set only when the detail type is UNFREEZE_TO_SPONSOR.
Example: HKD
Settled amount settlement_
amount
int No The funds amount is finally settled via exchange rate to the sponsor, using the minimum currency unit.
Example: 110
Exchange rate value rate int No The value is the exchange ratio between the distribution currency and the settlement currency multiplied by the 8th power of 10.
If the distribution currency and settlement currency are both CNY, the exchange ratio is 1 and the exchange rate value is 100,000,000;
If the settlement currency is USD, assuming that the ratio of USD to CNY is 6.5, the exchange rate value is 650,000,000.
Example: 81000000

Return Example


{
    "order_id": "7100000751202203238026613597498",
    "out_order_no": "MCH13SFDG234155321146",
    "receivers": [
      {
        "account": "999952224", # Note: The account is the sponsor merchant ID
        "amount": 797,
        "create_time": "2022-03-23T17:10:13+08:00",
        "currency": "CNY",
        "description": "Unfreeze the remaining funds to sponsor",
        "detail_id": "7200000751202203238026613597602",
        "detail_type": "UNFREEZE_TO_SPONSOR",
        "rate_value": 83640300,
        "result": "PENDING",
        "settlement_amount": 952,
        "settlement_currency": "HKD",
        "type": "MERCHANT_ID"
      },
      {
        "account": "of8YZ6LPmjDmYAqdobIvwTdQQjR8",
        "amount": 99,
        "create_time": "2022-03-23T17:10:13+08:00",
        "currency": "CNY",
        "description": "Distribute to xxx user-10%",
        "detail_id": "7200000751202203238026613597699",
        "detail_type": "DISTRIBUTE_TO_OTHERS",
        "result": "PENDING",
        "type": "PERSONAL_OPENID"
      },
      {
        "account": "2480248971",
        "amount": 99,
        "create_time": "2022-03-23T17:10:13+08:00",
        "currency": "CNY",
        "description": "Distribute to xxx merchant-10%",
        "detail_id": "7200000751202203238026613597767",
        "detail_type": "DISTRIBUTE_TO_OTHERS",
        "result": "PENDING",
        "type": "MERCHANT_ID"
      }
    ],
    "state": "PROCESSING",
    "sub_mchid": "999968479",
    "transaction_id": "4200000012202203235765130087"
  }

{
	"code": "SYSTEM_ERROR",
	"message": "Parameter?error"
}

									{
										"stock_id": ".NET",
										"limit": 10,
									}

									{
										"stock_id": "Python",
										"stock_creator_mchid": "123456",
										"limit": 10,
									}

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




    Page Navigation

About  WeChat  Pay

Powered By Tencent & Tenpay Copyright©

2005-2024 Tenpay All Rights Reserved.

Contact Us
Wechat Pay Global

WeChat Pay Global

置頂