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

Please tell me how to query the marketplace_ids array. #3970

Closed sugaular closed 3 weeks ago

sugaular commented 3 weeks ago

Please tell me how to query the marketplace_ids array.

Here's what I've tried: (in POSTMAN)

1 https://sellingpartnerapi-fe.amazon.com/catalog/2022-04-01/items/B0B3GCDXDD?marketplace_ids[]=A1VC38T7YXB528

response    

HTTP Status 400 – Bad Request

   
   

Type Exception Report

   

Message Invalid character found in the request target         [/catalog/2022-04-01/items/B0B3GCDXDD?marketplace_ids[]=A1VC38T7YXB528 ]. The valid characters         are defined in RFC 7230 and RFC 3986

2 https://sellingpartnerapi-fe.amazon.com/catalog/2022-04-01/items/B0B3GCDXDD?marketplace_ids=A1VC38T7YXB528

response {     "errors": [         {             "code": "InvalidInput",             "message": "Invalid 'marketplaceIds' provided.",             "details": ""         }     ] }

xyloneX commented 3 weeks ago

You are too careless in this question. Please read the document params.

sugaular commented 3 weeks ago

I realized I was stupid. I had been working on the python sample for a while, so I was late in noticing.

marketplaceIds: Correct marketplace_ids: Incorrect

Thanks for pointing that out.

harguph commented 3 weeks ago

Hello @sugaular ,

Great to hear the issue is resolved.

Please feel free to reach-out to developer support for any issues related to SP API.

Note: We can help if the issue is related to the content published on this repo.