Generic webhook
The generic webhook is for anything that can send an HTTP POST with a JSON body: automation tools such as
Make, n8n, Zapier or Pipedream, a script, or your own backend.
What you get
Section titled “What you get”When you add a generic webhook in the panel, it gives you two values, each with a Copy button:
- your personal URL, which looks like
https://hook.mrrfetti.tv/h/1-…; - a secret, which you send in the
Authorizationheader.
Send a sale
Section titled “Send a sale”URL='https://hook.mrrfetti.tv/h/1-your-token'
SECRET='your-secret'
curl -X POST "$URL" \
-H "Authorization: Bearer $SECRET" \
-H "Content-Type: application/json" \
--data '{"event_id":"order-1001","amount":"12.50","currency":"EUR"}'
A 200 with {"ok":true} means the sale is on its way to your TV.
Fields
Section titled “Fields”This is the recommended body. Only event_id, the amount and currency are required.
{
"event_id": "order-1001",
"amount": "12.50",
"currency": "EUR",
"occurred_at": "2026-10-09T13:45:00+02:00",
"source": "make",
"description": "Plan Pro",
"test": false
}
| Field | Default path | Rules |
|---|---|---|
| Event ID | /event_id |
Required. A stable ID for this sale. Send the same ID again and it is not celebrated twice. |
| Amount | /amount or /amount_minor |
amount is decimal text in major units ("12.50"; a decimal comma such as "1.234,56" works too). amount_minor is an integer in minor units (1250). |
| Currency | /currency |
An ISO 4217 code such as EUR or USD. Currencies without decimals (such as JPY) are handled for you. |
| Date | /occurred_at |
Optional. Sales older than 7 days are rejected. |
| Source | /source |
Optional label, for example make. |
| Test | /test |
Optional. true shows the celebration with a TEST mark. |
| Description | /description |
Optional. It is not stored and not shown on the TV. |
The paths are JSON Pointers. If your tool sends a different shape, the Connections screen will let you pick other paths from an example of your own body. The example is read in your browser; our server only stores the paths.
Why event_id is required
Section titled “Why event_id is required”Tools retry when they do not get an answer in time. Without a stable ID, a retry would make your TV celebrate the same sale twice. MRRfetti never works out an ID from the body itself, because that would be a fingerprint of the amount.
Optional signature (HMAC)
Section titled “Optional signature (HMAC)”The Authorization header is always required. On top of it, you can sign each request: the signature shows
that the body was not changed on the way, and the timestamp stops an old request from being sent again. Make
and n8n can compute this signature themselves.
X-MRRfetti-Timestamp: the current Unix time, in seconds.X-MRRfetti-Signature:sha256=followed by the hex HMAC-SHA256 oftimestamp + "." + body, keyed with your secret. The body must be signed byte for byte as it is sent.
If you send these headers, send both, and the signature has to match: a request with only one of them, a wrong signature or a timestamp more than 5 minutes away from the current time is rejected, even with the right secret.
BODY='{"event_id":"order-1002","amount":"12.50","currency":"EUR"}'
TS=$(date +%s)
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -X POST "$URL" \
-H "Authorization: Bearer $SECRET" \
-H "Content-Type: application/json" \
-H "X-MRRfetti-Timestamp: $TS" \
-H "X-MRRfetti-Signature: sha256=$SIG" \
--data "$BODY"
Responses
Section titled “Responses”Errors always come back as a short code, such as {"error":"event_id_missing"}, never as text that repeats
your body. The panel explains each code and how to fix it.
| Status | Body or code | What it means |
|---|---|---|
200 |
{"ok":true} |
Accepted. Your TV will celebrate it. |
200 |
{"ok":true,"duplicate":true} |
You already sent this event_id. Nothing new is shown. |
400 |
event_id_missing |
The body has no event_id. |
400 |
body_unparseable, amount_invalid, currency_invalid |
The body is not valid JSON, or the amount or currency cannot be read. |
401 |
bearer_missing, bearer_invalid |
The Authorization header is missing, or the secret is wrong. |
404 |
token_invalid |
This URL does not exist. Copy it again from the panel. |
410 |
integration_gone |
This connection was deleted. Create a new one in the panel. |
413 |
body_too_large |
The body is larger than 512 KB. |
503 |
write_failed |
A temporary problem on our side. Retry later with the same event_id. |
A 503 is safe to retry: thanks to the event_id, the sale is celebrated once.