Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple destinations for shipments #4613

Open
szvone opened this issue Feb 14, 2025 · 1 comment
Open

Multiple destinations for shipments #4613

szvone opened this issue Feb 14, 2025 · 1 comment

Comments

@szvone
Copy link

szvone commented Feb 14, 2025

I have a shipment that contains two boxes. When I use the API to create a shipment, I use listPlacementOptions and the result is:

{ "pagination": [], "placementOptions": [ { "fees": [ { "description": "Placement service fee represents service to inbound with minimal shipment splits and destinations of skus", "type": "FEE", "value": { "amount": 0, "code": "EUR" }, "target": "Placement Services" } ], "shipmentIds": [ "shxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx1" ], "discounts": [], "expiration": "2025-02-17T03:39:17.463Z", "placementOptionId": "plxxxxxxx-2dad-41e1-xxxx-c93a8665e670", "status": "OFFERED" }, { "fees": [ { "description": "Placement service fee represents service to inbound with minimal shipment splits and destinations of skus", "type": "FEE", "value": { "amount": 0, "code": "EUR" }, "target": "Placement Services" } ], "shipmentIds": [ "shxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx2" ], "discounts": [], "expiration": "2025-02-17T03:39:17.463Z", "placementOptionId": "plxxxxxxx-3c95-xxxx-9437-29b96f67cc03", "status": "OFFERED" } ] }

There are two data here, both with 0 fees. How should I check whether the placementOption is divided into multiple warehouses?

The current problem is that when creating shipments multiple times, using the first placementOption, sometimes box 1 is sent to warehouse A and box 2 is sent to warehouse B. The shipment is split into multiple destinations, and sometimes it is the same destination warehouse. I want box 1 and box 2 to be sent to the same warehouse. How should I do it?

SPD method used.
Non-Amazon carrier.

I have seen other developers who can judge by checking the number of arrays of shipmentIds, but my return number is always one, but there is a situation of divided warehouses.

@MetaMan2023
Copy link

It's hard to read the data you put because it's on a single long line (so hard to visually parse) but I believe you are asking how you know if these two placement options are to a single center or multiple centers.

I believe the answer is that these are going to a single center because of this line:

"shipmentIds": [ "shxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx1" ],

There is only one shipmentId so that means only being sent to one center -- if it said (for example):

"shipmentIds": [ "shxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx1", "shxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx2" ],

It would mean it was being split into two centers... if there were more shipment IDs in the array, it would be split into more centers, etc.

In the US, we would definitely have a fee if there were < 5 boxes... we are required to have 5 identical boxes and have to send to 5 centers to get $0 fee. But it looks like you are in Europe and I'm guessing the rules are different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants