亚马逊卖家中心 - SP-API - 获取货件标签

时间:2021-01-21 09:42:17

标签: python amazon-mws amazonsellercentral

我之前没有使用亚马逊 MWS 的经验,所以我可能不了解整个流程。现在我正在尝试获取我通过卖家中心 UI 手动创建的货件标签。 我创建的货件已成功获取(操作:getShipments),现在我在获取标签时遇到问题。

这是我的 API 错误响应:

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

如果我从 UI 打印标签 FBAxxxxxxxxxU000001 标签以 pdf 格式打印 - 还发现了命名 here

一般来说,我不知道在哪里可以找到 GetLabelsDocs 中包标签 PackageLabelsToPrint 的参数,我也不确定这个参数是否与 cartonIdList 参数相同?< /p>

如果您没有在请求中提供 PackageLabelsToPrint 查询参数,这里是响应:

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

我已经花了一些时间在这上面,这有点烦人。

谢谢!

1 个答案:

答案 0 :(得分:0)

您需要 PackageLabelsToPrint 它是您的 cartonIdList

I used PostMan and here is my response

And I got this PDF file link

相关问题