使用接口调试工具postman 请求描述 温馨提示: 1、请注意必填字段,创建订单时,必填字段未填会报错。 2、如遇到下单被拦截提示报错的情况,请及时反馈飞鸟客服协助处理。 Http请求格式: Code Block |
---|
| POST /client/Consignment/Post-Pending-Consignment-With-Products-Json HTTP/1.1
Host: {{Bird_URL}}
Headres:
api_key: {{api_key}}
company_id: {{company_id}}
Cookie: PHPSESSID=3s3nejv43u9bhirsrvq9nge254
Body
raw
[
{
"contact": "yuhao",
[
{
"contact": "Norman Drury",
"business_name": null,
"address_line1": "DPF4"3, Northam Close",
"address_line2": "D474Marshside",
"address_line3": null,
"city": "AtlantaSouthport",
"county": "GeorgiaMerseyside",
"post_code": "30309PR9 9GA",
"country_iso": "GB",
"telephone": "01704 226830",
"email": null,
"delivery_service_id": "27095317",
"sales_reference": "2",
"sales_order_id": "110222319566-0",
"special_instruction": null,
"type": "DIRECT",
"products": [
{
{ "id":2989352, "3",
"quantity": 1,"sales_price":"10"}
]"ebay_transaction_id": "2222",
"#salesebay_orderitem_idno": " //33"
新增 销售订单ID 【yodel 出口必填】", },
"sales_order_id": "1234567654", {
"#omp_nameid":"// 新增 销售平台名称 (必须是英文), ebay, amazon 等 【royal mail,yodel 出口必填】" 1,
"quantity": 1,
"ompebay_transaction_nameid": "ebay2222",
"#ompebay_vatitem_numberno":"// 新增 销售平台的vat号 【yodel 出口必填】 "33",
"ompsales_vat_numberprice": "1234510",
"#shippercountry_of_eoriorigin":"// 新增 客户的eori号 "CN"
【royal mail,dpd}
出口必填】", ],
"shippersales_order_eoriid": "123450001234567654",
"#reasonomp_for_exportname":"// 新增 出口原因: (Sale:销售; ReturnReplacement:退换; Gift:礼物),【dpd 出口必填】 "ebay",
"reasonomp_forvat_exportnumber": "Sale12345",
"#contentshipper_typeeori":"// 新增 包裹类型: (Gift:礼物;Documents:文件,Other:其他),【royalmail 出口必填】 "12345000",
"content_type"reason_for_export": "GiftSale",
"iosscontent_vat_numbertype": "172848Gift"
}
] |
返回结果: Code Block |
---|
| {
"success": true,
"data": [
{: [
{
"id": 21032203600000032111050020000049,
"company_id": 362,
"client_id": 471,
"warehouse_id": null,
"consignment_product_quantity": "12",
"consignment_product_reference": "26852821,3",
"delivery_service_id": 27095317,
"delivery_service_id_internal": 27095317,
"delivery_package_size_id": 617,
: 958,
"total_price": "0.00",
"total_sales_price": "10.00",
"total_delivery_fee": "01.00",
"total_handling_fee": "0.5000",
"length": "0.00",
"width": "0.00",
"depth": "0.00",
"total_weight": "25075.00",
"total_volume": "20971521040500.00",
"total_volume_weight": "20971521144550.0000",
,
"total_fee_weight": "25075.0000",
"guarantee_percentage": "0.00",
"contact": "yuhaoNorman Drury",
"business_name": null,
"address_line1": "DPF4"3, Northam Close",
"address_line2": "D474Marshside",
"address_line3": null,
"city": "AtlantaSouthport",
"county": "Georgia",
"Merseyside",
"post_code": "30309PR9 9GA",
"country_iso": "GB",
"telephone": "01704 226830",
"email": null,
"sender_contact": null,
"sender_business_name": null,
"sender_address_line1": null,
"sender_address_line2": null,
"sender_address_line3": null,
"sender_city": null,
"sender_county": null,
"sender_post_code": null,
"sender_country_iso": null,
"sender_email": null,
"sender_telephone": null,
"sales_reference": "2",
"sales_price": "000.000",
"customs_price": "25.000",
"custom_identity_reference": null,
"sales_order_id": 1234567654,
"paymentcustom_identity_reference": null,
"payment_reference": null,
"delivery_reference": null,
"tracking_reference": null,
"special_instruction": null,
"neighbour_instruction": null,
"omp_name": "ebay",
"omp_vat_number": "52712345",
"shipper_eori": "12345000",
"shipperreceiver_eori": "1616407132"null,
"receiver_pid_number": null,
"ioss_vat_number": "172848"null,
"temp_consignment_info_id": null,
"is_urgent": "0",
"is_forced_delivery_service": "0",
"create_time": "2021-0311-2205 1713:5850:5122",
"finish_time": null,
"2021-11-05 13:50:23",
"arrive_time": null,
: null,
"update_time": "2021-0311-2205 1713:5850:5223",
"type": "LOCALDIRECT",
"status": "PENDINGFINISHED",
"stock_status": "ONLY_ORI_STOCK_ENOUGH",
"reason_for_export": "SALE",
"content_type": "GIFT",
"is_hide_delivery_reference_to_consignment": "0",
"delivery_service_is_signature": "0",
"delivery_service_is_tracking": "0"
}
],
"moduleName": "client"
} |
line: 创建失败的时候, 会告知是哪一个line出错. data是创建成功的订单号和跟踪号的键值对 json对象 返回异常示例 Code Block |
---|
| {
"success": false,
"message": "You must provide valid contact for consignment at line ."
} |
|