6-2. 批量创建共享订单
url | http://test.birdsystem.com/client/Consignment/Post-Pending-Consignment-With-Products-Json | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method | post | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
body | [ { "contact": "Norman Drury", "business_name": null, "address_line1": "3, Northam Close", "address_line2": "Marshside", "address_line3": null, "city": "Southport", "county": "Merseyside", "post_code": "PR9 9GA", "country_iso": "GB", "telephone": "01704 226830", "email": null, "delivery_service_id": "2662", "sales_reference": "2", "sales_order_id": "110222319566-0", "special_instruction": null, "products":[ {"client_sku":"983#983-96678#D","quantity":1}, {"id":"983#96680#D","quantity":1} ] } ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
返回 | { "success": true, "data": [ { "id": 1612120020000011, "company_id": 2, "client_id": 1, "consignment_product_quantity": 9, "consignment_product_reference": "1,2", "delivery_service_id": 1471, "delivery_service_id_internal": 1471, "delivery_package_size_id": 432, "delivery_package_size_id_internal": 432, "total_price": "0.00", "total_cost": "0.00", "...": "...", "contact": "Norman Drury", "business_name": null, "address_line1": "3, Northam Close", "address_line2": "Marshside", "address_line3": null, "city": "Southport", "county": "Merseyside", "post_code": "PR9 9GA", "country_iso": "GB", "telephone": "01704 226830", "email": null, "sales_reference": "2" } ] } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
参数 |
|
此种方式需在POST前确保所有数据都正确,数据不正确的,将报错 不能创建订单。 附上相关用例文件: 创建订单用例.postman_collection.json