Send a test notification
Authorizations
A secret API key. Publishable keys cannot reach this API. A key may carry an expiry, and an expired key is refused exactly like an unknown one, with a 401 that names no reason; check the key's expires_at in the dashboard rather than inferring it from a response. When a merchant rolls a key's secret they choose a grace window of up to 3 days, and for its duration BOTH the new secret and the one it replaced authenticate, so an integration moves over on its own deploy schedule instead of at the instant the button is pressed. Move before the window closes: after it, the old secret is refused. Nothing else about this contract moves with a roll. The key keeps its id and its scopes, so the only thing an integration updates is the credential itself.
Headers
A unique key per logical write. Replaying a request with the same key returns the first response byte for byte instead of applying the write twice.
Body
THIS MAILS A REAL ADDRESS, through the merchant's own relay and under the merchant's own domain, every time it is called. THE COPY COMES FROM THE STORE'S OWN TEMPLATE for the event and from nowhere else. A body carrying subject or body is REFUSED rather than ignored: accepting either would make this an open mail relay signed by the merchant's domain. Edit the template, then test it. 201, because it creates a send-log row addressable at GET /api/v1/notifications/{notificationId}, and the response is that row. 400 provider_inactive when the store's sender is configured but not enabled: the message would be queued and never delivered, and a success there would read as a test that worked. USE A FRESH Idempotency-Key ON EVERY CALL. A replayed key answers with the first call's row and sends nothing, so a test on a stale key is not a test.
Which of the store's templates to render, such as order.confirmation.
Where the rendered message is sent.
The render context, so a test exercises the same placeholders a real send would. Free-form because every event's context is its own shape; a missing placeholder renders empty rather than failing, which is what makes a test useful for checking wording.
Response
Created
