[英]Amazon Seller Central - SP-API - GET Labels for shipment
I have no previous experience with Amazon MWS so maybe I'm not understanding the whole process flow.我以前没有使用亚马逊 MWS 的经验,所以我可能不了解整个流程。 Now I'm trying to get labels for shipments I manually created over the Seller Central UI.
现在,我正在尝试获取我通过卖家中心 UI 手动创建的货件的标签。 Shipments I created are successfully fetched (Operation: getShipments) and now I have issue when getting the labels.
我创建的货件已成功提取(操作:getShipments),现在我在获取标签时遇到问题。
Here is my error response from API:这是来自 API 的错误响应:
{'errors': [{'code': 'InvalidInput',
'message': 'Provided SellerCartonIds are not valid: [[FBAxxxxxxxxxU000001]] for Shipment: [FBAxxxxxxxxx]',
'details': ''}]}
If I print labels from UI FBAxxxxxxxxxU000001
label is printed in pdf - also found out about naming here .如果我从 UI
FBAxxxxxxxxxU000001
打印标签 label 打印在 pdf 中 - 也可以在此处找到有关命名的信息。
In general, I don't know where to find parameter of package labels PackageLabelsToPrint
from GetLabelsDocs , also I'm not sure if this parameter is same as cartonIdList
parameter?一般来说,我不知道在哪里可以找到来自GetLabelsDocs的 package 标签
PackageLabelsToPrint
的参数,我也不确定这个参数是否与cartonIdList
参数相同?
Here is response if you don't provide PackageLabelsToPrint
query param in request:如果您未在请求中提供
PackageLabelsToPrint
查询参数,则以下是响应:
{'errors': [{'code': 'InvalidInput',
'message': "1 validation error detected: Value null at 'cartonIdList' failed to satisfy constraint: Member must not be null",
'details': ''}]}
I spent a bit of time on this already and it gets a bit annoying.我已经花了一些时间在这上面,它变得有点烦人。
Thanks!谢谢!
You need PackageLabelsToPrint it is your cartonIdList你需要PackageLabelsToPrint它是你的cartonIdList
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.