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

Fulfillment Inbound API v2024-03-20 generatePlacementOptions (CustomPlacement details is only supported for inbound plans with destinations in IN), What's the problem? #656

Closed cwoinc closed 1 month ago

cwoinc commented 2 months ago

Parameters when requesting generatePlacementOptions:

{
  "customPlacement": [
    {
      "warehouseId": "ONT8",
      "items": [
        {
          "msku": "SKU1",
          "quantity": 50,
          "labelOwner": "SELLER",
          "prepOwner": "SELLER"
        }
      ]
    }
  ]
}

Error message returned when requesting generatePlacementOptions:

{
  "errors": [
    {
      "code": "BadRequest",
      "message": "ERROR: CustomPlacement details is only supported for inbound plans with destinations in IN.",
      "details": ""
    }
  ]
}
  1. createInboundPlan
  2. generatePackingOptions
  3. listPackingOptions
  4. listPackingGroupItems
  5. confirmPackingOption
  6. setPackingInformation
  7. generatePlacementOptions

I used the US site to create a shipment plan and followed the above sequence step by step. When I reached generatePlacementOptions, the above error message appeared. If I give up on generatePlacementOptions and continue executing listPlacementOptions the result is empty (as shown in the JSON below). Why does this problem occur?

{"pagination":{},"placementOptions":[]}
jackmin-sw commented 2 months ago

@cwoinc hi, I am in the same flow, now I'm trying to call the generatePlacementOptions, {{baseUrl}}/inbound/fba/2024-03-20/inboundPlans/:inboundPlanId/placementOptions but the body customPlacement need a warehouseId, how can we get the warehouseId? when we create the inbound plan, we only know the marketplace id, could you help give some advice for this? I saw you put the warehouse id in your request

cwoinc commented 2 months ago

@cwoinc hi, I am in the same flow, now I'm trying to call the generatePlacementOptions, {{baseUrl}}/inbound/fba/2024-03-20/inboundPlans/:inboundPlanId/placementOptions but the body customPlacement need a warehouseId, how can we get the warehouseId? when we create the inbound plan, we only know the marketplace id, could you help give some advice for this? I saw you put the warehouse id in your request

I'm very sorry, I don't know what the correct warehouse ID should be. This is an attempt to set a value. The target warehouse code of the Amazon shipment I set

jackmin-sw commented 2 months ago

@cwoinc hi, I am in the same flow, now I'm trying to call the generatePlacementOptions, {{baseUrl}}/inbound/fba/2024-03-20/inboundPlans/:inboundPlanId/placementOptions but the body customPlacement need a warehouseId, how can we get the warehouseId? when we create the inbound plan, we only know the marketplace id, could you help give some advice for this? I saw you put the warehouse id in your request

I'm very sorry, I don't know what the correct warehouse ID should be. This is an attempt to set a value. The target warehouse code of the Amazon shipment I set

thanks!

cwoinc commented 1 month ago

@shreeharsh-a What do you mean by closing this issue directly? If you think the way I asked the question is incorrect, you can point it out, but if you close the issue without saying anything, do you think that will solve the problem?

shreeharsh-a commented 1 month ago

Please reach out to developer support so that we can better help you with issues related to SP API.

Note: SP API related issues / troubleshooting support is managed by a different team. We can help if the issue is related to the content published on this repo.

qdev89 commented 1 month ago

@cwoinc got same issue on call generatePlacementOptions with error: { "errors": [ { "code": "BadRequest", "message": "ERROR: CustomPlacement details is only supported for inbound plans with destinations in IN.", "details": "" } ] }

I'm totally stuck and can't process further. Anybody please help. Thanks

cwoinc commented 1 month ago

@qdev89 @jackmin-sw CustomPlacementInput is not required. No error will be reported if it is not filled in.(ps: The documentation for Fulfillment Inbound API v2024-03-20 has been updated)