Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FulfillmentInventory to different marketplace #75

Closed
philsmy opened this issue Sep 24, 2016 · 2 comments
Closed

FulfillmentInventory to different marketplace #75

philsmy opened this issue Sep 24, 2016 · 2 comments

Comments

@philsmy
Copy link

philsmy commented Sep 24, 2016

I create my fullment inventory client with the Canadian marketplace (A2EUQ1WTGCTBG2)

      client = MWS.fulfillment_inventory(
        primary_marketplace_id: "A2EUQ1WTGCTBG2",
        merchant_id: merchant_num,
        aws_access_key_id: aws_access_key,
        aws_secret_access_key: aws_secret_access_key
      )

But the request seems to go to the US one.

2.1.5 :153 > fulinv
 => #<MWS::FulfillmentInventory::Client:0x007f91f4cbe8e0 @primary_marketplace_id="A2EUQ1WTGCTBG2", @merchant_id="xxxx", @auth_token="xxxx", @aws_access_key_id="xxxx", @aws_secret_access_key="xxx"> 
2.1.5 :154 > raw = fulinv.list_inventory_supply(query_start_date_time: from_date).xml
 => {"ListInventorySupplyResponse"=>{"ListInventorySupplyResult"=>{"MarketplaceId"=>"ATVPDKIKX0DER", "InventorySupplyList"=>{"member"=>[{"Condition"=>"NewItem", "Suppl

Any ideas?

@hakanensari
Copy link
Owner

@philsmy, you need to provide the marketplace id when calling the operation. I just added a note on the option to the docs.

@philsmy
Copy link
Author

philsmy commented Sep 25, 2016

Interesting! For products it does NOT seem to be that way, as for months I've been doing it the same. But thank you. I'm going to give it a try now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants