Redeclare Customs Report
This interface is to repush the declaration for the WeChat Pay or Alipay order has already been submiited to the customs.
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.CreateRefund | Required |
time | Long | timestamp |
- Parameter
Parameter | Type | Description | Required |
---|---|---|---|
trade_id | String | the trade_id from YabandPay | Required |
customs | String | customs name | Required |
mch_customs_no | String | customs record number | Required |
Signature:
Lexicographical sequence and URL key-value format new string
"customs=NINGBO&mch_customs_no=8888888888&method=v3.CustomDeclareRedeclare&time=1560499094&trade_id=dd11d082-810d-c8b7-3669-b784c466759b&user=016683"
Use stringA and secret_key to get stringSign
Get Signature:
"46448d1827ad750d679c171a888c506e4a04e61170d23cb50e6db42c993a2d94"
Example Request:
{
"user": "016683",
"sign": "46448d1827ad750d679c171a888c506e4a04e61170d23cb50e6db42c993a2d94",
"method": "v3.CustomDeclareRedeclare",
"time": 1560996670,
"data": {
"trade_id": "dd11d082-810d-c8b7-3669-b784c466759b",
"customs": "NINGBO",
"mch_customs_no": "8888888888"
}
}
Example Response:
{
"status": true,
"code": "200",
"data": {
"state": "UNDECLARED",
"explanation": []
},
"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 |