3.1.2 往订单添加产品
to Hallucin Grape (Unlicensed)
tuhao
Seven Zhang
FBA单个订单添加产品接口描述
| https://<系统域名>/client/Consignment-Product |
---|
| https://<系统域名>/client/Consignment-Product | ||
---|---|---|---|
接口功能 | FBA单个订单创建接口 | 订单类型 | FBA |
支持格式 | JSON | 开发人员 | 数据已丢失 |
请求方式 | POST | 发布日期 | 数据已丢失 |
请求改动 |
|
|
|
接口请求参数描述
参数 | 说明 | 是否必填 | 是否对接字段/取值内容(请求根据实际情况选择填写) |
---|
参数 | 说明 | 是否必填 | 是否对接字段/取值内容(请求根据实际情况选择填写) |
---|---|---|---|
consignment_id | 订单ID | 是 | 按用户填的传 |
product_id | 产品ID | 是 | 按用户填的传 |
product_type | 产品类型 | 选填 其它类型 普通共享产品(with_shared) | 按用户填的传 |
quantity | 数量 | 是 | 按用户填的传 |
sales_price | 产品销售价格 | 选填 | 按用户填的传 |
ebay_transaction_id | eBay订单ID | 选填 | 按用户填的传 |
ebay_item_no | eBay产品ID | 选填 | 按用户填的传 |
fba_product_need_change_label | 是否换标 | 选填,默认0 |
|
fba_product_extra_sku | 新标 | 选填 |
|
请求描述
(以下为折叠内容,签署合同时以下信息无需参考,仅供第三方对接参考)
使用接口调试工具postman
请求描述
温馨提示:
1、请注意必填字段,添加产品时,必填字段未填会报错。
2、如遇到添加产品被拦截提示报错的情况,请及时反馈飞鸟客服协助处理。
Http请求格式:
POST /client/Consignment-Product/ HTTP/1.1
Host: {{Bird_URL}}
Headres:
api_key: {{api_key}}
company_id: {{company_id}}
Cookie: PHPSESSID=3s3nejv43u9bhirsrvq9nge254
"""产品类型为普通"""
Body
raw
{
"consignment_id": "2105310360033987",
"product_id": "2989352",
"product_type": "normal", #product_type字段可不填
"quantity": "1",
"sales_price": "10", //平台销售价格(必填)
"ebay_transaction_id": "ebayID",
"ebay_item_no": "eBayproductID"
}
普通产品,返回结果
{
"data": {
"sold_quantity": null,
"count": null,
"product_customs_name": null,
"product_weight": null,
"total_price_customs_export": null,
"product_client_ref": null,
"id": 71646419,
"product_id": 2989352,
"consignment_id": 2105310360033987,
"quantity": "2",
"unit_product_price": "1.00",
"unit_product_cost": "0.00",
"unit_product_weight": "50.00",
"unit_product_length": "20.00",
"unit_product_width": "20.00",
"unit_product_depth": "20.00",
"price_customs_export": "1.000",
"price_customs_export_internal": "5.000",
"price_customs_export_origin": "0.000",
"price_customs_export_internal_origin": "0.000",
"sales_price": "10",
"sn": null,
"product_type": "NORMAL",
"primary_keys": [
"id"
]
},
"success": true,
"moduleName": "client"
}
定向共享产品:
47客户指定共享给4790客户的产品
POST /client/Consignment/Post-Pending-Consignment-With-Products-Json HTTP/1.1
Host: {{Bird_URL}}
Headres:
api_key: {{api_key}}
company_id: {{company_id}}
Cookie: PHPSESSID=3s3nejv43u9bhirsrvq9nge254
"""产品类型为普通"""
Body
raw
{
"consignment_id": "2105310360033995",
"product_id": "2989068",
"product_type": "is_directional_shared_product", #必填
"quantity": "1",
"sales_price": "10",
"ebay_transaction_id": "ebayID",
"ebay_item_no": "eBayproductID"
}
定向共享产品,返回结果
{
"data": {
"sold_quantity": null,
"count": null,
"product_customs_name": null,
"product_weight": null,
"total_price_customs_export": null,
"product_client_ref": null,
"id": 71646425,
"product_id": 2989068,
"consignment_id": 2105310360033995,
"quantity": "2",
"unit_product_price": "0.00",
"unit_product_cost": "0.01",
"unit_product_weight": "20.00",
"unit_product_length": "20.00",
"unit_product_width": "20.00",
"unit_product_depth": "20.00",
"price_customs_export": "2.000",
"price_customs_export_internal": "1.000",
"price_customs_export_origin": "0.000",
"price_customs_export_internal_origin": "0.000",
"sales_price": "10",
"sn": null,
"product_type": "DIRECTIONAL",
"primary_keys": [
"id"
]
},
"success": true,
"moduleName": "client"
}
普通共享产品
47客户共享的产品
POST /client/Consignment/Post-Pending-Consignment-With-Products-Json HTTP/1.1
Host: {{Bird_URL}}
Headres:
api_key: {{api_key}}
company_id: {{company_id}}
Cookie: PHPSESSID=3s3nejv43u9bhirsrvq9nge254
"""产品类型为普通"""
Body
raw
{
"consignment_id": "2105310360033998",
"product_id": "2989068",
"product_type": "with_shared", #可不填
"quantity": "1",
"sales_price": "10",
"ebay_transaction_id": "ebayID",
"ebay_item_no": "eBayproductID"
}
普通共享产品,返回结果
{
"data": {
"sold_quantity": null,
"count": null,
"product_customs_name": null,
"product_weight": null,
"total_price_customs_export": null,
"product_client_ref": null,
"id": 71646427,
"product_id": 2989068,
"consignment_id": 2105310360033998,
"quantity": "2",
"unit_product_price": "0.01",
"unit_product_cost": "0.01",
"unit_product_weight": "20.00",
"unit_product_length": "20.00",
"unit_product_width": "20.00",
"unit_product_depth": "20.00",
"price_customs_export": "2.000",
"price_customs_export_internal": "1.000",
"price_customs_export_origin": "0.000",
"price_customs_export_internal_origin": "0.000",
"sales_price": "10",
"sn": null,
"product_type": "NORMAL",
"primary_keys": [
"id"
]
},
"success": true,
"moduleName": "client"
}