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 19 Next »

接口说明:

urlhttp://test.birdsystem.com/client/Agent-Direct-Consignment-Product/
接口功能
添加产品

支持格式JSON开发人员
请求方式POST发布日期

参数说明:

参数

必选

类型

说明

consignment_idYBINGINT(16)订单ID
product_nameYVARCHAR(50)产品英文名
product_name_cnYVARCHAR(50)产品中文名
client_refYVARCHAR(255)客户sku
brandNVARCHAR(50)品牌
price_customs_exportYVARCHAR(100)产品报关价(单位为美元)
weightYINT(4)产品重量(目前系统以g为单位)
quantityYINT(4)产品数量
product_customs_property[]YINT(4)产品属性(可传多个属性)获取产品属性
attachment-url-VARCHAR(100)

图片URL

新产品图片URL为必填,已存在的产品不用传图片URL(只能传网上的图片,不能传本地的)

请求示例:

接口请求示例:

consignment_id2011250360000309
product_namecola
product_name_cn可乐
client_ref47-1
brand
price_customs_export14
weight10
quantity1
product_customs_property[]9
product_customs_property[]7
attachment-url

请求返回示例:

{
    "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"
}

获取预置信息

往代理专线订单添加产品的时候, 需要产品海关属性, 可以预存到你们系统里, 不经常改变, 不需要每次都请求.

获取可用的海关属性

接口说明:(无入参)

URL
http://test.birdsystem.com/client/product-customs-property

接口功能

获取产品的海关属性
支持格式JSON开发人员
请求方式GET发布日期

接口返回示例:

{
    "total": 22,
    "data": [
        {
            "id": 1,
            "name": "内置锂离子电池",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "#",
            "is_separate_picking_list": "1",
            "is_separate_warehouse_transfer": "1",
            "consignment_priority": "2",
            "picking_list_group": "HK-锂离子",
            "create_time": "2015-07-07 10:12:52",
            "special_type": "BETTERY",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 2,
            "name": "插头",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2015-07-07 10:13:03",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 3,
            "name": "纯电池",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "1",
            "picking_list_group": "HK",
            "create_time": "2015-07-07 10:14:05",
            "special_type": "BETTERY",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 4,
            "name": "纺织品",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2015-07-07 10:14:20",
            "special_type": "CLOTHING",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 5,
            "name": "家居品",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2015-07-07 10:14:31",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 6,
            "name": "玩具类",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2015-07-07 10:14:52",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 7,
            "name": "Led类",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2015-07-07 10:15:07",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 9,
            "name": "其它",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2015-12-17 15:54:25",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 10,
            "name": "内置锂金属电池",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "#",
            "is_separate_picking_list": "1",
            "is_separate_warehouse_transfer": "1",
            "consignment_priority": "3",
            "picking_list_group": "HK-锂金属",
            "create_time": "2016-03-14 16:53:51",
            "special_type": "BETTERY",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 11,
            "name": "干电池",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "#",
            "is_separate_picking_list": "1",
            "is_separate_warehouse_transfer": "1",
            "consignment_priority": "1",
            "picking_list_group": "HK",
            "create_time": "2016-04-13 18:47:32",
            "special_type": "BETTERY",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 14,
            "name": "指尖陀螺",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2017-06-23 18:51:40",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 15,
            "name": "商检产品",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "1",
            "is_separate_warehouse_transfer": "1",
            "consignment_priority": "1",
            "picking_list_group": "HK",
            "create_time": "2017-07-28 17:23:53",
            "special_type": "HK",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 16,
            "name": "UK认证",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2017-08-01 18:29:55",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 17,
            "name": "普货",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "普货",
            "create_time": "2017-08-01 18:30:15",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 18,
            "name": "UK禁运",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2017-08-02 16:02:52",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 19,
            "name": "磁性物质",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "7",
            "picking_list_group": "国内",
            "create_time": "2017-08-09 10:44:28",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 20,
            "name": "激光产品",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "8",
            "picking_list_group": "国内",
            "create_time": "2018-06-11 19:09:32",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 21,
            "name": "电子类",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "1",
            "is_separate_warehouse_transfer": "1",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2018-08-07 10:33:38",
            "special_type": "HK",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 22,
            "name": "木质类",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2018-08-17 11:22:31",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 23,
            "name": "团团侠专用属性",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2019-01-09 11:10:56",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 58,
            "name": "电池",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "#",
            "is_separate_picking_list": "1",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "2",
            "picking_list_group": "HK-锂离子",
            "create_time": "2019-06-27 15:25:09",
            "special_type": "BETTERY",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 59,
            "name": "管制产品",
            "value_type": "BOOL",
            "default_value": null,
            "symbol": "",
            "is_separate_picking_list": "0",
            "is_separate_warehouse_transfer": "0",
            "consignment_priority": "99",
            "picking_list_group": "DEFAULT",
            "create_time": "2020-02-21 10:29:11",
            "special_type": "NORMAL",
            "primary_keys": [
                "id"
            ]
        }
    ],
    "success": true,
    "moduleName": "client"
}

获取指定产品的属性

接口说明:

URL
http://test.birdsystem.com/client/Product-Customs-Property/Get-All-Label/?product_id=XXX

接口功能

获取指定产品的海关属性
支持格式JSON开发人员
请求方式GET发布日期

参数说明:

参数说明类型
product_id产品ID,即系统skuINT(10)

请求示例:

http://test.birdsystem.com/client/Product-Customs-Property/Get-All-Label/?product_id=175191

接口返回示例:----------有问题,查到还是全部的海关属性。


  • No labels