# TEST_MODE_ONLY

> HTTP 403. 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.

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

- 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.


## Example response

```json
{ "error": { "code": "TEST_MODE_ONLY", "message": "…" } }
```

---

Source: https://intents.fi/docs/errors/TEST_MODE_ONLY · The whole corpus: https://intents.fi/docs/llms-full.txt
