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

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

Install app

POST/admin/v1/stores/{store_id}/apps/installations
  • apps:manage
  • يدعم Idempotency-Key

Install an app after reviewing its permissions. Its webhooks are created in the background. , a staff session, and every permission the app asks for.

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

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

الجسم

  • handlestringمطلوب
  • accepted_scopesarray of stringsمطلوب

    Exactly the scopes shown on the listing's version; a mismatch (the app changed in the meantime) is refused with scopes_changed.

  • plan_idstring · أو null

    For a paid app: the plan the merchant chose and approved the price of.

  • sourceenum · أو null

    Where the merchant found the listing, for the developer's funnel.

    • home
    • search
    • category
    • browse
    • link

ما يُرجعه

201 Installed.

الأخطاء

  • 403forbiddenMissing apps:manage, not staff, or a scope you do not hold.
  • 404not_foundNo such app, or not available to this store.
  • 409Already installed, or the app's scopes changed (scopes_changed).