簡體   English   中英

亞馬遜賣家中心 - SP-API - 獲取貨件標簽

[英]Amazon Seller Central - SP-API - GET Labels for shipment

我以前沒有使用亞馬遜 MWS 的經驗,所以我可能不了解整個流程。 現在,我正在嘗試獲取我通過賣家中心 UI 手動創建的貨件的標簽。 我創建的貨件已成功提取(操作:getShipments),現在我在獲取標簽時遇到問題。

這是來自 API 的錯誤響應:

{'errors': [{'code': 'InvalidInput',
   'message': 'Provided SellerCartonIds are not valid: [[FBAxxxxxxxxxU000001]] for Shipment: [FBAxxxxxxxxx]',
   'details': ''}]}

如果我從 UI FBAxxxxxxxxxU000001打印標簽 label 打印在 pdf 中 - 也可以在此處找到有關命名的信息。

一般來說,我不知道在哪里可以找到來自GetLabelsDocs的 package 標簽PackageLabelsToPrint的參數,我也不確定這個參數是否與cartonIdList參數相同?

如果您未在請求中提供PackageLabelsToPrint查詢參數,則以下是響應:

{'errors': [{'code': 'InvalidInput',
   'message': "1 validation error detected: Value null at 'cartonIdList' failed to satisfy constraint: Member must not be null",
   'details': ''}]}

我已經花了一些時間在這上面,它變得有點煩人。

謝謝!

你需要PackageLabelsToPrint它是你的cartonIdList

我使用了 PostMan ,這是我的回應

我得到了這個 PDF 文件鏈接

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM