Exchange token
POST
/ admin/ v1/ oauth/ token- Idempotency-Key supported
The OAuth token endpoint. Exchanges an authorization code (with PKCE when the authorization request had a challenge) or an App Bridge session token (RFC 8693 token exchange) for an access token of the installation. Authenticate the app with its client credentials, as HTTP Basic or client_id/client_secret fields. Errors follow RFC 6749 §5.2, not problem details.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 An access token.
Errors
- 400
bad_requestInvalid request or grant. - 401
unauthenticatedClient authentication failed.