Skip to content

Install app

POST/admin/v1/stores/{store_id}/apps/installations
  • apps:manage
  • Idempotency-Key supported

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

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • handlestringrequired
  • accepted_scopesarray of stringsrequired

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

  • plan_idstring · or null

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

  • sourceenum · or null

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

    • home
    • search
    • category
    • browse
    • link

Returns

201 Installed.

Errors

  • 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).