Versions Compared

Key

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

接口说明:

...

请求参数说明:

...

参数

...

必选

...

类型

...

说明

...

Status
colourRed
title必填

...

Status
colourRed
title必填

...

Status
colourYellow
title选填

...

Status
colourRed
title必填

...

Status
colourYellow
title选填

...

Status
colourYellow
title选填

...

eBay订单交易号

...

Status
colourYellow
title选填

...

参数说明:

...

参数

...

类型

...

说明

...

sold_quantity

...

count

...

product_customs_name

...

product_weight

...

total_price_customs_export

...

product_client_ref

...

产品SKU

...

id

...

product_id

...

consignment_id

...

quantity

...

unit_product_price

...

unit_product_cost

...

unit_product_width

...

unit_product_depth

...

price_customs_export

...

price_customs_export_internal

...

price_customs_export_origin

...

price_customs_export_internal_origin

...

sn

...

product_type

...

primary_keys

...

接口请求示例

URL:http://test.birdsystem.com/client/Consignment-Product

Code Block
languagexml
title请求接口示例
linenumberstrue
collapsetrue
#api_key和company_id和提交数据中consignment_id &product_id需要替换成实际数据
-Headers 'api_key: {{bs.default_api_key}}' \   #所需登录站点company_id
-Headers 'company_id: {{bs.default_company_id}}' \    #所需登录账号的api_key
-Headers 'content-type: application/x-www-form-urlencoded' \

接口请求参数示例(一次请求只能推送一次产品,多件产品需推送多次)

Code Block
languagexml
title接口请求参数示例
linenumberstrue
collapsetrue
consignment_id:2012140360000997
product_id:2989354
quantity:1

接口返回示例:

Code Block
languagejs
title接口返回示例
linenumberstrue
collapsetrue
{
    "data": {
        "sold_quantity": null,
        "count": null,
        "product_customs_name": null,
        "product_weight": null,
        "total_price_customs_export": null,
        "product_client_ref": null,
        "id": 71525956,
        "product_id": 2989354,
        "consignment_id": 2012140360000997,
        "quantity": "2",
        "unit_product_price": "2.00",
        "unit_product_cost": "0.00",
        "unit_product_weight": "50.00",
        "unit_product_length": "50.00",
        "unit_product_width": "50.00",
        "unit_product_depth": "50.00",
        "price_customs_export": "5.000",
        "price_customs_export_internal": "1.000",
        "price_customs_export_origin": "0.000",
        "price_customs_export_internal_origin": "0.000",
        "sn": null,
        "product_type": "NORMAL",
        "primary_keys": [
            "id"
        ]
    },
    "success": true,
    "moduleName": "client"
}

返回异常示例(检查产品ID是否允许添加产品或检查产品是否正常,库存是否充足)

Code Block
languagejs
title返回异常示例
linenumberstrue
collapsetrue
{
    "success": false,
    "message": "Can not find product by id [2989352222]."
}