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.
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.
What to do
Section titled “What to do”- Call
POST /v0/webhooks/{id}/testwith anik_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.testping instead: it carries no invoice.
Example response
Section titled “Example response”{ "error": { "code": "TEST_MODE_ONLY", "message": "…" } }