TTWUSA APIV2

出库管理

修改出库单

修改出库订单。

POST
生产环境https://ssl.glitzcloud.com/agent/v1/orders/order/edit
测试环境http://gztest.glitzcloud.com/agent/v1/orders/order/edit
Content-Typeapplication/json

说明

1、功能名称:修改出库单

2、功能描述:修改出库单

鉴权说明

请参阅鉴权签名说明。

请求参数

名称类型必填示例值描述
store_nameStringThe Warehouse USA仓库名称
platform_shop_nameStringAmazon平台名称
shop_idStringAPIStore店铺名称
order_snStringG201608150001平台店铺订单编号
pre_outflow_timeString2016-08-15~2016-08-20 或 2016-08-15要求出库时间
client_order_idStringXM3K9U034033客户订单编号
remarkStringremark备注
business_typeInteger1,21:B2B,2:B2C
transport_idStringUPS快递公司名称,[物流方式]接口获取
shipmethod_idStringUPS Ground派送方式,[物流方式]接口获取
packagetype_idStringYour Packaging包裹类型,[物流方式]接口获取
declared_cFloat100.5预报长度
declared_kFloat100.5预报宽度
declared_gFloat100.5预报高度
companyStringGlitzhome收件人公司
nameStringJim收件人
telephoneString021-5370246电话号码
postcodeString200000邮编
address_1String上海浦东新区地址第一行
address_2String金科路2889号地址第二行
address_3String长泰广场C栋1002地址第三行
countryStringUS国家二字码
provinceStringWA省/州
cityStringNew York
bill_typeInteger支付方式0:TWUSA平台支付1:第三方平台支付2:到付
track_numString物流跟踪号bill_type=3时必填,否则为非必填
is_insuranceFloat0是否投保,0:不投保;1:投保;当transport_id是Ups或Fedex支持投保。
signature_valueInteger1签名服务,1:直接签名;2:间接签名;3:成人签名。留空表示无需签名服务
is_confirm_troubleInteger0,1trouble订单是否确认 0 未确认 1已经确认
ship_shortInteger0,1是否短缺发货 0 否 1 是;仅未生成拣货批次或订单异常时可修改此字段
productsString[{\"exp_piece_qty\":1,\"product_sn\":\"X003GUP025\"}]产品列表,json字符串

返回字段

参数类型示例值描述
order_idInteger2509出库单ID

示例

请求示例
{
    "apikey": "85082f5f62a811e684f500163e06045f",
    "randoms": 1234,
    "sign": "656d6fbe6b7dec6c2e77ffe27f04bd6d",
    "store_name": "The Warehouse USA",
    "platform_shop_name": "Amazon",
    "shop_id": "APIStore",
    "order_sn": "G201608150001",
    "pre_outflow_time": "2016-08-15",
    "remark": "remark",
    "business_type": "1",
    "transport_id": "UPS",
    "shipmethod_id": "UPS Ground",
    "packagetype_id": "Your Packaging",
    "declared_c": 100.5,
    "declared_k": 100.5,
    "declared_g": 100.5,
    "company": "glitzhome",
    "telephone": "021-5370246",
    "postcode": "200000",
    "address_1": "上海浦东新区",
    "address_2": "金科路2889号",
    "address_3": "长泰广场C栋1002",
    "country": "US",
    "province": "WA",
    "city": "New York",
    "bill_type": 1,
    "products": "[{\"exp_piece_qty\":1,\"product_sn\":\"X003GUP025\"}]"
}
返回示例
{
    "status": 200,
    "reqMsg": "ok",
    "result": {
        "order_id": "2509"
    }
}
示例 3
{
    "status": "2518",
    "reqMsg": "Carrier is compulsory",
    "result": []
}