Skip to content

Test notification channel

POST/admin/v1/stores/{store_id}/notifications/channels/{channel}/test
  • notifications:manage
  • Idempotency-Key supported

Send a test message through the store's account: a short text by SMS, or an approved template without variables by WhatsApp (Meta's hello_world unless you name one). Follow it in the delivery log.

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

  • 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

  • tostringrequired

    A mobile number in any usual form.

  • templatestring · or null

    WhatsApp: an approved template without variables (default hello_world).

  • languagestring · or null

    WhatsApp: that template's language (default en_US).

Returns

202 Queued.

Errors

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo account on this channel.
  • 409The account is turned off or incomplete.
  • 422validation_failedInvalid phone number.