GetCustomsPayment
GET
/customs/payment/{merchant}
Merchant queries customs clearance information by order number
Path parameters
-
merchant string Required
Merchant name to payment company, e.g. wechat.sh_smk
Query parameters
-
customs string Required
Customs code, available options: GUANGZHOU_ZS, HANGZHOU_ZS, NINGBO, ZHENGZHOU_BS, CHONGQING, SHANGHAI_ZS, SHENZHEN, ZHENGZHOU_ZH_ZS
Values are
GUANGZHOU_ZS
,HANGZHOU_ZS
,NINGBO
,ZHENGZHOU_BS
,CHONGQING
,SHANGHAI_ZS
,SHENZHEN
,ZHENGZHOU_ZH_ZS
, orTIANJIN
. Default value isGUANGZHOU_ZS
. -
order_no string
The internal order number of the merchant system
-
transaction_id string
Payment system internal order number
-
sub_order_no string
The internal sub-order number of the merchant system
-
sub_order_id string
The internal sub-order number of the payment company system
-
payment_method string
Must be
wechatpay
oralipay
Values are
wechatpay
oralipay
.
GET /customs/payment/{merchant}
curl \
-X GET https://nomad.samarkand-global.cn/broker/v1/customs/payment/wechat.sh_smk?customs=GUANGZHOU_ZS \
-H "app-api-key: $API_KEY"
Response example (200)
{
"code": 200,
"message": "success",
"customsMessage": "<xml><return_code><![CDATA[SUCCESS]]></return_code>...</xml>",
"resultCode": "success",
"transactionId": "1000320306201511078440737890",
"orders": [
{
"state": "UNDECLARED",
"subOrderNo": "1000320306201511078440737890",
"subOrderId": "4200001306202110500000000000.0",
"mchCustomsNo": "31123452K0",
"explanation": "string",
"customs": "string",
"modifyTime": "20091227091010",
"duty": 88,
"feeType": "CNY",
"orderFee": 88,
"transportFee": 88,
"productFee": 88,
"certType": "IDCARD",
"certCheckResult": "UNCHECKED",
"verifyDepartment": "OTHERS",
"verifyDepartmentTradeId": "OTHERS"
}
]
}
Response example (400)
{
"code": 200,
"message": "success"
}
Response example (401)
{
"code": 200,
"message": "success"
}
Response example (500)
{
"code": 200,
"message": "success",
"errors": "Something wrong when making the service."
}