Decline
/ admin/ v1/ stores/ {store_id}/ apps/ authorize/ decline- Idempotency-Key supported
Decline: returns the redirect telling the app error=access_denied.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
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.
Body
client_idstringrequiredredirect_uristringrequiredMust exactly match one of the app's registered redirect URLs.
scopestring · or nullSpace- or comma-separated scopes, within the app's manifest. The grant is always the manifest's scopes; the token response reports them.
statestring · or nullReturned unchanged to the app, to bind the response to its request.
code_challengestring · or nullPKCE (RFC 7636):
BASE64URL(SHA256(code_verifier)).code_challenge_methodstring · or nullS256when a challenge is sent.accepted_scopesarray of stringsApproving only: exactly the previewed
scopes.plan_idstring · or nullApproving a first install of a paid app: the chosen plan.
Returns
200 Send the browser to redirect_to.
Errors
- 404
not_foundUnknown client. - 422
validation_failedInvalid request.