Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

创建订单

地址: POST http://test.birdsystem.com/client/consignment/Post-Pending-Consignment-With-Products-Json

参数


产品CRUD字段详情查看产品接口

id /client_sku/reference 和quantity的json对象例如:
参数

        


请求参数

     

is_urgent

是否是紧急订单


TINYINT(1)

delivery_service_id

邮递服务ID

必填

INT(4)

sales_reference销售跟踪号
VARCHAR(50)
sales_order_id
销售订单号
VARCHAR(50)
custom_identity_reference


自定义惟一标识

(注: 如果填写了,会进行检测,同一种类型同一站点下的订单,6个月内不能有重复的标识)

重复的话会返回: {"success":false,"message":"Duplicate consignment identity reference [....]"}


VARCHAR(50)

contact

联系人

必填

VARCHAR(100)

business_name

公司


VARCHAR(255)

address_line1

地址行1


VARCHAR(100)

address_line2

地址行2


VARCHAR(100)

address_line3

地址行3


VARCHAR(100)

city

城市


VARCHAR(50)

county

省/郡


VARCHAR(50)

post_code

邮编


VARCHAR(10)

country_iso

国家

必填

CHAR(2)

telephone

电话


VARCHAR(50)

email

电子邮件


VARCHAR(255)

special_instruction
发件人地址备注
VARCHAR(255)

type

订单类型
'AGENT_DIRECT'

products

产品

必填

包含 

Include Page
产品CRUD
Code Block
languagexml
   "products":[

           {

            "product_name""3apple29",

            "product_name_cn":"3苹果29",

            "brand":"asd品牌",

            "client_ref":"a4624",

            "price_customs_export""3",

            "sales_price":"10",

            "weight""300",

            "quantity""1",

            "product_customs_property":["其它"],

            "attachment-url":"http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg"

           }

        ]
parcel_pieces多包裹信息可选(如果仅一个包裹时可不用填)

数据结构如下:

[

{"weight":500, "length":25, "width":20, "depth":15, "description":"table"},

{"weight":400, "length":22, "width":18, "depth":13, "description":"chair"},

]

备注:重量为克(g),长度为毫米(mm)



...