Replies: 1 comment 1 reply
-
even though restrictedResources parameter is documented as an Array, it seems to be a single object. res = Tokens(credentials=credentials).create_restricted_data_token(restrictedResources= |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to use the following block of code to get my restricted data token:
res = Tokens(credentials=credentials).create_restricted_data_token(restrictedResources=[
{
"method": "GET",
"path": "/orders/v0/orders",
"dataElements": ["buyerInfo", "shippingAddress"]
}
])
But it comes up with the following errors:
SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': 'Application does not have access to one or more requested data elements: [buyerInfo, shippingAddress]', 'details': ''}]
I just the copy and paste the code from https://sp-api-docs.saleweaver.com/endpoints/tokens/ but I don't know why I got this errors. Could you please help me solve this? Thanks so much.
Beta Was this translation helpful? Give feedback.
All reactions