انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Preview authorization

GET/admin/v1/stores/{store_id}/apps/authorize

    Check an OAuth authorization request and get what the consent screen shows. The admin's /oauth/authorize page calls this with the parameters the app sent.

    معاملات المسار

    • store_idstringمطلوب

      معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

    معاملات الاستعلام

    • client_idstringمطلوب
    • redirect_uristringمطلوب

      Must exactly match one of the app's registered redirect URLs.

    • scopestring

      Space- or comma-separated scopes, within the app's manifest. The grant is always the manifest's scopes; the token response reports them.

    • statestring

      Returned unchanged to the app, to bind the response to its request.

    • code_challengestring

      PKCE (RFC 7636): BASE64URL(SHA256(code_verifier)).

    • code_challenge_methodstring

      S256 when a challenge is sent.

    الترويسات

    • shop-api-versionYYYY-MM

      الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

    ما يُرجعه

    200 The consent screen's content.

    الأخطاء

    • 404not_foundUnknown client, or the app is not available to this store.
    • 422validation_failedUnregistered redirect URL, bad PKCE or undeclared scope.