文档
测试

/dbo/v1/shipment/{shipment_oid}/buy

POST
/dbo/v1/shipment/{shipment_oid}/buy

接口描述

指定费率购买货物

请求参数

参数名
类型
描述
必填
shipment_oid
string
path参数
必填
service
string
query参数:
必填

请求参数说明

service 参数 Available values : Opene Parcel ExpeditedChinaUS, Opene Parcel PriorityChinaUS, Opene Parcel StandardChinaUS, USPS FirstClass, USPS FirstClass T1$, USPS FirstClass T2$, USPS FirstClass T3$, USPS FirstClass T4$, USPS FirstClass T5$, USPS PriorityMail, USPS PriorityMail T1$, USPS PriorityMail T2$, USPS PriorityMail T3$, USPS PriorityMail T4$, USPS PriorityMail T5$, UPS Ground, UPS Ground Commercial, UPS Ground Residential, UPS 2ndDayAir, FedEx Ground

响应参数示例

{ "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z", "account_oid": "string", "state": "error", "ref_id": "string", "order_info": { "sales_channel": "string", "order_id": "string" }, "to_address": { "street1": "string", "street2": "string", "city": "string", "state": "string", "postal_code": "string", "country": "string", "carrier_facility": "string", "name": "string", "company": "string", "phone": "string", "email": "string", "residential": true, "federal_tax_id": "string", "state_tax_id": "string", "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" }, "from_address": { "street1": "string", "street2": "string", "city": "string", "state": "string", "postal_code": "string", "country": "string", "carrier_facility": "string", "name": "string", "company": "string", "phone": "string", "email": "string", "residential": true, "federal_tax_id": "string", "state_tax_id": "string", "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" }, "return_address": { "street1": "string", "street2": "string", "city": "string", "state": "string", "postal_code": "string", "country": "string", "carrier_facility": "string", "name": "string", "company": "string", "phone": "string", "email": "string", "residential": true, "federal_tax_id": "string", "state_tax_id": "string", "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" }, "buyer_address": { "street1": "string", "street2": "string", "city": "string", "state": "string", "postal_code": "string", "country": "string", "carrier_facility": "string", "name": "string", "company": "string", "phone": "string", "email": "string", "residential": true, "federal_tax_id": "string", "state_tax_id": "string", "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" }, "parcel": { "dimension": { "length": 0, "width": 0, "height": 0, "unit": "mm" }, "weight": { "value": 0, "unit": "g" }, "irregular": true, "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" }, "customs": { "contents_type": "documents", "contents_explanation": { "content": "string", "language": "en" }, "customs_certify": true, "customs_signer": "string", "return_non_delivery": "return", "restriction_type": "none", "restriction_comment": "string", "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" }, "items": [ { "quantity": 0, "product": { "description": { "content": "string", "language": "en" }, "value": { "amount": 0, "currency": "USD" }, "product_id": "string", "weight": { "value": 0, "unit": "g" }, "dimension": { "length": 0, "width": 0, "height": 0, "unit": "mm" }, "hs_tariff_code": "string", "origin_country": "CN", "oid": "string", "created_datetime": "2020-04-10T03:33:44.777Z", "updated_datetime": "2020-04-10T03:33:44.777Z" } } ], "rates": [ { "carrier": "Opene", "service": "Opene Parcel ExpeditedChinaUS", "carrier_account_id": "string", "is_selected": true, "is_purchased": true, "rate": { "amount": 0, "currency": "USD" }, "error": "string" } ], "purchased_rate": { "carrier": "Opene", "service": "Opene Parcel ExpeditedChinaUS", "carrier_account_id": "string", "is_selected": true, "is_purchased": true, "rate": { "amount": 0, "currency": "USD" }, "error": "string" }, "tracker": { "carrier": "string", "tracking_code": "string" }, "postage_label": { "pdf_url": "string" }, "fees": [ { "fee_type": "L", "amount": { "amount": 0, "currency": "USD" }, "held": true, "released": true, "charged": true, "refunded": true } ], "reason": "string", "payload": "string" }