amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
601 stars 730 forks source link

How to got "SellerCartonIds" #4057

Closed sheep110 closed 1 month ago

sheep110 commented 3 months ago

I use the Fulfillment Inbound API v2024-03-20 to create shipment.

When I call the getLabels interface, an error message appears:
Provided SellerCartonIds are not valid: [[FBA*WXU000001]] for Shipment: [FBA**WX] The parameter format is as follows:

image

so, where can I get the SellerCartonIds or PackageLabelsToPrint ? @

puppsupr commented 3 months ago

Hi @sheep110, For getLabels, you need to provide

{{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}

Here shipmentId must be the shipmentConfirmationId that you can fetch from v2024 getShipment operation.

sheep110 commented 3 months ago

Hi @puppsupr Yeah, I did it this way, using v2024-03-20 to create shipment. But when I assigned boxId to PackageLabelsToPrint, it said SellerCartonIds was wrong, so I would like to know what value should be filled in PackageLabelsToPrint, Thanks

rustyfausak commented 2 months ago

Also having this problem. We have resorted to grabbing the labels via the Seller Central UI.

puppsupr commented 2 months ago

Hi @sheep110 , Can you please provide complete request and response ?

sheep110 commented 2 months ago

Hi @sheep110 , Can you please provide complete request and response ? FBA18853VMSK , FBA18853VMSKU000001 image image

Christin519 commented 2 months ago

哥们解决了吗

Christin519 commented 2 months ago

@puppsupr Also having this problem.

sheep110 commented 2 months ago

哥们解决了吗

No

puppsupr commented 2 months ago

Hi, For getLabels you need to provide, {{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}, where shipmentId is shipmentConfirmationId.

We have identified the issue for Unique labelType. We recommend to use DEFAULT type as it fetches the same labels just not by ID, but all at once (paginated).

sheep110 commented 2 months ago

Hi, For getLabels you need to provide, {{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}, where shipmentId is shipmentConfirmationId.

We have identified the issue for Unique labelType. We recommend to use DEFAULT type as it fetches the same labels just not by ID, but all at once (paginated).

We just tried DEFAULT type, we got 1000 lables from this API. Which is way more than what we expected like UNIQUE type.

Christin519 commented 2 months ago

Hi, For getLabels you need to provide, {{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}, where shipmentId is shipmentConfirmationId. We have identified the issue for Unique labelType. We recommend to use DEFAULT type as it fetches the same labels just not by ID, but all at once (paginated).

We just tried DEFAULT type, we got 1000 lables from this API. Which is way more than what we expected like UNIQUE type.

PageSize传多少就会生成多少标签,虽然你的shipment可能没那么多,不知道amazon怎么设计的。目前的方法是,有多少箱,PageSize就传多少,这样勉强能用

sheep110 commented 2 months ago

Hi, For getLabels you need to provide, {{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}, where shipmentId is shipmentConfirmationId. We have identified the issue for Unique labelType. We recommend to use DEFAULT type as it fetches the same labels just not by ID, but all at once (paginated).

We just tried DEFAULT type, we got 1000 lables from this API. Which is way more than what we expected like UNIQUE type.

PageSize传多少就会生成多少标签,虽然你的shipment可能没那么多,不知道amazon怎么设计的。目前的方法是,有多少箱,PageSize就传多少,这样勉强能用

谢谢, 你对FBM Orders 的发站内信 有了解吗

Christin519 commented 2 months ago

Hi, For getLabels you need to provide, {{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}, where shipmentId is shipmentConfirmationId. We have identified the issue for Unique labelType. We recommend to use DEFAULT type as it fetches the same labels just not by ID, but all at once (paginated).

We just tried DEFAULT type, we got 1000 lables from this API. Which is way more than what we expected like UNIQUE type.

PageSize传多少就会生成多少标签,虽然你的shipment可能没那么多,不知道amazon怎么设计的。目前的方法是,有多少箱,PageSize就传多少,这样勉强能用

谢谢, 你对FBM Orders 的发站内信 有了解吗

完全不了解

sheep110 commented 2 months ago

Hi, For getLabels you need to provide, {{baseUrl}}/fba/inbound/v0/shipments/:shipmentId/labels?PageType={{PageType}}&PageSize={{PageSize}}, where shipmentId is shipmentConfirmationId. We have identified the issue for Unique labelType. We recommend to use DEFAULT type as it fetches the same labels just not by ID, but all at once (paginated).

We just tried DEFAULT type, we got 1000 lables from this API. Which is way more than what we expected like UNIQUE type.

PageSize传多少就会生成多少标签,虽然你的shipment可能没那么多,不知道amazon怎么设计的。目前的方法是,有多少箱,PageSize就传多少,这样勉强能用

谢谢, 你对FBM Orders 的发站内信 有了解吗

完全不了解

好的

github-actions[bot] commented 1 month ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

github-actions[bot] commented 1 month ago

closed for inactivity