lineofflight / peddler

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

Missing required parameter SellerId when calling list_order_items #149

Closed blackwatertepes closed 4 years ago

blackwatertepes commented 4 years ago
irb(main):086:0> client = Mws::Api.client(marketplace: 'ATVPDKIKX0DER', merchant_id: account.platform_id, auth_token: account.token)
=> #<MWS::Orders::Client:0x00007f8138445de8 @marketplace=#<Peddler::Marketplace:0x00007f813148a2d8 @id="ATVPDKIKX0DER", @country_code="US", @host="mws.amazonservices.com">, @merchant_id=nil, @auth_token="amzn.mws.4eb93d18-xxxx-xxxx-xxxx-xxxxxxxxxxxx", @aws_access_key_id="AKIAAAAAAAAAAAAA", @aws_secret_access_key="PTTz************************************">
irb(main):087:0> items = client.list_order_items('113-4825709-8649849')
Traceback (most recent call last):
        1: from (irb):87
Peddler::Errors::InvalidParameterValue (Missing required parameter SellerId.)

The client method calls...

      MWS.orders(
        marketplace: marketplace,
        merchant_id: @mechant_id,
        auth_token: auth_token,
        aws_access_key_id: @@aws_access_key,
        aws_secret_access_key: @@aws_secret
      )

Any thoughts as to why this isn't working?