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
612 stars 736 forks source link

Fulfillment Inbound v2024-03-20 GenerateTransportationOptions not working on sandbox #4306

Open manish-in-java opened 6 days ago

manish-in-java commented 6 days ago

According to the API model available from Github at github.com/amzn/selling-partner-api-models/blob/main/models/fulfillment-inbound-api-model/fulfillmentInbound_2024-03-20.json, we are supposed to send the following GenerateTransportationOptions request to the sandbox:

{
    "placementOptionId": "pl1234abcd-1234-abcd-5678-1234abcd5678",
    "shipmentTransportationConfigurations": [
        {
            "shipmentId": "sh1234abcd-1234-abcd-5678-1234abcd5678",
            "readyToShipWindow": {
                "start": "2024-01-01T00:00Z"
            },
            "contactInformation": {
                "name": "name",
                "phoneNumber": "1234567890",
                "email": "email@email.com"
            },
            "freightInformation": {
                "freightClass": "FC_50",
                "declaredValue": {
                    "code": "USD",
                    "amount": 500
                }
            },
            "pallets": [
                {
                    "stackability": "STACKABLE",
                    "weight": {
                        "unit": "KG",
                        "value": 5.5
                    },
                    "dimensions": {
                        "unitOfMeasurement": "CM",
                        "length": 3,
                        "width": 4,
                        "height": 5
                    },
                    "quantity": 2
                }
            ]
        }
    ]
}

However, this request always results in the following response from the sandbox:

{
    "errors": [
        {
            "code": "InvalidInput",
            "message": "Could not match input arguments",
            "details": ""
        }
    ]
}

How do we test this API?

puppsupr commented 4 days ago

Hello manish-in-java, In order to correctly resolve this issue, Please open a support case following the guidance here so we can pursue the investigation as additional details are required from your end.

Thanks, Selling Partner API Developer Services

manish-in-java commented 2 days ago

@puppsupr, can you clarify what additional information is required from me? I have provided all the information in the issue here. To reiterate:

  1. I am trying to integrate the latest Inbound API.
  2. I am finding that some APIs work on sandbox - Generate Packing Options, List Packing Options, List Packing Group Items, Generate Placement Options, List Placement Options, and so on, using the sample requests provided in the model schema.
  3. Generate Transportation Options API is not working with the sample request provided for the sandbox. That request is copied in the issue description at the top.

To summarize, some requests are working on the sandbox with the samples provided in the documentation - some are not - Generate Transportation Options being one.

For what it is worth, also see https://github.com/amzn/selling-partner-api-models/issues/4248, which is the same issue for a different API and that one has been accepted. On that issue, @mafge tried the documented steps and confirmed that indeed the sandbox returns an unexpected error with the documented request.

What is different about this issue that requires me to open it elsewhere?