# Event Types (/webhooks/events)

Select from these 57 event types, or enable an all-types subscription. Every notification uses the [shared event envelope](/webhooks#event-envelope); this page shows what each event family puts inside `data`.

## Event families [#event-families]

| Family | Events | `data` contains |
| --- | --- | --- |
| [Payments](#payments) | 22 | `payment` |
| [Refunds](#refunds) | 18 | `payment` and `refund` |
| [Checkout sessions](#checkout-sessions) | 3 | `checkoutSession` and `payment` |
| [Merchants](#merchants) | 2 | `merchant` |
| [Merchant onboarding](#merchant-onboarding) | 8 | `onboarding` |
| [Merchant agreements](#merchant-agreements) | 4 | `agreement` |

Most integrations start with `payment.online.succeeded`, `payment.online.failed`, and `payment.online.refund.succeeded`. Platforms that onboard merchants add `merchant.onboarding.approved` and `merchant.onboarding.action_required`.

## Payments [#payments]

Replace `{category}` in the event names below with a value from this table. The category follows `paymentMethodId`, also used by payment-list filters. Refunds use the parent payment's category.

| `paymentMethodId` | `{category}` / `paymentType` |
| --- | --- |
| `6` | `online` |
| `1` | `instore.card` |
| `5` | `instore.cash` |

Only these three payment methods generate payment and refund events. Use the current event names when saving subscriptions; unqualified names such as `payment.succeeded` are rejected. Existing explicit subscriptions using the old names are expanded to the three categories.

These events describe the entire payment, across supported payment processors and channels. They contain `data.payment`, including the payment's `status` and `statusId`.

| Event | When it is sent |
| --- | --- |
| <span className="whitespace-nowrap">`payment.{category}.created`</span> | A payment is saved. |
| <span className="whitespace-nowrap">`payment.online.authorized`</span> | A manual online authorization is confirmed and committed, including a zero-amount authorization. |
| <span className="whitespace-nowrap">`payment.{category}.updated`</span> | Its status changes to `pending` or another status without a dedicated event name. This is not a notification for every field edit. |
| <span className="whitespace-nowrap">`payment.{category}.succeeded`</span> | Its status changes to `success`. |
| <span className="whitespace-nowrap">`payment.{category}.failed`</span> | The entire payment changes to `failed`, rather than an individual payment attempt failing. |
| <span className="whitespace-nowrap">`payment.{category}.canceled`</span> | Its status changes to `cancelled`. |
| <span className="whitespace-nowrap">`payment.{category}.refunded`</span> | Tapaya marks the payment as `refunded`. |
| <span className="whitespace-nowrap">`payment.{category}.action_required`</span> | Its status changes to `actionNeeded`. |

Creating a payment in a non-pending state sends both `payment.{category}.created` and the matching status event, if you subscribe to both. Saving the same status again sends neither a new status event nor `payment.{category}.updated`.

`status` and `statusId` take these values in payment and refund snapshots:

| `statusId` | `status` | Meaning |
| --- | --- | --- |
| `1` | `pending` | Processing has not reached a final outcome. |
| `2` | `success` | The payment or refund succeeded. |
| `3` | `cancelled` | The payment or refund was canceled. |
| `4` | `refunded` | The payment is marked as refunded by Tapaya. |
| `5` | `failed` | The payment or refund failed. |
| `6` | `actionNeeded` | Further action is needed. |

Unknown future status IDs use `status: "unknown"` and keep their numeric `statusId`. Event names use `succeeded` and `canceled`; status values use `success` and `cancelled`.

`payment.online.authorized` reports a confirmed authorization separately from capture. Its `data.payment.state` is `authorized`, while legacy `status` and `statusId` remain `pending` and `1`. Replaying confirmation or increasing an existing hold does not emit another authorization event.

All payment events share a set of fields in `data.payment`. Saved-card charges and manual-capture payments made through the Checkout API also have `state`, `captureMethod`, `amountAuthorized`, `amountCaptured` and `authorizationExpiresAt`. Other payments don't, including automatic-capture payments with a newly entered card and in-store payments.

```json title="data"
{
  "payment": {
    "id": "019a0000-0000-7000-8000-000000000003",
    "token": "example_payment_token",
    "merchantId": "019a0000-0000-7000-8000-000000000005",
    "status": "pending",
    "statusId": 1,
    "requestedAmount": 85100,
    "requestedCurrencyId": 203,
    "settlementAmount": 85100,
    "settlementCurrencyId": 203,
    "state": "authorized",
    "captureMethod": "manual",
    "amountAuthorized": 85100,
    "amountCaptured": 0,
    "authorizationExpiresAt": "2026-11-28T11:00:00.000000Z"
  }
}
```

- `id` is the same payment ID that the `/merchant/payments` endpoints return as `id`. Use it to match the event to the payment you created.
- Amounts are integers in minor units. For example, `85100` with currency `203` means CZK 851.00.
- `authorizationExpiresAt` gives the deadline to capture a held payment. The field is `null` once nothing is held.

Webhooks use the Platform API format. Some values differ from their Checkout API equivalents.

| Webhook | Checkout API |
| --- | --- |
| `data.payment.state`, for example `authorized` or `successful` | `status`, with the same values |
| `data.payment.status` and `statusId`, for example `success` and `2` | No matching field. Use `state`. |
| `requestedCurrencyId`: `203` | `currency`: `CZK` |
| `requestedAmount`, `amountAuthorized`, `amountCaptured` | `amount`, `amountAuthorized`, `amountCaptured` |

If the payment has no `state`, only `status`, `statusId`, and the event `type` report the outcome.

The `webhooks` section of the [OpenAPI document](https://api.tapaya.com/openapi/v1.json) describes every event payload, so you can generate types for your handler from it.

## Refunds [#refunds]

Refund events contain both `data.payment` and `data.refund`. The refund has its own ID, token, status, and requested and settlement amounts and currencies. Use the refund's ID to track it independently from the parent payment.

| Event | When it is sent |
| --- | --- |
| <span className="whitespace-nowrap">`payment.{category}.refund.created`</span> | A refund is saved. |
| <span className="whitespace-nowrap">`payment.{category}.refund.updated`</span> | Its status changes to `pending` or another status without a dedicated event name. |
| <span className="whitespace-nowrap">`payment.{category}.refund.succeeded`</span> | Its status changes to `success`. |
| <span className="whitespace-nowrap">`payment.{category}.refund.failed`</span> | Its status changes to `failed`. |
| <span className="whitespace-nowrap">`payment.{category}.refund.canceled`</span> | Its status changes to `cancelled`. |
| <span className="whitespace-nowrap">`payment.{category}.refund.action_required`</span> | Its status changes to `actionNeeded`. |

Creating a refund in a non-pending state can also send its matching status event. A successful refund does not by itself describe the final status of the whole payment: check `data.payment.status` and any separate `payment.{category}.refunded` notification.

```json title="data"
{
  "payment": {
    "id": "019a0000-0000-7000-8000-000000000003",
    "token": "example_payment_token",
    "merchantId": "019a0000-0000-7000-8000-000000000005",
    "status": "success",
    "statusId": 2,
    "requestedAmount": 95888,
    "requestedCurrencyId": 203,
    "settlementAmount": 95888,
    "settlementCurrencyId": 203,
    "state": "successful",
    "captureMethod": "manual",
    "amountAuthorized": 95888,
    "amountCaptured": 95888,
    "authorizationExpiresAt": null
  },
  "refund": {
    "id": "019a0000-0000-7000-8000-000000000008",
    "token": "example_refund_token",
    "status": "success",
    "statusId": 2,
    "requestedAmount": 10000,
    "requestedCurrencyId": 203,
    "settlementAmount": 10000,
    "settlementCurrencyId": 203
  }
}
```

The refund and payment use the same set of values for `status` and `statusId`. Each reports its own status. A new refund can be `pending` while its payment is `success`. After a partial refund, the payment keeps `status` `success` and its `amountCaptured`.

## Checkout sessions [#checkout-sessions]

Hosted Checkout lifecycle events contain `data.checkoutSession` and `data.payment`, with top-level `paymentType: "online"`. Use `merchantOrderId` to correlate the event with your order.

| Event | When it is sent |
| --- | --- |
| <span className="whitespace-nowrap">`checkout.session.created`</span> | A hosted session is saved. Replaying the same creation request with its idempotency key does not create another event. |
| <span className="whitespace-nowrap">`checkout.session.completed`</span> | The session first completes, including successful authorization when capture is manual. Later capture or cancellation does not repeat this event. |
| <span className="whitespace-nowrap">`checkout.session.expired`</span> | An open session times out, or a newer hosted or embedded payment attempt replaces it. The reason is `timeout` or `superseded`. |

The session has its own `status`: `open`, `completed` or `expired`. Check `paymentStatus` separately: `authorized` means funds are reserved; `successful` means the payment succeeded. A `completed` session alone is not proof of captured funds.

Timeouts are checked periodically in the background, so an expiration event can arrive after `expiresAt`. A pending payment or 3-D Secure action keeps the session open until its outcome is known. Expiring a session does not cancel or fail its payment.

The snapshot includes `id`, `merchantOrderId`, `paymentId`, `amount`, `currency`, `createdAt`, `expiresAt`, `completedAt` and `reason`. Amounts are integer minor units: `1500` with `CZK` means CZK 15.00. The payment belongs to this session, even when a newer session replaces it. Session access tokens, customer details and redirect URLs are omitted.

```json title="data"
{
  "checkoutSession": {
    "id": "019a0000-0000-7000-8000-000000000006",
    "merchantOrderId": "order-2026-001",
    "paymentId": "019a0000-0000-7000-8000-000000000003",
    "status": "completed",
    "paymentStatus": "successful",
    "amount": 1500,
    "currency": "CZK",
    "createdAt": "2026-11-03T12:00:00.000000Z",
    "expiresAt": "2026-11-03T12:30:00.000000Z",
    "completedAt": "2026-11-03T12:05:00.000000Z",
    "reason": null
  },
  "payment": {
    "id": "019a0000-0000-7000-8000-000000000003",
    "token": "example_payment_token",
    "merchantId": "019a0000-0000-7000-8000-000000000005",
    "status": "success",
    "statusId": 2,
    "requestedAmount": 1500,
    "requestedCurrencyId": 203,
    "settlementAmount": 1500,
    "settlementCurrencyId": 203
  }
}
```

## Merchants [#merchants]

<Badge variant="info">
[Updated 20 November 2026](/changelog#platform-api-1.3.0)
</Badge>

Merchant events contain `data.merchant` with an `id`, a `token`, and a snapshot of saved merchant status.

| Event | When it is sent |
| --- | --- |
| <span className="whitespace-nowrap">`merchant.created`</span> | A merchant is created in your organization. |
| <span className="whitespace-nowrap">`merchant.status_changed`</span> | Activation, shell-merchant status, profile presence, or a processor account, submission, approval, or rejection changes. |

```json title="data"
{
  "merchant": {
    "id": "019a0000-0000-7000-8000-000000000005",
    "token": "example_merchant_token",
    "status": {
      "isActive": true,
      "isShellMerchant": false,
      "profileOnboarded": true,
      "onboardingStage": "live",
      "processors": [
        {
          "paymentProcessorId": 2,
          "hasAccount": true,
          "submitted": true,
          "approved": true,
          "rejected": false,
          "submittedAt": "2026-10-29T10:00:00+00:00",
          "approvedAt": "2026-10-30T12:00:00+00:00",
          "rejectedAt": null
        }
      ]
    }
  }
}
```

- `onboardingStage` has the same values as `pipeline.onboardingStage` in [onboarding status](/platform-api/merchant_onboarding#track-onboarding-progress).
- `profileOnboarded` means a profile exists. It does not mean a processor approved the merchant or that every payment method is ready.
- Processor account identifiers and private processor rejection messages are not included. The processor ID above is illustrative.
- Updating unchanged values or editing unrelated merchant details sends no event. There is no `merchant.updated` event and no merchant-deletion event.

## Merchant onboarding [#merchant-onboarding]

<Badge variant="info">
[Updated 20 November 2026](/changelog#platform-api-1.3.0)
</Badge>

Onboarding events contain `data.onboarding`. Its `status` matches the event's final segment, and some events add the fields named below.

| Event | When it is sent |
| --- | --- |
| <span className="whitespace-nowrap">`merchant.onboarding.started`</span> | The first merchant profile and onboarding data are saved. |
| <span className="whitespace-nowrap">`merchant.onboarding.profile_completed`</span> | The first complete merchant profile is saved. |
| <span className="whitespace-nowrap">`merchant.onboarding.document_added`</span> | A new document is saved. Adds `documentId`, `documentTypeId`, `paymentProcessorId`, and `source: "cache"` for a staged document. |
| <span className="whitespace-nowrap">`merchant.onboarding.stakeholder_completed`</span> | A stakeholder's onboarding data is completed. Adds `stakeholderId`. |
| <span className="whitespace-nowrap">`merchant.onboarding.submitted`</span> | Onboarding is ready to submit to a processor. Adds `paymentProcessorId`. |
| <span className="whitespace-nowrap">`merchant.onboarding.approved`</span> | A processor account is approved for the first time. Adds `paymentProcessorId`. |
| <span className="whitespace-nowrap">`merchant.onboarding.rejected`</span> | Tapaya rejects the onboarding after a manual review. Adds `reason`, with `requiredAction` set to `null`. |
| <span className="whitespace-nowrap">`merchant.onboarding.action_required`</span> | Tapaya asks for more information after a manual review. Adds `reason`, `requiredAction` and `missingRequirements`. |

```json title="data"
{
  "onboarding": {
    "status": "action_required",
    "reason": "The submitted company document is no longer valid.",
    "requiredAction": "Upload a current company registration document."
  }
}
```

<Accordions>
<Accordion title="Edge cases for each event" id="onboarding-edge-cases">
- `profile_completed` currently arrives together with `started`. Neither means processor approval.
- `document_added` carries metadata, not the file. Moving a staged document to the processor does not send it again.
- `stakeholder_completed` also covers completion through an invitation. Saving the same completion again does not send it again.
- `submitted` is the readiness notification; it does not confirm that a request reached the processor. There is no separate `merchant.onboarding.ready` event.
- `approved` is per processor. Approval by one processor does not imply approval by all.
- `missingRequirements` lists what to provide, with the same entries as `pipeline.actionRequired.items` in [onboarding status](/platform-api/merchant_onboarding#track-onboarding-progress). A document entry has a `documentType`, or `acceptedDocumentTypes` when any of several types will do.
- `rejected` and `action_required` come only from Tapaya's manual review, never directly from a payment processor. Repeating a decision sends no new event, reviewer identities are not included, and the decision does not change processor approval flags.
</Accordion>
</Accordions>

Onboarding and merchant status events describe different aspects of a change. The same saved profile or processor approval can produce both event families when you subscribe to both; do not assume an order between them. Events are not backfilled for historical onboarding activity.

## Merchant agreements [#merchant-agreements]

Agreement events contain `data.agreement`, a snapshot of the merchant agreement request sent to the signer. Subscribe to them like any other event type, or through an all-types subscription.

| Event | When it is sent |
| --- | --- |
| <span className="whitespace-nowrap">`merchant.agreement.sent`</span> | The agreement was sent and the signer was emailed. |
| <span className="whitespace-nowrap">`merchant.agreement.signed`</span> | The signer signed the agreement. |
| <span className="whitespace-nowrap">`merchant.agreement.declined`</span> | The signer declined to sign. |
| <span className="whitespace-nowrap">`merchant.agreement.canceled`</span> | The request was canceled or expired before it was signed. |

```json title="data"
{
  "agreement": {
    "id": "019a0000-0000-7000-8000-000000000009",
    "merchantId": "019a0000-0000-7000-8000-000000000005",
    "status": "declined",
    "testMode": false,
    "sentAt": "2026-11-16T10:00:00+00:00",
    "signedAt": null,
    "canceledAt": null,
    "declineReason": "Wrong rates"
  }
}
```

- `id` identifies one agreement request. A merchant can get a new request after one was declined or canceled.
- `status` is `sent`, `viewed`, `signed`, `declined` or `canceled`, as it was when the event was captured.
- `testMode` marks a test request, which is not legally binding.
- `declineReason` is the signer's own text and appears only on declined requests.
- Signer contact details and the values of agreement fields are not included. Viewing an agreement and a failed send send no event, and neither does saving the same status again.

## Diagnostic tests [#diagnostic-tests]

Use the Platform's test action to send `webhook.test`. It includes `test: true`, `merchantId: null`, and `data.message`, with no payment or merchant state. It cannot be selected as an event subscription.

See [Verify and Test](/webhooks/receiving#send-a-test-webhook) to check delivery without creating a payment.