Latest update time:2020.06.02 Release notes
Merchants query additional order information submitted and declaration status by order No.
Request Url: https://apihk.mch.weixin.qq.com/global/v3/customs/orders
Request method:GET
API rules:https://wechatpay-api.gitbook.io/wechatpay-api-v3/
Applicable object:Common mode
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.
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Institution APPID | appid | String(32) | Yes | querySpecifies Official Account ID assigned by WeChat Example:wxd678efh567hg6787 |
Merchant ID | mchid | String(32) | Yes | query pecifies Merchant ID assigned by WeChat Payment Example:1230000109 |
Order type | order_type | String(16) | Yes | query Select one of the four order types:
out_trade_no - Merchant order No. transaction_id - WeChat Pay order No. sub_order_no - Merchant sub-order No. sub_order_id - WeChat sub-order No. Example:out_trade_no |
Order No. | order_no | String(32) | Yes | query Specify an order No. depending on the selected order type. Example:20150806125346 |
Customs | customs | String(32) | Yes | query Customs for declaration. For the enumerated values, refer to Parameter Specifications Example:SHANGHAI_ZS |
Offset | offset | int | No | query CA non-negative integer, which indicates the start position of requested resources, starting from 0. Optional. It is 0 by default. Example:1 |
Maximum number of returned records | limit | int | No | query A positive integer, which indicates the maximum number of resource records that can be returned for this request. Optional. The suggested default value is 20. Example:20 |
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Institution APPID | appid | string(32) | Yes | Official Account ID assigned by WeChat Example:wxd678efh567hg6787 |
Merchant ID | mchid | string(32) | Yes | Merchant ID assigned by WeChat Pay Example:1230000109 |
WeChat order No. | transaction_id | string(32) | Yes | Order No. returned by WeChat Pay Example:1000320306201511078440737890 |
Verification institution | verify_department | string(16) | Yes | Verification institution code UNIONPAY:Unionpay NETSUNION:NetsUnion OTHERS:Others Example:UNIONPAY |
Transaction ID from verification institution | verify_department_trade_id | string(64) | Yes | Transaction ID from the verification institution (such as UnionPay) for the merchant to register at the customs Example:2018112288340107038204310100000 |
Offset | offset | int | Yes | The offset from which the resource records are returned for the request Example:0 |
Maximum number of returned records | limit | int | Yes | The maximum number of returned records for the request Example:20 |
Total number of query results | total_count | int | Yes | Total number of query results Example:1 |
+ Customs declaration data packet | data | Array | Yes | Total number of query results |
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Return Status Code |
return_code | String(32) | Yes | Error code. See the error code list for the enumerated values. Example:INVALID_REQUEST |
Returned message | message | String(256) | Yes | Returned message. If not empty, it presents the cause of the error. Example:Parameter format verification error |
+Detailed error description | detail | Object | No | It is returned when code is PARAM_ERROR. Details will be described below |
{
"appid": "wxd678efh567hg6787",
"mchid": "1230000109",
"transaction_id": "1000320306201511078440737890",
"verify_department": "UNIONPAY",
"verify_department_trade_id": "2018112288340107038204310100000",
"offset": 0,
"limit": 20,
"total_count": 1,
"data": [
{
"sub_order_no": "20150806125346",
"sub_order_id": "20150806125346",
"mch_customs_no": "1234567",
"customs": "SHANGHAI_ZS",
"fee_type": "CNY",
"order_fee": 888,
"duty": 888,
"transport_fee": 888,
"product_fee": 888,
"state": "PROCESSING",
"explanation": "The payment order already exists and is in a non-refund status",
"modify_time": "2015-09-01T10:00:00+08:00"
}
]
}
Customer Service Tel
Business Development
9:00-18:00
Monday-Friday GMT+8
Technical Support
WeChat Pay Global
ICP证