-
Hi, I tried to connect to vendor central following the steps for private seller applications https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md I created an IAM user with inline policy I got a policy SellingPartnerAPI arn:aws:iam::0000000:policy/SellingPartnerAPI A role arn:aws:iam::0000000:role/rolex relates the policy SellingPartnerAPI to the IAM user. Then the aws_secret_key and aws_access_key are generated from the IAM user. lwa_app_id and lwa_client_secret are from the developer central in vendor central. refresh_token is from the authorize button in vendor central. With those credentials and the following code
I got stuck on this for a while. Any idea what has gone wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Case solved. vendor central got VendorOrders.
|
Beta Was this translation helpful? Give feedback.
Case solved.
vendor central got VendorOrders.
res = VendorOrders(credentials=credentials).get_purchase_orders(CreatedAfter=(datetime.utcnow() - timedelta(days=7)).isoformat())