Skip to content

Update notification settings

PATCH/admin/v1/stores/{store_id}/notifications/settings
  • notifications:manage

Change who receives the store's staff messages. Send If-Match: "v{version}" to avoid overwriting someone else's changes.

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

  • If-Matchstring · or null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

Body

  • staff_emailsarray of strings · or null

    Up to 10 addresses.

  • staff_phonesarray of strings · or null

    Up to 5 mobile numbers, in any usual form.

Returns

200 The settings.

Errors

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such store.
  • 412precondition_failedThe settings changed since they were read.
  • 422validation_failedInvalid addresses or numbers.