لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Install app
/ 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 · أو nullFor a paid app: the plan the merchant chose and approved the price of.
sourceenum · أو nullWhere the merchant found the listing, for the developer's funnel.
- home
- search
- category
- browse
- link
ما يُرجعه
201 Installed.
الأخطاء
- 403
forbiddenMissingapps:manage, not staff, or a scope you do not hold. - 404
not_foundNo such app, or not available to this store. - 409Already installed, or the app's scopes changed (
scopes_changed).