POST /declarations/enterprise/{enterpriseId}
POST
/declarations/enterprise/{enterpriseId}
Path parameters
-
enterpriseId string Required
Issued unique enterprised ID
Body
Payment customs info
-
cartId string Required
SMK cart ID
-
status string Required
Status of the declaration from the response from the customs
-
payTransactionId string Required
Payment transaction serial number (pay_transaction_id from Alipay customs declaration response, verify_department_trade_id from WechatPay customs declaration response)
POST /declarations/enterprise/{enterpriseId}
curl \
-X POST https://nomad.samarkand-global.cn/checkout/declarations/enterprise/REC890 \
-H "x-ca-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"cartId":"DJPRO8732021031600441234567899610GZ","status":"SUBMITTED","payTransactionId":"2018112288340107038204310100000"}'
Request example
{
"cartId": "DJPRO8732021031600441234567899610GZ",
"status": "SUBMITTED",
"payTransactionId": "2018112288340107038204310100000"
}
Response example (200)
{
"code": 42,
"message": "Status of operation",
"data": {
"cartId": "SMK474-1Vzff80HMU0FqdotSN8T0mGjK",
"exchangeRate": 9.1
}
}
Response example (400)
{
"code": 42,
"message": "Status of operation",
"data": {
"cartId": "SMK474-1Vzff80HMU0FqdotSN8T0mGjK",
"exchangeRate": 9.1
}
}
Response example (500)
{
"code": 42,
"message": "Status of operation",
"data": {
"cartId": "SMK474-1Vzff80HMU0FqdotSN8T0mGjK",
"exchangeRate": 9.1
}
}