Send test notification
POST
/ admin/ v1/ stores/ {store_id}/ notifications/ messages/ {message}/ test- notifications:manage
- Idempotency-Key supported
Send a message with its sample data to an address of your choice, through the real channel. It shows in the delivery log as a test.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.messagestringrequiredMessage key
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
channelenumrequiredHow a message reaches its recipient.
- sms
localeenumrequiredThe languages notification templates come in. Recipients in other languages get English.
- en
- ar
tostringrequiredAn email address, or a phone number for SMS and WhatsApp.
draftobject · or nullUnsaved edits to send; the saved template when absent.
Returns
202 Queued.
Errors
- 403
forbiddenMissingnotifications:manage. - 404
not_foundNo such message, or not on this channel. - 409The channel is not connected, or no WhatsApp template is chosen.
- 422
validation_failedInvalid address, or a draft that does not render.