Versions Compared

Key

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

...

url

http://test.birdsystem.co.uk/client/Consignment-Product

method

post

body

form 参数如下:

product_id

产品ID

 必填

INT(10)

consignment_id

订单ID

 必填

BINGINT(16)

product_type

产品类型

 必填

'NORMAL'

quantity数量 必填SMALLINT(5)

is_directional_shared_product

是否定向共享产品 选填0


返回


Code Block
languagejs
{
    "success":true,
    "data":{
		"id":"1124955",
		"consignment_id":"2006143004830001",
		"product_id":"334422",
		"...":"..."
	}
}


样例

Code Block
languagebash
linenumberstrue
# api_key和company_id和提交数据中的delivery_service_id需要替换成实际数据
curl -X POST \
  https://test.birdsystem.com/client/consignment-product \
  -H 'api_key: 248ccb90dff2b99465b54c113765360c' \
  -H 'company_id: 36' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -d 'consignment_id=1904160360000015&product_id=200876&quantity=1'

请注意,一次请求只能添加一种产品,如果添加多种产品,请发多个请求。