Skip to content

Save notification channel

PUT/admin/v1/stores/{store_id}/notifications/channels/{channel}
  • notifications:manage

Connect the store's SMS provider or WhatsApp account, or change it. Credentials are sealed at rest and never returned; send only the ones you change. 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.

  • channelstringrequired

    sms or whatsapp

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

  • providerenumrequired

    A messaging provider a store can connect.

    • unifonic
    • taqnyat
    • msegat
    • meta
  • senderstringrequired
  • credentialsobject

    New credential values by key. Absent or blank keys keep their stored values.

  • activeboolean

Returns

200 The account.

Errors

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such channel.
  • 412precondition_failedThe account changed since it was read.
  • 422validation_failedValidation failed.