Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 23
Next »
接口说明:
参数说明:
参数 | 必选 | 类型 | 说明 |
---|
consignment_id | Y | BINGINT(16) | 订单ID |
product_name | Y | VARCHAR(50) | 产品英文名 |
product_name_cn | Y | VARCHAR(50) | 产品中文名 |
client_ref | Y | VARCHAR(255) | 客户sku |
brand | N | VARCHAR(50) | 品牌 |
price_customs_export | Y | VARCHAR(100) | 产品报关价(单位为美元) |
weight | Y | INT(4) | 产品重量(目前系统以g为单位) |
product_customs_property[] | Y | INT(4) | 产品属性(可传多个属性)获取产品属性 |
quantity | Y | INT(4) | 产品数量 |
attachment-url | - | VARCHAR(100) | 图片URL 新产品图片URL为必填,已存在的产品不用传图片URL(只能传网上的图片,不能传本地的) |
接口请求示例:
http://test.birdsystem.com/client/Agent-Direct-Consignment-Product/
api_key=a0366845436b4775e6c5caef5ebc0d0d&company_id=36
consignment_id=2011250360000309&product_name=cola&product_name_cn=可乐&client_ref=47-1&price_customs_export=14&weight=10&quantity=1&product_customs_property[]=9&product_customs_property[]=7
请求返回示例:
{
"data": {
"id": 7667871,
"consignment_id": 2011250360000309,
"product_name": "cola",
"product_name_cn": "可乐",
"client_ref": "47-1",
"brand": null,
"quantity": "1",
"weight": "10.00",
"price_customs_export": "14.000",
"price_customs_export_internal": "14.000",
"price_customs_export_origin": "0.000",
"price_customs_export_internal_origin": "0.000",
"primary_keys": [
"id"
]
},
"success": true,
"moduleName": "client"
}