Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • messagestringrequired

    Message key

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

  • channelenumrequired

    How a message reaches its recipient.

    • email
    • sms
    • whatsapp
  • localeenumrequired

    The languages notification templates come in. Recipients in other languages get English.

    • en
    • ar
  • tostringrequired

    An email address, or a phone number for SMS and WhatsApp.

  • draftobject · or null

    Unsaved edits to send; the saved template when absent.

Returns

202 Queued.

Errors

  • 403forbiddenMissing notifications:manage.
  • 404not_foundNo such message, or not on this channel.
  • 409The channel is not connected, or no WhatsApp template is chosen.
  • 422validation_failedInvalid address, or a draft that does not render.