Ship
Requests waybill creation from specified carrier. Receives waybill details in return, most carriers provide id and PDF packing label
Path parameters
-
carrier string Required
Carrier name to ship, e.g. samarkand.sfexpress.test
Body Required
Package to ship
-
dimension object
Dimensions of package
-
shipFrom object
-
shipTo object
-
bill object
-
orderRef string
Order reference number in ERP application
-
sellerOrderRef string Required
Order reference number from retailers, e-commerce platform, e.g. Youzan, Little Red
-
merchantOrderRef string
Order reference number from merchant, e.g. WConceput
-
trackingReference string
Package tracking reference from logistics company
-
orderTime string
ISO 8601 format, '2019-01-19T18:30:52.442118+00:00' or '2019-01-19T18:30:52+00:00'
-
grossWeight number
Use Kilogram as the basic unit of mass.
-
netWeight number
Use Kilogram as the basic unit of mass.
-
totalPrice number(float)
The total price of this package, not including any discount and tax.
-
currency string Required
Price makes sense under an explicit currency, available options: RMB, CNY, USD, GBP
Default value is
RMB
. -
massUnit string Required
weight Unit of measurement
Default value is
Kilogram
. -
lengthUnit string Required
length Unit of measurement
Default value is
Centimetre
. -
domesticDeliveryCompany string
the domestic delivery vendor, 2 available options: [SF, YTO]
Default value is
SF
. -
createdAt string
The time when current order was created. ISO_8601 format
-
updatedAt string
The time when current order was updated. ISO_8601 format
-
payMethod string
-
payMerchantName string
-
payAmount number(float)
The actual amount paid for the order.
-
payId string
The payment number generated by eCommerce platform such as Youzan
-
paidAt string
The time when the pay was made. ISO_8601 format
-
productsTotalTax number(float)
The sum tax of all products in current order, including Non-cash deduction amount.
-
shippingCost number(float)
The shipping cost of current order, excluding the shipping cost on each contained products. If delivery free, just set 0.
-
nonCashDeductionAmount number(float)
Amount that deducted by non-cash, e.g. member points, virtual currency, voucher code, etc.
-
customerNote string
The special note from the buyer.
-
cancelReason string
The cancel reason of current package.
-
warehouseCode string
The code of warehouse for this package
-
customerIdRef string
The ID of buyer on current third party platform.
-
insuranceFee number(float)
The insurance fee of current shipping.
-
expressType string Required
International logistics express type. BC for 901, 229; CC for 902
-
paymentPayId string
The payment number generated by payment tool such as WeChat Pay
-
platformName string
The e-commerce platform name, available options: youzan, pdd, nomad
Default value is
youzan
. -
checkPoint string
Express route check point, turn on it by input "enable", default is disabled
-
service string
Services provided by logistics companies, such as next_day for Next Day Delivery, sign for Signed Delivery, international for International Delivery and so on.
-
expressCompany string
Logistic companies, e.g. SF, FEDEX.
-
items array[object]
Contents of package
curl \
-X POST https://nomad.samarkand-global.cn/pilot/ship/{carrier} \
-H "x-ca-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"dimension":{"weight":42.0,"height":42.0,"length":42.0,"width":42.0},"shipFrom":{"firstName":"John","lastName":"string","address1":"string","address2":"string","county":"string","city":"string","state":"string","country":"string","zip":"string","tin":"string","phone":"string","countryCode":142,"idCard":"string","email":"string","company":"string","ecommerceWebsiteUserId":"string"},"shipTo":{"firstName":"John","lastName":"string","address1":"string","address2":"string","county":"string","city":"string","state":"string","country":"string","zip":"string","tin":"string","phone":"string","countryCode":142,"idCard":"string","email":"string","company":"string","ecommerceWebsiteUserId":"string"},"bill":{"firstName":"John","lastName":"string","address1":"string","address2":"string","county":"string","city":"string","state":"string","country":"string","zip":"string","tin":"string","phone":"string","countryCode":142,"idCard":"string","email":"string","company":"string","ecommerceWebsiteUserId":"string"},"orderRef":"SO224571","sellerOrderRef":"E202010152223470377011119610GZ","merchantOrderRef":"WU202127533","trackingReference":"SF1032566311525","orderTime":"string","grossWeight":1.53,"netWeight":1.53,"totalPrice":532.8,"currency":"RMB","massUnit":"Kilogram","lengthUnit":"Centimetre","domesticDeliveryCompany":"SF","createdAt":"2019-07-12T13:13:52.004637+01:00","updatedAt":"2019-07-12T13:13:52.004637+01:00","payMethod":"EASIPAY","payMerchantName":"Paypal","payAmount":611.08,"payId":"2014030120394812","paidAt":"2019-07-12T13:13:52.004637+01:00","productsTotalTax":53.28,"shippingCost":25,"nonCashDeductionAmount":0,"customerNote":"This package is very important.","cancelReason":"The customers updated the address.","warehouseCode":"718595286704","customerIdRef":"string","insuranceFee":2.5,"expressType":"BC","paymentPayId":"191028195204000214","platformName":"youzan","checkPoint":"string","service":"string","expressCompany":"string","items":[{"name":"string","nameCn":"测试","barcode":"string","skuNumber":"SMK123","quantity":7,"price":21.3,"tax":2,"discount":1,"brand":"string","quantityUom":"50G","hsCode":"string","countryOfOrigin":"string","goldjet":{"goodsPtcode":"string"},"grossWeight":42.0,"netWeight":42.0,"customsUnitCode":"142, 007, 瓶, ...","customsUnitCodePackage":"142, 011, 140","customsUnitCodeWeight":"035(means 千克, kilogram)","customsFilingId":"string","spec":"25mm","model":"iPhone XR","ingredients":"发酵乳杆菌Lc40(CECT5716),麦芽糊精,蔗糖,抗坏血酸钠","customsUnitCodeCn":"瓶","countryOfOriginIso":"RU","declarationElements":"string"}]}'
{
"dimension": {
"weight": 42.0,
"height": 42.0,
"length": 42.0,
"width": 42.0
},
"shipFrom": {
"firstName": "John",
"lastName": "string",
"address1": "string",
"address2": "string",
"county": "string",
"city": "string",
"state": "string",
"country": "string",
"zip": "string",
"tin": "string",
"phone": "string",
"countryCode": 142,
"idCard": "string",
"email": "string",
"company": "string",
"ecommerceWebsiteUserId": "string"
},
"shipTo": {
"firstName": "John",
"lastName": "string",
"address1": "string",
"address2": "string",
"county": "string",
"city": "string",
"state": "string",
"country": "string",
"zip": "string",
"tin": "string",
"phone": "string",
"countryCode": 142,
"idCard": "string",
"email": "string",
"company": "string",
"ecommerceWebsiteUserId": "string"
},
"bill": {
"firstName": "John",
"lastName": "string",
"address1": "string",
"address2": "string",
"county": "string",
"city": "string",
"state": "string",
"country": "string",
"zip": "string",
"tin": "string",
"phone": "string",
"countryCode": 142,
"idCard": "string",
"email": "string",
"company": "string",
"ecommerceWebsiteUserId": "string"
},
"orderRef": "SO224571",
"sellerOrderRef": "E202010152223470377011119610GZ",
"merchantOrderRef": "WU202127533",
"trackingReference": "SF1032566311525",
"orderTime": "string",
"grossWeight": 1.53,
"netWeight": 1.53,
"totalPrice": 532.8,
"currency": "RMB",
"massUnit": "Kilogram",
"lengthUnit": "Centimetre",
"domesticDeliveryCompany": "SF",
"createdAt": "2019-07-12T13:13:52.004637+01:00",
"updatedAt": "2019-07-12T13:13:52.004637+01:00",
"payMethod": "EASIPAY",
"payMerchantName": "Paypal",
"payAmount": 611.08,
"payId": "2014030120394812",
"paidAt": "2019-07-12T13:13:52.004637+01:00",
"productsTotalTax": 53.28,
"shippingCost": 25,
"nonCashDeductionAmount": 0,
"customerNote": "This package is very important.",
"cancelReason": "The customers updated the address.",
"warehouseCode": "718595286704",
"customerIdRef": "string",
"insuranceFee": 2.5,
"expressType": "BC",
"paymentPayId": "191028195204000214",
"platformName": "youzan",
"checkPoint": "string",
"service": "string",
"expressCompany": "string",
"items": [
{
"name": "string",
"nameCn": "测试",
"barcode": "string",
"skuNumber": "SMK123",
"quantity": 7,
"price": 21.3,
"tax": 2,
"discount": 1,
"brand": "string",
"quantityUom": "50G",
"hsCode": "string",
"countryOfOrigin": "string",
"goldjet": {
"goodsPtcode": "string"
},
"grossWeight": 42.0,
"netWeight": 42.0,
"customsUnitCode": "142, 007, 瓶, ...",
"customsUnitCodePackage": "142, 011, 140",
"customsUnitCodeWeight": "035(means 千克, kilogram)",
"customsFilingId": "string",
"spec": "25mm",
"model": "iPhone XR",
"ingredients": "发酵乳杆菌Lc40(CECT5716),麦芽糊精,蔗糖,抗坏血酸钠",
"customsUnitCodeCn": "瓶",
"countryOfOriginIso": "RU",
"declarationElements": "string"
}
]
}
{
"code": 42,
"message": "string",
"data": {
"shipmentId": "string",
"scanFormId": "string",
"scanFormUrl": "string",
"trackingReference": "string",
"waybillId": "string",
"orderSn": "string",
"orderRef": "string",
"sellerOrderRef": "string",
"domesticDeliveryCompany": "YTO",
"deliveryStatus": "DELIVERY",
"deliveryNote": "string",
"deliverySlipUrl": "string",
"trackingUrl": "string",
"checkPoints": [
"@accept_time 2020-05-01 04:59:38; @accept_address 伦敦; @remark 寄方准备快件中,当前地点: 【GB London Delivery Centre (英國倫敦收派中心)】; @opcode 647; @zoneGmt 1",
"...",
"@accept_time 2020-05-13 09:10:49; @accept_address 江门市; @remark 在官网'运单资料&签收图',可查看签收人信息; @opcode 8000; @stayWhyCode 1; @zoneGmt 8"
],
"weightFailed": false,
"errorCode": "string",
"errorMessage": "string"
},
"connectorResponses": [
{
"input": "{\"product_id\": 12121}",
"mappingName": "GetProductOp",
"api": [
"string"
],
"httpRequestRawData": "-",
"code": 42,
"response": "string",
"responseEn": "string",
"platform": "youzan",
"requestCount": 1,
"responseTime": 1000
}
],
"responseTime": 1000
}
{
"code": 42,
"message": "string",
"data": {
"shipmentId": "string",
"scanFormId": "string",
"scanFormUrl": "string",
"trackingReference": "string",
"waybillId": "string",
"orderSn": "string",
"orderRef": "string",
"sellerOrderRef": "string",
"domesticDeliveryCompany": "YTO",
"deliveryStatus": "DELIVERY",
"deliveryNote": "string",
"deliverySlipUrl": "string",
"trackingUrl": "string",
"checkPoints": [
"@accept_time 2020-05-01 04:59:38; @accept_address 伦敦; @remark 寄方准备快件中,当前地点: 【GB London Delivery Centre (英國倫敦收派中心)】; @opcode 647; @zoneGmt 1",
"...",
"@accept_time 2020-05-13 09:10:49; @accept_address 江门市; @remark 在官网'运单资料&签收图',可查看签收人信息; @opcode 8000; @stayWhyCode 1; @zoneGmt 8"
],
"weightFailed": false,
"errorCode": "string",
"errorMessage": "string"
},
"connectorResponses": [
{
"input": "{\"product_id\": 12121}",
"mappingName": "GetProductOp",
"api": [
"string"
],
"httpRequestRawData": "-",
"code": 42,
"response": "string",
"responseEn": "string",
"platform": "youzan",
"requestCount": 1,
"responseTime": 1000
}
],
"responseTime": 1000
}