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 739 forks source link

GET /fba/inventory/v1/summaries -- Query parameter [startDateTime] value is not a valid ISO date-time object #768

Closed moltar closed 3 years ago

moltar commented 4 years ago

Seems like startDateTime is mandatory, yet it is documented otherwise?


Docs: https://github.com/amzn/selling-partner-api-docs/blob/main/references/fba-inventory-api/fbaInventory.md#parameters

All inventory summaries with available details are returned when the startDateTime and sellerSkus parameters are omitted.

Request

GET /fba/inventory/v1/summaries?granularityType=Marketplace&granularityId=A2EUQ1WTGCTBG2&marketplaceIds=A2EUQ1WTGCTBG2 HTTP/1.1
host: sellingpartnerapi-na.amazon.com

Response

HTTP/1.1 400 Bad Request
Date: Thu, 12 Nov 2020 14:06:37 GMT
Content-Type: application/json
Content-Length: 202
x-amzn-RequestId: 2f4832d2-bc25-47b5-8561-d0015ac9a67b
x-amzn-RateLimit-Limit: 1.0
x-amz-apigw-id: V5cpCHTBoAMFfNg=
X-Amzn-Trace-Id: Root=1-5fad416c-2351eeca6c5e6ca329764d3f
Expires: 0
Cache-Control: no-cache
Connection: close

{
  "errors": [
    {
      "code": "InvalidInput",
      "message": "This is an invalid input",
      "details": "Query parameter [startDateTime] value is not a valid ISO date-time object."
    }
  ]
}
moltar commented 4 years ago

Also see amzn/selling-partner-api-models#767, where a startDateTime value is provided, but an error (with 200 status) is thrown anyways.

ShivikaK commented 3 years ago

Hello @moltar

We will need to work with you via a support case to resolve this issue. Please open a support case so we can pursue the investigation.

Thanks, Shivika Khare Selling Partner API Developer Support