lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
MIT License
307 stars 130 forks source link

MWS::Reports::Client.request_report doesnt work as according to spec #60

Closed czhu12 closed 8 years ago

czhu12 commented 8 years ago

client.request_report('_GET_FLAT_FILE_OPEN_LISTINGS_DATA_', marketplace_id_list: ['ATVPDKIKX0DER']) throws a Peddler::Marketplace::BadId: missing MarketplaceId

When I set client.primary_marketplace_id = "ATVPDKIKX0DER" and run the command again, it throws a ArgumentError: Missing secret

hakanensari commented 8 years ago

It sounds like you're not instantiating the client with the proper credentials. Check the README on how to do this.

czhu12 commented 8 years ago

I set all the credentials in the environment. The other mws endpoints work it seems, but request_report is failing.

hakanensari commented 8 years ago

I can't reproduct this error.

I have requested above report with no issue using an active seller account.

powellmichael commented 8 years ago

I can't reproduce this error either.

hakanensari commented 8 years ago

:+1: I'll close