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
547 stars 722 forks source link

During ListPlacementOptions it is returning Null - Fulfillment Inbound V2024-03-20 API #655

Closed shantikolli closed 2 months ago

shantikolli commented 2 months ago

During ListPlacementOptions API Call, it is returning Null . Attaching screenshot. Please look into this issue

generateplacement

harguph commented 2 months ago

Hello @shantikolli ,

Per the documentation on ListPlacementOptions : Placement options must first be generated by the corresponding endpoint before becoming available.

Please ensure to invoke generatePlacementOptions before invoking the ListPlacementOptions endpoint.

Please open a developer support case sharing the full request and response if the issue persists.

Regards

zaki-siddiqui commented 2 months ago

When you run "GeneratePlacementOptions" operation it returns "operationId" so first you should run "GetInboundOperationStatus" with returned "operationId(which is returned by GeneratePlacementOptions)" and when it returns "Success" then call your "ListPlacementOptions" API.

shantikolli commented 2 months ago

@zaki-siddiqui

Thank you !! It is no where mentioned in the Amazon documentation to check inbound operation and then make the next call. So after every operation we need to run the GetInboundOperationStatus or only specific to this call.

https://developer-docs.amazon.com/sp-api/docs/fulfillment-inbound-api-v2024-03-20-use-case-guide#step-4-generate-and-view-options-for-destination-fulfillment-centers

shantikolli commented 2 months ago

@harguph

I followed the same earlier. I executed the generatePlacementOptions before invoking the ListPlacementOptions endpoint.

zaki-siddiqui commented 2 months ago

@zaki-siddiqui

Thank you !! It is no where mentioned in the Amazon documentation to check inbound operation and then make the next call. So after every operation we need to run the GetInboundOperationStatus or only specific to this call.

https://developer-docs.amazon.com/sp-api/docs/fulfillment-inbound-api-v2024-03-20-use-case-guide#step-4-generate-and-view-options-for-destination-fulfillment-centers

I am currently in the learning phase, but I ensure to call "GetInboundOperationStatus" before making any subsequent API calls. I proceed to the next relevant API only if the status indicates success.

shantikolli commented 1 month ago

@zaki-siddiqui

thank you!!The operation id results in success status. However, I still have the same issue and the listplacementoptions is returning null.

shantikolli commented 1 month ago

any help would be appreciated..