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

获取预置信息

创建订单的时候, 需要邮递服务和包裹尺寸, 可以预存到你们系统里, 不经常改变, 不需要每次都请求.

获取邮递服务

地址: GET  http://test.birdsystem.com/client/delivery-service?status=ACTIVE

返回

{
    "total":2,
    "success":true,
    "data":[
        {
            "id": 2667,
            "company_id": 36,
            "restrict_max_length_contact": "35",
            "restrict_max_length_address_line1": "35",
            "restrict_max_length_address_line2": "35",
            "restrict_max_length_address_line3": "35",
            "restrict_max_length_post_code": null,
            "restrict_regex_post_code": null,
            "restrict_regex_telephone": null,
            "name": "代理平邮UK24",
            "locale_name": "AGENT UNTRACK UK 24",
            "is_signature": "0",
            "is_tracking": "0",
            "is_express": "0",
            "is_international": "0",
            "is_customs_required": "0",
            "is_check_post_code": "1",
            "is_check_telephone": "0",
            "is_allow_urgent_consignment": "1",
			"is_hide_delivery_reference_to_consignment": "1",
            "special_type": "RM2",
            "consignment_type": "AGENT_DIRECT",
            "consignment_notice_enable": "0",
            "consignment_notice": "",
            "status": "ACTIVE"
        },
        {
            "id": 2668,
            "company_id": 36,
            "restrict_max_length_contact": "35",
            "restrict_max_length_address_line1": "35",
            "restrict_max_length_address_line2": "35",
            "restrict_max_length_address_line3": "35",
            "restrict_max_length_post_code": "0",
            "restrict_regex_post_code": null,
            "restrict_regex_telephone": null,
            "name": "代理跟踪UK48",
            "locale_name": "AGENT TRACK UK 48",
            "is_signature": "0",
            "is_tracking": "1",
            "is_express": "0",
            "is_international": "0",
            "is_customs_required": "0",
            "is_check_post_code": "1",
            "is_check_telephone": "0",
            "is_allow_urgent_consignment": "1",
			"is_hide_delivery_reference_to_consignment": "1",
            "special_type": "RM2",
            "consignment_type": "AGENT_DIRECT",
            "consignment_notice_enable": "0",
            "consignment_notice": "",
            "status": "ACTIVE"
        }
    ],
    "moduleName":"client"
}

注意 is_hide_delivery_reference_to_consignment 的值为1时,没有跟踪号。


获取可用的产品属性

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

接口说明:(无入参)

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/consignment/Post-Pending-Consignment-With-Products-Json

参数 说明

product_customs_property: 产品属性可以用名称,也可以用ID,获取途径如上。 [必填]

product_name_cn:产品中文名称 ,不填写会影响清关文件  [必填]

sales_price: 订单在销售平台的价格,(不填的话会自动调用产品申报价格)。

sales_reference:需要填写销售跟踪号请自行添加参数 sales_reference,  例如 "sales_reference":"12345"

weight:重量,单位为g [必填]

price_customs_export:海关出口报关价,单位为美元。(用product_name或name、product_name_cn,或name_cn、price_customs_export或 price都可以上传对应的值) [必填]

client_ref:对应客户sku,有传则可配置面单显示此字段,便于拣货。  [必填]

custom_identity_reference:自定义唯一跟踪号,属于排重字段,防止重复订单,填写后会检查同一订单类型下6个月内是否有重复订单,重复则报错提示。

brand:品牌

attachment-url:产品图片URL,传送图片链接供飞鸟质检审核产品(只能传网上的图片,不能传本地的) [必填]
returnLabel:直接对接获取面单参数(只适用于下一个订单的情况)
接口:http://test.birdsystem.com/client/Consignment/post-Pending-Consignment-With-Products-Json?returnLabel=1&company_id=36&api_key=a0366845436b4775e6c5caef5ebc0d0d

[
  {
    "delivery_service_id": "5198",
       "type":"AGENT_DIRECT",
    "business_name": "",
    "contact": "Rochelle Kerr",
    "address_line1": "23 Portelet Court",
    "city": "London",
    "county": "London",
    "post_code": "N1 5TL",
    "country_iso": "GB",
    "telephone": "07983-467763-467763",
    "custom_identity_reference":"224SF242321",
    "line": "1",
    "products": [
      {
        "product_name": "3apple29",
        "product_name_cn":"3苹果29",
        "brand":"asd品牌",
        "client_ref":"a4624",
        "price_customs_export": "3",
        "sales_price":"10",
        "weight": "300",
        "quantity": "1",
        "product_customs_property":["普货"],
        "attachment-url":"http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg"
      },
       {
        "product_name": "4apple29",
        "product_name_cn":"4苹果29",
        "brand":"asd品牌",
        "client_ref":"a5456",
        "price_customs_export": "3",
        "sales_price":"10",
        "weight": "300",
        "quantity": "1",
        "product_customs_property":["内置锂离子电池"],
        "attachment-url":"http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg"
      }
    ]
  }
]

line: 创建失败的时候, 会告知是哪一个line出错.


返回

{
    "success": true,
    "data": [
        {
            "id": 2001210360000027,
            "company_id": 36,
            "client_id": 47,
            "warehouse_id": null,
            "consignment_product_quantity": "2",
            "consignment_product_reference": "3apple29,4apple29",
            "delivery_service_id": 5198,
            "delivery_service_id_internal": 5198,
            "delivery_package_size_id": 877,
            "total_price": "0.00",
            "total_delivery_fee": "9.00",
            "total_handling_fee": "0.00",
            "length": "0.00",
            "width": "0.00",
            "depth": "0.00",
            "total_weight": "600.00",
            "total_volume": "0.00",
            "total_volume_weight": "0.0000",
            "guarantee_percentage": "0.00",
            "contact": "Rochelle Kerr",
            "business_name": null,
            "address_line1": "23 Portelet Court",
            "address_line2": null,
            "address_line3": null,
            "city": "London",
            "county": "London",
            "post_code": "N1 5TL",
            "country_iso": "GB",
            "telephone": "07983-467763-467763",
            "email": null,
            "sender_contact": null,
            "sender_business_name": null,
            "sender_address_line1": null,
            "sender_address_line2": null,
            "sender_address_line3": null,
            "sender_city": null,
            "sender_county": null,
            "sender_post_code": null,
            "sender_country_iso": null,
            "sender_email": null,
            "sender_telephone": null,
            "sales_reference": null,
            "sales_price": "0.000",
            "customs_price": "6.000",
            "custom_identity_reference": "224SF242321",
            "sales_order_id": null,
            "payment_reference": null,
            "delivery_reference": "0B043873700001DFE9790",
            "tracking_reference": null,
            "special_instruction": null,
            "neighbour_instruction": null,
            "temp_consignment_info_id": null,
            "is_urgent": "0",
            "is_forced_delivery_service": "0",
            "create_time": "2020-01-21 18:22:57",
            "finish_time": null,
            "arrive_time": null,
            "update_time": "2020-01-21 18:22:57",
            "type": "AGENT_DIRECT",
            "status": "ADDRESS_LABEL_PRINTED",
            "stock_status": "ONLY_ORI_STOCK_ENOUGH",
            "is_hide_delivery_reference_to_consignment": "0"
        }
    ],
    "moduleName": "client"
}

data是创建成功的订单号和跟踪号的键值对 json对象


  • No labels