Skip to content

Amazon API expects comma-separated values for MarketplaceIds and OrderStatuses in Orders #1902

@JasurbekNURBOYEV

Description

@JasurbekNURBOYEV

Describe the bug
Amazon expects the multiple values for MarketplaceIds and OrderStatuses to be a single comma-separated string, but the library uses standard way of adding multiple params to URL, for each value separately.
In URL:

  • Amazon expects: MarketplaceIds=ID1,ID2
  • Library uses:MarketplaceIds=ID1&MarketplaceIds=ID2

Manually tryign to pass all values as one comma-separated value doesn't work, because the library encodes commas and turn them into URL-encoded format (%2C), which Amazon probably doesn't expect.

To Reproduce

Try to get orders with multiple MarketplaceIds and OrderStatuses.

Expected behavior

All orders matching those multiple markets and statuses should be returned.

Actual result
No orders returned (probably because only the first value is used and no orders for that value).

Desktop (please complete the following information):

  • OS: Mac

Additional context

We are using this library to fetch orders with multiple markets and multiple statuses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions