重印货运标签请求

重新打印已确认订单的货运标签和包裹清单。

相关URL

Newegg.com: https://api.newegg.com/marketplace/shippingservice/shippinglabel/reprintshippinglabel?sellerid={sellerid} 
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/shippingservice/shippinglabel/reprintshippinglabel?sellerid={sellerid} 
Newegg.ca: https://api.newegg.com/marketplace/can/shippingservice/shippinglabel/reprintshippinglabel?sellerid={sellerid}

注:请确保您的请求URL全都是小写(除Seller ID)并且不能包含任何空格或者换行符。

参数

名称 是否必填? 描述
sellerid 您在新蛋商城的商家编号

相关请求信息

HTTP方式 是否需要认证? 请求格式 回复格式 频率限制
PUT 需要 XML,Json XML,Json 1000 请求/小时

请求文件主体

属性 是否必填? 格式 描述
OperationType String 固定值:ReprintShippingLabel
SellerID String 您的商家编号
OrderNumber Integer 订单编号

Schema: ShippingLabelReprintRequest.xsd

示例:XML,Request

POST https://api.newegg.com/marketplace/shippingservice/shippinglabel/reprintshippinglabel?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml

<NeweggAPIRequest>
    <OperationType>ReprintShippingLabel</OperationType>
    <SellerID>A006</SellerID>
    <RequestBody>
        <Shipment>
            <OrderNumber>2135751360</OrderNumber>
        </Shipment>
    </RequestBody>
</NeweggAPIRequest>

示例:Json,Request

POST https://api.newegg.com/marketplace/shippingservice/shippinglabel/reprintshippinglabel?sellerid={sellerid}
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json

{
  "NeweggAPIRequest": {
    "OperationType": "ReprintShippingLabel",
    "SellerID": "A006",
    "RequestBody": {
      "Shipment": { "OrderNumber": "2135751360" }
    }
  }
}

回复文件主体

属性 格式 描述
OperationType String 固定值:ReprintShippingLabelResponse
SellerID String 商家编号
OrderNumber Integer 需要操作的订单号
OrderStatus String 新订单状态:

  • Shipped(已全部发货)
  • PartiallyShipped(部分发货)
TrackingNumber String 发货包裹的追踪号
SignatureOptions String
  • 常规:承运人将在交货时获得收件人签名
  • 没有值表示不需要交付签名
LabelUrl String 下载货运标签的链接
PackageListUrl String 下载包裹列表的链接
SellerPartNumber String 卖家商品编号
Quantity Integer 商品发货数量

Schema: ShippingLabelReprintResponse.xsd

示例:XML,Response

<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIRequest>
    <OperationType>ReprintShippingLabelResponse</OperationType>
    <SellerID>A006</SellerID>
    <ResponseBody>
        <Shipment>
            <OrderNumber>2135751360</OrderNumber>
            <OrderStatus>Shipped</OrderStatus>
            <PackageList>
                <Package>
                    <TrackingNumber>1Z8V016A0377769652</TrackingNumber>
                    <SignatureOptions>Regular</SignatureOptions>
                    <LabelUrl>http://images10.newegg.com/SBNInbound/UPSShippingLabel/dc395051-a1ba-4c7e-99c9-94025bc7577e.pdf</LabelUrl>
                    <PackingListUrl>http://images10.newegg.com/SBNInbound/UPSShippingLabel/dc395051-a1ba-4c7e-99c9-94025bc7577e.pdf</PackingListUrl>
                    <ItemList>
                        <Item>
                            <SellerPartNumber>201307220000101</SellerPartNumber>
                            <Quantity>4</Quantity>
                        </Item>
                        <Item>
                            <SellerPartNumber>SARATEST0118</SellerPartNumber>
                            <Quantity>1</Quantity>
                        </Item>
                    </ItemList>
                </Package>
            </PackageList>
        </Shipment>
    </ResponseBody>
</NeweggAPIRequest>

示例:Json,Response

{
  "NeweggAPIRequest": {
    "OperationType": "ReprintShippingLabelResponse",
    "SellerID": "A006",
    "ResponseBody": {
      "Shipment": {
        "OrderNumber": "2135751360",
        "OrderStatus": "Shipped",
        "PackageList": {
          "Package": {
            "TrackingNumber": "1Z8V016A0377769652",
            "SignatureOptions": "Regular",
            "LabelUrl": "http://images10.newegg.com/SBNInbound/UPSShippingLabel/dc395051-a1ba-4c7e-99c9-94025bc7577e.pdf",
            "PackingListUrl": "http://images10.newegg.com/SBNInbound/UPSShippingLabel/dc395051-a1ba-4c7e-99c9-94025bc7577e.pdf",
            "ItemList": {
              "Item": [
                {
                  "SellerPartNumber": "201307220000101",
                  "Quantity": "4"
                },
                {
                  "SellerPartNumber": "SARATEST0118",
                  "Quantity": "1"
                }
              ]
            }
          }
        }
      }
    }
  }
}

请求失败错误信息

常规HTTP错误回复,请参考回复失败错误代码列表

错误代码 描述
SL001 Your request cannot be processed. The tem(s):{0} in order: [Order #] has been shipped or voided.

你的请求无法处理。[Order #]已经被运送或被撤销

SL002 No data found or this order does not belong to this seller.

无法找到该订单或该订单不属于这个商家

SL003 Only unshipped orders can submit a shipping request. The order status is currently {order status}.

只有未运送的订单可以提交运送请求。当前订单状态为{order status}

SL004 Only shipped by seller orders can submit a shipping request.

只有商家配送的请求可以提交运送请求

SL005 Seller Part #: {sellerpart#} must be shipped for its entire quantity on the order.

商品{seller part#}必须按订单中全部数量运送

SL006 The field: [PackageWeight or PackageLength or PackageHeight or PackageWidth] is required when using Newegg Partnered Carrier service (ShippingCarrierCode: 100). For more detail, please review Newegg API Development Guide.

使用新蛋合作物流公司服务(ShippingCarrierCode: 100)必须填写字段:[包装重量,包装长度,包装高度,包装 宽度]。更多信息请浏览新蛋 API 开发者手册。

SL007 The value in the field: PackageWeight cannot exceed {Maximum package weight limit by Newegg Partnered Carrier} lbs. ({Maximum package weight limit by Newegg Partnered Carrier}kg) when using Newegg Partnered Carrier service (ShippingCarrierCode: {ShippingCarrierCode}). For more detail, please review Newegg API Development Guide.

在使用新蛋合作物流服务(ShippingCarrierCode: {ShippingCarrierCode})时,包装重量超过{新蛋合作物流服务允许的最大重量限制}lbs。更多信息请浏览新蛋 API 开发者手册。

SL008 The value in the field: PackageLength cannot exceed {Maximum package length limit by Newegg Partnered Carrier} inches ({Maximum package length limit by Newegg Partnered Carrier} cm) when using Newegg Partnered Carrier service (ShippingCarrierCode: {ShippingCarrierCode}). For more detail, please review Newegg API Development Guide.

在使用新蛋合作物流服务(ShippingCarrierCode: {ShippingCarrierCode})时,包装长度超过{新蛋合作物流服务 允许的最大长度限制}inches。更多信息请浏览新蛋 API 开发者手册。

SL009 Package size cannot exceed {Maximum package cubic size limit by Newegg Partnered Carrier}inches ({Maximum package cubic size limit by Newegg Partnered Carrier} cm) in (Package Length + 2x Package Width + 2x Package Height) when using Newegg Partnered Carrier service (ShippingCarrierCode: {ShippingCarrierCode}). For more detail, please review Newegg API Development Guide.

在使用新蛋合作物流服务(ShippingCarrierCode: {ShippingCarrierCode})时,包装尺寸(包装长度 + 2x 包装宽度 + 2x 包装高度)不能超过{新蛋合作物流服务允许的最大包装立方大小}inches。更多信息请浏览新蛋 API 开发 者手册。

SL010 Cannot submit the request because seller part number(s):{sellerpart#} does NOT belong to this order.

无法提交请求因为商品{sellerpart#}不属于这个商家。

SL015 Cannot submit the request because currently only supports USA domestic transportation.Please revise the Ship From or Ship To information and try again.

无法提交该请求因为当前只支持美国国内运输。请修改发货地或收件人信息之后再次提交请求。

SL027 Invalid request. You are not able to use Newegg Shipping Label Service before sign up. Please visit Newegg Seller Portal > Add-on Services > Newegg Shipping Label Service to sign up.

无效请求。在注册成功之前不能使用新蛋货运标签服务。请登陆 Seller Portal,进入 Add-on Services > Newegg Shipping Label Service 进行注册。

SL030 Invalid request. The ShippingServiceCode :{ shipping service code} you specified is not a recognized value for ShippingCarrierCode :{ shipping carrier code}. Please review Newegg API Development Guide or schema for correct information.

无效请求。你指定的运送服务编号{ shipping service code}对于物流公司{ shipping carrier code}无法识别。请浏览新蛋 API 开发者手册或源码文件获取正确信息。

示例:XML,Response

<?xml version="1.0" encoding="utf-8"?>
<Errors>
    <Error>
        <Code>SL001</Code>
        <Message>Order Number should be an integer (ranging from 1 to 2147483647)</Message>
    </Error>
</Errors>

示例:Json,Response

[
    {
        "Code": "SL001",
        "Message": "Order Number should be an integer (ranging from 1 to 2147483647)"
    }
]

更新日期:01/13/2020