Comments (8)
this could be because the seller doesn't have the permissions needed to access List Orders as this function contains PII I believe...
from peddler.
If I’m not mistaken, it’s the country code in the final call. When listing orders, you need to provide the marketplace ID.
from peddler.
I wasn't clear above; you need to use the ID when calling Client#list_orders
.
from peddler.
Thanks for the response! I'm using my own, seller account to automate some order pulling from my store. What do you think, how can I obtain those permissions?
from peddler.
If I’m not mistaken, it’s the country code in the final call. When listing orders, you need to provide the marketplace ID.
Hmm, I tried adding the marketplace id from here but still getting the same "Access denied" error. Code looks like this (i just didnt put in the id's and access key):
require "peddler"
client = MWS.orders(marketplace: "A2EUQ1WTGCTBG2",
merchant_id: "",
aws_access_key_id: "",
aws_secret_access_key: "")
response = client.list_orders('US', created_after: Date.new(2015))
puts response
Can the developer access key be rested somehow from my, seller, side?
from peddler.
I wasn't clear above; you need to use the ID when calling
Client#list_orders
.
Sorry, but this is a bit confusing. These are the ID's im passing:
marketplace_id,
merchant_id,
aws_access_key_id,
aws_secret_access_key.
What other id's I need to pass? ID of marketplace? If it is that id, then this is the code im running:
require "peddler"
client = MWS.orders(marketplace: "A2EUQ1WTGCTBG2",
merchant_id: "",
aws_access_key_id: "",
aws_secret_access_key: "")
response = client.list_orders('A2EUQ1WTGCTBG2', created_after: Date.new(2015)) #same as id as the id of marketplace
puts response
And stll getting the
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/peddler-2.4.1/lib/peddler/client.rb:155:in
handle_http_status_error': Access to Orders.ListOrders is denied (Peddler::Errors::AccessDenied)`
from peddler.
If you are still getting the same error, I'm thinking the issue indeed could have to do with access, as @travisrr was pointing out above. You could write to the MWS team through Seller Central to troubleshoot further?
By the way, not sure if it matters, but A2EUQ1WTGCTBG2 is Canada, not the US.
from peddler.
If you are still getting the same error, I'm thinking the issue indeed could have to do with access, as @travisrr was pointing out above. You could write to the MWS team through Seller Central to troubleshoot further?
By the way, not sure if it matters, but A2EUQ1WTGCTBG2 is Canada, not the US.
You were right, I dont have the required access. In fact, my dev creds have expired after 90 days of inactivity. So my status as developer is 'Disabled" and I have to go through process of re-applying. Bummer, but this issue is resolved.
from peddler.
Related Issues (20)
- Unknown error due to failure in parsing HOT 1
- undefined method `key?' for nil:NilClass HOT 5
- Invoice generation and upload HOT 13
- `get_feed_submission_result` returns nil HOT 3
- Broken See Also docs links HOT 2
- MWS get_report encoding issues not UTF-8 but UTF8 HOT 2
- InvalidMarketplace error from Amazon turns into a parse error HOT 4
- ArgumentError: unknown encoding name - utf8 for chinese header HOT 9
- Error: Value null at 'marketplaceId' failed to satisfy constraint: Member must not be null) HOT 2
- Missing required parameter SellerId when calling list_order_items
- Report 'GET_XML_BROWSE_TREE_DATA' - Parser - XML - Nil HOT 1
- File permissions issue in peddler 2.4.2 HOT 2
- RequestThrottled response is not raising as expected HOT 4
- Release SE marketplace support
- Migration to Selling Partner API? HOT 19
- Did you know the Peddler docs aren't there anymore? HOT 3
- Version 2.4.4 in rubygems does not have Poland Marketplace ID
- Peddler::Errors::AccessDenied Exception: Access to Orders.ListOrders is denied HOT 1
- Encoding of responses is not handled correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peddler.