---
title: "Event failed"
method: POST
path: "event.failed"
tags: ["Webhook events"]
---

# Event failed

`POST event.failed` (webhook)

An event failed processing. Scrip sends this request to every endpoint subscribed to `event.failed`, signed with both the Standard Webhooks headers (`webhook-id`, `webhook-timestamp`, `webhook-signature`) and the `Scrip-Signature` header; verify either one.

## Payload

- WebhookEventFailed: An event failed processing. This is the body of the delivery.
  - `api_version` string, required: The payload contract that `data` follows. Scrip adds fields without changing it, so ignore fields you do not know.
  - `created_at` string, date-time, required: When Scrip created the event, as an RFC 3339 timestamp.
  - `data` object, required: The payload of the event.
    - `error` string, required: What went wrong.
    - `error_code` string: A stable code for the failure, when there is one.
    - `event_id` string, uuid, required: The event the webhook is about.
    - `organization_id` string, uuid, required: Your organization.
    - `program_id` string, uuid: The rewards program the event ran under. On a program wallet entry it is the program that owns the wallet.
  - `id` string, uuid, required: The id of the webhook event. It is the same for every endpoint that receives the event.
  - `organization_id` string, uuid, required: The organization that owns the event.
  - `test` boolean: True on a delivery from a test send. It is absent on a real delivery.
  - `type` 'event.failed', required: The event type.

## Acknowledgement `200`

Return any 2xx status to acknowledge the delivery. Scrip retries any other status except `410 Gone`, which ends the delivery as `FAILED`.

---

[API](https://skmtc.dev/scrip/apis/scrip-api.md) · [All operations](https://skmtc.dev/scrip/apis/scrip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrip/apis/scrip-api/revisions/c52d35da8d97?raw)
