PayEase Customs Declaration Query Interface

Description

This interface is used for merchant to inquire customs status.

Request Endpoint

https://apis.5upay.com/customs/query

Name Type & Max Description Requirement
merchantId varchar(20) The unique identity of the merchant ID in Payease system. After the merchant completes Payease system registration, the merchant can log in the merchant backend portal to check M
paySerialNumber varchar(32) The payment serial number returned by the successful payment order M
hmac varchar(500) The result of parameter signature,generated by the merchant.For the method of obtaining hmac,please reference to the section "Developers" M

Sample

{ "merchantId": "100000050", "requestId": "095f227843974396adcf72810d488bd5", "hmac":"095f227843974396adcf72810d488bd5" }

Response Fields

Name Description
merchantId The unique identity of the merchant ID in Payease system. After the merchant completes Payease system registration, the merchant can log in the merchant backend portal to check
paySerialNumber The payment serial number returned by the successful payment order
customsInfos Json(two-dimensional array) See form "Request Fields(customsInfos)"
hmac The result of parameter signature,generated by the merchant.For the method of obtaining hmac,please reference to the section "Developers"

Request Fields(customsInfos)

name Description
customsChannel GUANGZHOU_OFFICAL (General Customs)
NINGBO
TIANJIN_OFFICAL (General Customs)
ZHUHAI_OFFICAL (General Customs)
ZHENGZHOU_ZONGBAO_OFFICAL (General Customs)
CHONGQING_OFFICAL (General Customs)
ZHENGZHOU_WUBAO_OFFICAL (General Customs)
OFFICAL (Direct connect to General Customs)
SHENZHEN_OFFICAL (General Customs)
amount UNIT: China fen,1 Yuan=100 Fen
freight UNIT: China fen,1 Yuan=100 Fen, If not filled, the default value is "0"
goodsAmount UNIT: China fen,1 Yuan=100 Fen, If not filled, the default value is "0"
tax UNIT: China fen,1 Yuan=100 Fen, If not filled, the default value is "0"
status PROCESSING
SUCCESS
FAILED

Sample

{ "customsInfos": [{ "amount": "1", "customsChannel": "GUANGZHOU_OFFICAL", "freight": "1", "goodsAmount": "1", "status": "SUCCESS", "tax": "1" }], "hmac": "05827f07cfb41a72229345fd56ae87b2", "merchantId": "120140257", "paySerialNumber": "095f227843974396adcf72810d488bd5" }