لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Decline
/ admin/ v1/ stores/ {store_id}/ apps/ authorize/ decline- يدعم Idempotency-Key
Decline: returns the redirect telling the app error=access_denied.
معاملات المسار
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.
الأخطاء
- 404
not_foundUnknown client. - 422
validation_failedInvalid request.