hi, when I called this interface, I got an error.
curl --location 'https://api.epicgames.dev/epic/ecom/v4/identities/{{user-id}}/entitlements?sandboxId={{my-sandbox-id}}' \
--header 'Authorization: Bearer {{my-token}}'
response
{
"errorCode": "errors.com.epicgames.ecommerce.integration.client_restricted",
"errorMessage": "You're not allowed to access this resource, please contact the identity support team.",
"messageVars": [],
"numericErrorCode": 46022,
"originatingService": "com.epicgames.ecommerce.integration.public",
"intent": "prod"
}
I created a client with TrustedServer policy. And I get {{my-token}} by this:
curl --location 'https://api.epicgames.dev/epic/oauth/v2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic xxxx' \
--data-urlencode 'grant_type=client_credentials'