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
610 stars 732 forks source link

ListShipmentBoxesResponse: has no destinationRegion in the Box #4159

Closed hamduc7 closed 2 months ago

hamduc7 commented 2 months ago

Hi all, The below function returns a list of boxes in a shipment:

GET /inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/boxes

But the box.destinationRegion is not returned.

mafge commented 2 months ago

Hi @hamduc7, thanks for reaching out! Please note that destinationRegion is an optional field according to the documentation. Can you tell me which information you exactly need from the region (countryCode, state, warehouseId)? Then I can check if there is another way to get that data for your shipment boxes. Best, Marc Selling Partner Developer Services

hamduc7 commented 2 months ago

Hi @mafge

Thank you for your response. I am looking for the API that I can filter/select the "Inbound Region" as I see in Amazon Cenrral image

Is there an API to allow this?

mafge commented 2 months ago

@hamduc7 You get the available shipment splits by calling generatePlacementOptions followed by listPlacementOptions. Unfortunately there is no possibility to filter specific regions, you will always get all available options in the response.

hamduc7 commented 2 months ago

@mafge Yes, I knew how to get the replacement options but I am looking for a way to filter the Inbound region.

"Inbound Region" in this screen filters the carriers that ship to that region?. Am i right?

mafge commented 2 months ago

@hamduc7 There is no way to filter the inbound region via the API.

"Inbound Region" in this screen filters the carriers that ship to that region?. Am i right?

This is not correct. By Inbound Region you choose the location/region of the fulfillment centers you send your inventory. The carrier selection happens later when you generate and list transportation options based on the selected inbound region.

hamduc7 commented 2 months ago

@mafge Thank you. Does Amazon have a plan to add this API in recent months?

mafge commented 2 months ago

@hamduc7 As far as I know there is no plan to support this feature. The API tries to stick to the flow from Seller Central UI as close as possible. But I'll let the backend team know of your feature request!

hamduc7 commented 2 months ago

@mafge Thank you very much for your quick response.