Path parameters
-
merchant string Required
Merchant name to payment company, e.g. wechat.sh_smk
Body
-
orderNo string Required
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 Required
Transaction ID returned by Payment company
-
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
. -
paymentMethod string
Payment method, must be wechatpay or alipay
Values are
wechatpay
oralipay
. -
mchCustomsNo string
The merchant’s record number registered in the customs
-
certType string
Only mainland ID cards are supported temporarily.
Default value is
IDCARD
. -
certId string
The user's mainland ID number, the ID number ending in the letter X, please capitalize the letter X.
-
name string
User name.
-
duty integer
Tariff, divided into units
-
actionType string
ADD New customs declaration application, MODIFY modification. Default is ADD
Values are
ADD
orMODIFY
. Default value isADD
. -
subOrderNo string
Merchant's sub-order number, must be passed if there is a split order
-
feeType string
The currency used for payment of Payment company orders is currently only supported in RMB CNY. If there is an order split, it must be sent.
Default value is
CNY
. -
orderFee integer
The amount of the sub-order, in cents, cannot exceed the amount of the original order, order_fee=transport_fee+product_fee (amount payable = logistics fee + product price), if there is a split order, it must be passed.
-
transportFee integer
The logistics cost is divided into units, and must be passed if there is a split order.
-
productFee integer
Commodity costs, in units of cents, must be passed if there is a split order.
curl \
-X POST https://nomad.samarkand-global.cn/broker/v1/customs/payment/wechat.sh_smk \
-H "app-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"orderNo":"test2021101901","transactionId":"4200001306202110500000000000.0","customs":"GUANGZHOU_ZS","paymentMethod":"wechatpay","mchCustomsNo":"31123452K0","certType":"IDCARD","certId":330821198809085200,"name":"Zhangsan","duty":88,"actionType":"ADD","subOrderNo":20150806125346,"feeType":"CNY","orderFee":88,"transportFee":88,"productFee":88}'
{
"orderNo": "test2021101901",
"transactionId": "4200001306202110500000000000.0",
"customs": "GUANGZHOU_ZS",
"paymentMethod": "wechatpay",
"mchCustomsNo": "31123452K0",
"certType": "IDCARD",
"certId": 330821198809085200,
"name": "Zhangsan",
"duty": 88,
"actionType": "ADD",
"subOrderNo": 20150806125346,
"feeType": "CNY",
"orderFee": 88,
"transportFee": 88,
"productFee": 88
}
{
"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"
}
{
"code": 200,
"message": "success"
}
{
"code": 200,
"message": "success"
}
{
"code": 200,
"message": "success",
"errors": "Something wrong when making the service."
}