Path parameters
-
merchant string Required
Merchant name to payment company, e.g. wechat.sh_smk
Body
-
customs string Required
Customs codes
Values are
GUANGZHOU_ZS
,HANGZHOU_ZS
,NINGBO
,ZHENGZHOU_BS
,CHONGQING
,SHANGHAI_ZS
,SHENZHEN
,ZHENGZHOU_ZH_ZS
, orTIANJIN
. Default value isGUANGZHOU_ZS
. -
mchCustomsNo string Required
The merchant’s record number registered in the customs
-
orderNo string
The internal order number of the merchant system, only numbers, uppercase and lowercase letters, and it is unique under the same merchant number.
-
transactionId string
Transaction ID returned by payment company
-
subOrderNo string
Merchant's sub-order number, must be passed if there is a split order
-
subOrderId string
Do not fill in the sub-order number. Order number returned by payment company
-
paymentMethod string
Payment method, must be wechatpay or alipay
Values are
wechatpay
oralipay
.
PUT /customs/payment/{merchant}
curl \
-X PUT https://nomad.samarkand-global.cn/broker/v1/customs/payment/wechat.sh_smk \
-H "app-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"customs":"GUANGZHOU_ZS","mchCustomsNo":"31123452K0","orderNo":"test2021101901","transactionId":"4200001306202110500000000000.0","subOrderNo":"1000320306201511078440737890","subOrderId":"4200001306202110500000000000.0","paymentMethod":"wechatpay"}'
Request example
{
"customs": "GUANGZHOU_ZS",
"mchCustomsNo": "31123452K0",
"orderNo": "test2021101901",
"transactionId": "4200001306202110500000000000.0",
"subOrderNo": "1000320306201511078440737890",
"subOrderId": "4200001306202110500000000000.0",
"paymentMethod": "wechatpay"
}
Response example (200)
{
"code": 200,
"message": "success",
"customsMessage": "<xml><return_code><![CDATA[SUCCESS]]></return_code>...</xml>",
"resultCode": "success",
"state": "UNDECLARED",
"transactionId": "1000320306201511078440737890",
"orderNo": "1000320306201511078440737890",
"subOrderNo": "1000320306201511078440737890",
"modifyTime": "20091227091010",
"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."
}