Replies: 3 comments
-
I think you are having same problem:
Please read this: |
Beta Was this translation helpful? Give feedback.
-
Hi Denis, |
Beta Was this translation helpful? Give feedback.
-
I am sorry as I just tested the code in my side and is working fine. |
Beta Was this translation helpful? Give feedback.
-
I could retrieve the same data from Postman without any access issue. Can someone help me where i'm going wrong.
Thanks in Advance
Code Used
`
from sp_api.api import Sales
from sp_api.base import Granularity
from sp_api.api import Orders
credentials=dict(
refresh_token = SP_REFRESH_TOKEN,
lwa_app_id = SP_CLIENT_ID,
lwa_client_secret = SP_CLIENT_SECRET,
aws_secret_key = SP_SECRET_KEY,
aws_access_key = SP_ACCESS_KEY,
role_arn = role_arn
)
interval = ('2022-03-22T00:00:00-07:00--2022-03-23T00:00:00-07:00')
response = Sales(credentials=credentials,marketplace=Marketplaces.US).get_order_metrics(interval, Granularity.TOTAL, granularityTimeZone='US/Central')
Error Statement
SellingApiForbiddenException: [{'message': 'Access to requested resource is denied.', 'code': 'Unauthorized', 'details': ''}]`Beta Was this translation helpful? Give feedback.
All reactions