获取Pending的临时订单
http://test.birdsystem.com/client/Temp-Consignment-Info?filter=[{"type":"list","value":["PENDING"],"field":"status"}]
{ "total": 1, "data": [ { "id": 13770378, "company_id": 11, "client_id": 47, "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_name": "United Kingdom", "telephone": "01704 226830", "email": null, "sales_reference": "2", "payment_reference": "Royal Mail 1st Class Standard", "special_instruction": null, "product_name": null, "product_company_ref": "15591*1+215312*1", "quantity": "0", "delivery_service_name": "Royal Mail 1st Class Standard", "error_description": null, "is_urgent": "0", "import_time": "2016-07-12 14:02:53", "type": "LOCAL", "status": "PENDING", "primary_keys": [ "id" ] } ], "success": true }
查询临时订单列表时可直接使用的过滤字段:
字段名 | 说明 | 类型 |
status | 临时订单状态 | 字符串,只能是'DELETED','PENDING','PROBLEM','FINISHED' 这些值中的任意一个 |
type | 临时订单类型 | 字符串,只能是 'LOCAL','DIRECT','RETURN','AGENT_DIRECT' 这些值中的任意一个 |
sales_reference | 销售跟踪号 | 字符串 |
post_code | 邮编 | 字符串 |
邮箱 | 字符串 | |
contact | 收件人 | 字符串 |
telephone | 电话 | 字符串 |
custom_identity_reference | 自定义唯一码 | 字符串 |
更新
url | |
method | post |
content-type | application/json |
body | { "id":"41232", "contact": "Norman asdfeaf" } 注意,最外层没有[ ] |
返回 | { "data": { "id": 41232, "company_id": 36, "client_id": 47, "contact": "Norman asdfeaf", "business_name": null, "address_line1": "bvcyxjtevhg", "address_line2": null, "address_line3": null, "city": "htev", "county": null, "post_code": "m25bq", "country_name": "United Kingdom", "telephone": null, "email": null, "sales_reference": null, "sales_price": "0.000", "sales_order_id": null, "custom_identity_reference": null, "payment_reference": null, "special_instruction": null, "product_name": null, "product_company_ref": "499157*1", "quantity": "1", "delivery_service_name": "平邮", "error_description": null, "is_urgent": "0", "import_time": "2019-01-25 14:10:42", "type": "LOCAL", "status": "PENDING", "primary_keys": [ "id" ] }, "success": true, "moduleName": "client" } |
参数 | id [必填] 其他要修改的参数, 如contact, post_code等 |
根据id删除
url | |
method | delete |
content-type | 无 |
params | ids=1_2_3 可以批量删除多个, id用_隔开 |
返回 | { "success": true, "message": "Delete successfully", "refresh": false, "moduleName": "client" } |
参数 | ids [必填] |
根据custom_identity_reference删除
url | |
method | post |
content-type | 无 |
params | custom_identity_reference=abcdefh |
返回 | { "success": true, "refresh": false, "moduleName": "client" } |
参数 | custom_identity_reference [必填] |