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
610 stars 732 forks source link

[BUG] 400 Bad Request when using NextToken on GetOrders #1411

Closed BasilAlhakami-SonaEnterprises closed 3 years ago

BasilAlhakami-SonaEnterprises commented 3 years ago

I receive a 400 Bad Request response, when calling the /orders/v0/orders endpoint. when I have the NextToken in the request I submitted a case# 8390283141

this thread: https://github.com/amzn/selling-partner-api-models/issues/384

is discussing the same issue but with https://github.com/amzn/selling-partner-api-models/issues/384

the bug was resolved by @parvathm for the financialEventGroups API

I wonder if the same fix should apply to Orders

Thanks

ShivikaK commented 3 years ago

Hello @BasilAlhakami-SonaEnterprises

Thank you for raising this issue and providing the case ID.

The case is being reviewed by the Support team and additional details will be provided via the case.

Please continue monitoring the case for further updates.

Thanks, Shivika Khare Selling Partner API Developer Support

RamprasadAkella commented 3 years ago

@ShivikaK Can you please let us know what's the latest update on this ? We are also seeing the same issue on our side.

BasilAlhakami-SonaEnterprises commented 3 years ago

@RamprasadAkella the problem was that the token has '/' in the string so including it in the url breaks it. you need to url encode the token and that worked for me

fernadodemitropulos commented 2 years ago

the problem still exists, this thread should not be closed

flagile commented 2 years ago

this problem for order api is still existing, could you pls have to fix? thank you very much @ShivikaK [ShivikaK(https://github.com/ShivikaK)

matijaskorup1991 commented 10 months ago

sp-api the problem is still here, why is this closed?

kensplanet commented 9 months ago

Problem exists

ImportFence commented 1 month ago

sp-api the problem is still here, why is this closed?

Did you try to only use the nextToken parameter and keep the other three parameters be unchecked while you are trying to fetch 2+ pages data?