Skip to content

TEST_MODE_ONLY

This action only works in test mode, and it was asked of a live key or a live-mode webhook endpoint. Today that is one thing: a test event with a sample invoice (invoice.paid, invoice.processing and so on), from POST /v0/webhooks/{id}/test or Send test event in the dashboard.

HTTP status
403 Forbidden
Code
TEST_MODE_ONLY

A sample invoice is made up: nothing was paid. It is only sent to test-mode endpoints so that a live receiver can never be handed something shaped like a paid invoice that was not paid.

  • Call POST /v0/webhooks/{id}/test with an ik_test_ key, for an endpoint registered with that key.
  • In the dashboard, switch to Test mode and send the test event from the test endpoint.
  • To check that a live endpoint is reachable and verifies signatures, send it the webhook.test ping instead: it carries no invoice.
{ "error": { "code": "TEST_MODE_ONLY", "message": "…" } }