Hi, I have been trying out the App Events API, and I am confused with the following behavior.
The App Events API reference ( App Events API reference ) says the access token response contains access_token, scope and expires_in, with this example:
{
"access_token": "f8563253df0bf277ec9ac6f649fc3f17",
"scope": "write_global_api_app_events",
"expires_in": 3599
}
The actual response only contains access_token and token_type:
{
"access_token": "<JWT>",
"token_type": "Bearer"
}
How to reproduce
curl -s -X POST https://api.shopify.com/auth/access_token \
-H 'User-Agent: example' \
-H 'Content-Type: application/json' \
-d '{"client_id":"<client_id>","client_secret":"
<client_secret>","grant_type":"client_credentials"}'
I have x-request-id logged, so please let me know if you need it.
By the way, it seems that you need to set User-Agent header for the endpoint to work, otherwise it returns 403. It might be good to add this to the documentation.