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

获取预置信息

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

获取可用的海关属性

接口说明:(无入参)

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

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



往订单中添加产品

地址: POST http://test.birdsystem.com/client/Agent-Direct-Consignment-Product/

参数:图片URL:attachment-url

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

参数

//订单id
consignment_id=1909290020000003
//产品英文名称
product_name=1apple29
//产品中文名称
product_name_cn=1苹果29
//客户sku
client_ref=1apple29
//品牌(非必填)
brand=ASC
//报关价 美元
price_customs_export=3
//重量 g(随系统设置)
weight=100
//数量
quantity=1
//海关属性ID, 可以有多个属性
product_customs_property[]=17
product_customs_property[]=9
//图片URL(不能传本地的图片,只能传存在网上的)
attachment-url=http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg


返回

{
    "data": {
        "id": 3077684,
        "consignment_id": 1909290020000003,
        "product_name": "1apple29",
        "product_name_cn": "1苹果29",
        "client_ref": "1apple29",
        "brand": null,
        "quantity": "1",
        "weight": "100.00",
        "price_customs_export": "3.000",
        "price_customs_export_internal": "3.000",
        "primary_keys": [
            "id"
        ]
    },
    "success": true,
    "moduleName": "client"
}
  • No labels