لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Approve
/ admin/ v1/ stores/ {store_id}/ apps/ authorize- apps:manage
- يدعم Idempotency-Key
Approve: installs (or updates) the app and returns the redirect carrying a one-minute, single-use code. , a staff session and every scope granted.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
client_idstringمطلوبredirect_uristringمطلوبMust exactly match one of the app's registered redirect URLs.
scopestring · أو nullSpace- or comma-separated scopes, within the app's manifest. The grant is always the manifest's scopes; the token response reports them.
statestring · أو nullReturned unchanged to the app, to bind the response to its request.
code_challengestring · أو nullPKCE (RFC 7636):
BASE64URL(SHA256(code_verifier)).code_challenge_methodstring · أو nullS256when a challenge is sent.accepted_scopesarray of stringsApproving only: exactly the previewed
scopes.plan_idstring · أو nullApproving a first install of a paid app: the chosen plan.
ما يُرجعه
200 Send the browser to redirect_to.
الأخطاء
- 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.