Skip to content

SellingApiForbiddenException -  #475

Description

@Prasand14

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 StatementSellingApiForbiddenException: [{'message': 'Access to requested resource is denied.', 'code': 'Unauthorized', 'details': ''}]`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions