You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's somewhat counterintuitive, but this operation does not default to your primary marketplace (because the Amazon API doesn't), so you need to specify which marketplace you're querying. See this example.
hakanensari
added a commit
to hakanensari/mws-orders
that referenced
this issue
Jun 4, 2020
It's somewhat counterintuitive, but this operation does not default to your primary marketplace (because the Amazon API doesn't), so you need to specify which marketplace you're querying. See this example.
Hello,
peddler 2.4.1
Rails: 6.0.3.1
Ruby: 2.7.1
I'm just trying to replicate in irb a test that is working in Amazon Scratchpad:
I define my client (the error remains the same either using the marketplace shortcut or not)
client = MWS.orders(marketplace: "ES", merchant_id: ENV["MERCHANT_ID"])
Inspecting the client object, everything looks as expected:
#<MWS::Orders::Client:0x00007f061c893e78 @marketplace=#<Peddler::Marketplace:0x000055eae794ec60 @id="A1RKKUPIHCS9HS", @country_code="ES", @host="mws-eu.amazonservices.com">, @merchant_id="...">
Then if I try to retrieve the orders:
client.list_orders(created_after: 1.month.ago)
I got this error:
I'm sorry if I missing something obvious, thanks in advance.
The text was updated successfully, but these errors were encountered: