使用接口调试工具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"
}
定向共享产品,返回结果
普通共享产品
47客户共享的产品
普通共享产品,返回结果