Approve
/ admin/ v1/ stores/ {store_id}/ apps/ authorize- apps:manage
- Idempotency-Key supported
Approve: installs (or updates) the app and returns the redirect carrying a one-minute, single-use code. , a staff session and every scope granted.
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
- 403
forbiddenMissingapps:manage, not staff, or a scope you do not hold. - 404
not_foundUnknown client, or the app is not available to this store. - 409The app's scopes changed since the preview.
- 422
validation_failedInvalid request.