重印貨運標籤請求

重新列印已確認訂單的貨運標籤和包裹清單。

相關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