Query Customs Report
Merchants query the order declaration information through the order number.
API URL:https://mapi.yabandpay.com/Payments
Method:POST
POST data type:Json
Parameter | Type | Description | Required |
---|---|---|---|
user | String | the UID of super admin account or cashier account | Required |
sign | String | signature | Required |
method | String | v3.CustomDeclareQuery | Required |
time | Long | timestamp | Required |
- Parameter
Parameter | Type | Description | Required |
---|---|---|---|
trade_id | String | the trade_id from YabandPay | Required |
customs | String | customs name | Required |
Signature:
Lexicographical sequence and URL key-value format new string
"customs=NINGBO&method=v3.CustomDeclareQuery&time=1560499094&trade_id=dd11d082-810d-c8b7-3669-b784c466759b&user=016683"
Use stringA and secret_key to get stringSign
Get Signature
"64d0640853475f2d9b7cb7d89ca98bb141ac85b923c191eb0eabd4f8d9c79ddc"
Example Request:
{
"user": "016683",
"sign": "64d0640853475f2d9b7cb7d89ca98bb141ac85b923c191eb0eabd4f8d9c79ddc",
"method": "v3.CustomDeclareQuery",
"time": 1560753647,
"data": {
"trade_id": "847b175e-f8f4-d362-d078-52092b412b1c",
"customs": "NINGBO"
}
}
Example Response:
{
"status": true,
"code": "200",
"data": {
"data": [
{
"customs": "NINGBO",
"duty": "",
"fee_type": "EUR",
"mch_customs_no": "31222699S7",
"modify_time": "2024-06-19T08:21:18Z",
"order_fee": "10",
"product_fee": "10",
"state": "SUCCESS",
"sub_order_id": "e0721a7f957e8e55dfbb5c7bcb4441d6",
"sub_order_no": "1234567890",
"transport_fee": "0",
"cert_check_result": "SAME"
},
{
"customs": "NINGBO",
"duty": "",
"fee_type": "EUR",
"mch_customs_no": "31222699S7",
"modify_time": "2024-06-19T08:20:53Z",
"order_fee": "10",
"product_fee": "10",
"state": "SUCCESS",
"sub_order_id": "05cbd13d104bb4ea542cc66550d16ac8",
"sub_order_no": "123456789",
"transport_fee": "0",
"cert_check_result": "SAME"
}
]
},
"message": ""
}
The states description is as follows:
States | Description |
---|---|
UNDECLARED | Undeclared, this means that the declaration has been submitted, waiting for customs processing, no need to submit again. |
SUBMITTED | The declaration has been submitted. The order has been sent to the customs, the merchant has re-declared, and the customs has a modification interface, then the status of the record will be this. |
PROCESSING | Reporting |
SUCCESS | Successful application |
FAIL | Declaration failed |
EXCEPT | Customs interface exception |