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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.channelstringrequiredsmsorwhatsapp
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
tostringrequiredA mobile number in any usual form.
templatestring · or nullWhatsApp: an approved template without variables (default
hello_world).languagestring · or nullWhatsApp: that template's language (default
en_US).
Returns
202 Queued.
Errors
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo account on this channel. - 409The account is turned off or incomplete.
- 422
validation_failedInvalid phone number.