# Event reference (/docs/webhooks/events)

Each delivery is a JSON `POST` with this envelope. `data.object` is the full serialized object.

```json
{
  "id": "evt_01KA8E5F7G9H1J3K5M7N9P1Q3R",
  "object": "event",
  "type": "checkout.session.completed",
  "api_version": "2026-12-15",
  "livemode": false,
  "created": 1767225600,
  "data": {
    "object": {
      "id": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
      "object": "checkout_session",
      "livemode": false,
      "status": "complete",
      "payment_status": "paid",
      "amount_subtotal": 1999,
      "amount_tax": 0,
      "amount_total": 1999,
      "currency": "USD",
      "tax_behavior": "exclusive",
      "line_items": {
        "object": "list",
        "url": "/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items",
        "data": [
          {
            "id": "li_01KA4XZY8T2R5M7P1Q4W6E8R0T",
            "object": "item",
            "currency": "USD",
            "quantity": 1,
            "price_data": {
              "currency": "USD",
              "unit_amount": 1999,
              "product_data": {
                "name": "Pro plan, 1 month"
              },
              "tax_code": "saas",
              "tax_behavior": "exclusive"
            },
            "amount_subtotal": 1999,
            "amount_tax": 0,
            "amount_total": 1999
          }
        ],
        "has_more": false
      },
      "description": "Pro plan, 1 month",
      "customer_email": null,
      "customer": null,
      "client_reference_id": "order_1042",
      "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
      "payment_link": null,
      "success_url": "https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}",
      "cancel_url": null,
      "metadata": {
        "order_id": "1042"
      },
      "locale": "auto",
      "url": "https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
      "expires_at": 1767312000,
      "expired_at": null,
      "created": 1767225600
    }
  },
  "request": null
}
```

| Field | |
| --- | --- |
| `id` | The event id (`evt_…`). The same on every retry and replay: deduplicate on it. |
| `object` | Always `event`. |
| `api_version` | The endpoint's API version (currently `2026-12-15`). |
| `request` | Originating API request id and idempotency key, or null for processor, cron and dashboard events. |
| `type` | One of the 16 types below. |
| `livemode` | `false` for test-mode events. |
| `created` | When the event happened, unix seconds. |
| `data.object` | Full object snapshot taken when the event happened; retrieve the object for its current state. |
| `data.previous_attributes` | Previous values of changed fields, only on `*.updated`. |

Endpoints subscribe to a list of these types, or to `["*"]` for all of them. The same events are listed by `GET /events`.

Events are listable and retrievable for 30 days through `GET /events` and `GET /events/{id}`. Event rows are retained for audit; delivery history is pruned after 30 days.

Deliveries also carry `RunePay-Event-Id` and `RunePay-Event-Type`. Verify the signature before trusting either header.

## `checkout.session.completed` [#checkoutsessioncompleted]

A checkout session's payment succeeded. Sent right after `payment.succeeded` for payments that came from a checkout session. **Fulfil orders on this event.**

**`data.object`:** The full checkout session, including `payment`, amount, currency and metadata. Fulfil using `data.object.id` or your metadata order id.

```json
{
  "object": {
    "id": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "object": "checkout_session",
    "livemode": false,
    "status": "complete",
    "payment_status": "paid",
    "amount_subtotal": 1999,
    "amount_tax": 0,
    "amount_total": 1999,
    "currency": "USD",
    "tax_behavior": "exclusive",
    "line_items": {
      "object": "list",
      "url": "/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items",
      "data": [
        {
          "id": "li_01KA4XZY8T2R5M7P1Q4W6E8R0T",
          "object": "item",
          "currency": "USD",
          "quantity": 1,
          "price_data": {
            "currency": "USD",
            "unit_amount": 1999,
            "product_data": {
              "name": "Pro plan, 1 month"
            },
            "tax_code": "saas",
            "tax_behavior": "exclusive"
          },
          "amount_subtotal": 1999,
          "amount_tax": 0,
          "amount_total": 1999
        }
      ],
      "has_more": false
    },
    "description": "Pro plan, 1 month",
    "customer_email": null,
    "customer": null,
    "client_reference_id": "order_1042",
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "payment_link": null,
    "success_url": "https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}",
    "cancel_url": null,
    "metadata": {
      "order_id": "1042"
    },
    "locale": "auto",
    "url": "https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "expires_at": 1767312000,
    "expired_at": null,
    "created": 1767225600
  }
}
```

## `checkout.session.expired` [#checkoutsessionexpired]

An open session expires or is explicitly expired, with no pending payment.

**`data.object`:** The full checkout session, including immutable line items and zero-tax totals.

```json
{
  "object": {
    "id": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "object": "checkout_session",
    "livemode": false,
    "status": "expired",
    "payment_status": "unpaid",
    "amount_subtotal": 1999,
    "amount_tax": 0,
    "amount_total": 1999,
    "currency": "USD",
    "tax_behavior": "exclusive",
    "line_items": {
      "object": "list",
      "url": "/api/v1/checkout_sessions/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T/line_items",
      "data": [
        {
          "id": "li_01KA4XZY8T2R5M7P1Q4W6E8R0T",
          "object": "item",
          "currency": "USD",
          "quantity": 1,
          "price_data": {
            "currency": "USD",
            "unit_amount": 1999,
            "product_data": {
              "name": "Pro plan, 1 month"
            },
            "tax_code": "saas",
            "tax_behavior": "exclusive"
          },
          "amount_subtotal": 1999,
          "amount_tax": 0,
          "amount_total": 1999
        }
      ],
      "has_more": false
    },
    "description": "Pro plan, 1 month",
    "customer_email": null,
    "customer": null,
    "client_reference_id": "order_1042",
    "payment": null,
    "payment_link": null,
    "success_url": "https://merchant.example/thanks?session={CHECKOUT_SESSION_ID}",
    "cancel_url": null,
    "metadata": {
      "order_id": "1042"
    },
    "locale": "auto",
    "url": "https://runepay.co/pay/cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "expires_at": 1767312000,
    "expired_at": 1767225600,
    "created": 1767225600
  }
}
```

## `payment.succeeded` [#paymentsucceeded]

A payment succeeded (from hosted checkout or a payment link).

**`data.object`:** The full [payment](/docs/api/payments/retrieve-payment) object.

```json
{
  "object": {
    "id": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "object": "payment",
    "livemode": false,
    "status": "succeeded",
    "amount": 1999,
    "amount_refunded": 0,
    "amount_tax": 0,
    "customer": null,
    "currency": "USD",
    "fee": 88,
    "description": "Pro plan, 1 month",
    "customer_email": "buyer@example.com",
    "metadata": {
      "order_id": "1042"
    },
    "checkout_session": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "card": {
      "brand": "visa",
      "last4": "4242"
    },
    "decline_code": null,
    "decline_message": null,
    "outcome": {
      "risk_level": "normal",
      "risk_score": 12
    },
    "available_on": 1767830400,
    "created": 1767225600
  }
}
```

## `payment.failed` [#paymentfailed]

A payment attempt failed, for example a decline.

**`data.object`:** The full payment object, with `decline_code` and `decline_message`.

```json
{
  "object": {
    "id": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "object": "payment",
    "livemode": false,
    "status": "failed",
    "amount": 1999,
    "amount_refunded": 0,
    "amount_tax": 0,
    "customer": null,
    "currency": "USD",
    "fee": null,
    "description": "Pro plan, 1 month",
    "customer_email": "buyer@example.com",
    "metadata": {
      "order_id": "1042"
    },
    "checkout_session": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "card": {
      "brand": "visa",
      "last4": "4242"
    },
    "decline_code": "do_not_honor",
    "decline_message": "The card was declined.",
    "outcome": {
      "risk_level": "normal",
      "risk_score": 12
    },
    "available_on": null,
    "created": 1767225600
  }
}
```

## `payment.refunded` [#paymentrefunded]

A payment is now fully refunded. Partial refunds send `refund.succeeded` only.

**`data.object`:** The full payment object.

```json
{
  "object": {
    "id": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "object": "payment",
    "livemode": false,
    "status": "refunded",
    "amount": 1999,
    "amount_refunded": 1999,
    "amount_tax": 0,
    "customer": null,
    "currency": "USD",
    "fee": 88,
    "description": "Pro plan, 1 month",
    "customer_email": "buyer@example.com",
    "metadata": {
      "order_id": "1042"
    },
    "checkout_session": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T",
    "card": {
      "brand": "visa",
      "last4": "4242"
    },
    "decline_code": null,
    "decline_message": null,
    "outcome": {
      "risk_level": "normal",
      "risk_score": 12
    },
    "available_on": 1767830400,
    "created": 1767225600
  }
}
```

## `refund.created` [#refundcreated]

A refund was requested and is pending, before contacting the processor.

**`data.object`:** The full refund object with status `pending`.

```json
{
  "object": {
    "id": "re_01KA5B2C4D6E8F0G2H4J6K8M0N",
    "object": "refund",
    "livemode": false,
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "amount": 500,
    "currency": "USD",
    "status": "pending",
    "reason": "requested_by_customer",
    "failure_reason": null,
    "created": 1767312000
  }
}
```

## `refund.succeeded` [#refundsucceeded]

A refund completed.

**`data.object`:** The full [refund](/docs/api/refunds/create-refund) object.

```json
{
  "object": {
    "id": "re_01KA5B2C4D6E8F0G2H4J6K8M0N",
    "object": "refund",
    "livemode": false,
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "amount": 500,
    "currency": "USD",
    "status": "succeeded",
    "reason": "requested_by_customer",
    "failure_reason": null,
    "created": 1767312000
  }
}
```

## `refund.failed` [#refundfailed]

A refund failed at the processor.

**`data.object`:** The full refund object.

```json
{
  "object": {
    "id": "re_01KA5B2C4D6E8F0G2H4J6K8M0N",
    "object": "refund",
    "livemode": false,
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "amount": 500,
    "currency": "USD",
    "status": "failed",
    "reason": "requested_by_customer",
    "failure_reason": null,
    "created": 1767312000
  }
}
```

## `dispute.created` [#disputecreated]

The buyer's bank opened a dispute (a chargeback or an inquiry).

**`data.object`:** The full dispute object, including `financial_effect` and `evidence_due_by`.

```json
{
  "object": {
    "id": "dp_01KA6C3D5E7F9G1H3J5K7M9N1P",
    "object": "dispute",
    "livemode": false,
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "amount": 1999,
    "currency": "USD",
    "status": "needs_response",
    "reason": "fraudulent",
    "financial_effect": "chargeback",
    "chargeback_fee": 1500,
    "evidence_due_by": 1768435200,
    "closed_at": null,
    "created": 1767398400
  }
}
```

## `dispute.updated` [#disputeupdated]

A dispute's status or evidence deadline changed.

**`data.object`:** The full dispute object. `data.previous_attributes` contains prior values of changed fields.

```json
{
  "object": {
    "id": "dp_01KA6C3D5E7F9G1H3J5K7M9N1P",
    "object": "dispute",
    "livemode": false,
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "amount": 1999,
    "currency": "USD",
    "status": "needs_response",
    "reason": "fraudulent",
    "financial_effect": "chargeback",
    "chargeback_fee": 1500,
    "evidence_due_by": 1768435200,
    "closed_at": null,
    "created": 1767398400
  },
  "previous_attributes": {
    "status": "under_review"
  }
}
```

## `dispute.closed` [#disputeclosed]

A dispute was won or lost.

**`data.object`:** The full dispute object.

```json
{
  "object": {
    "id": "dp_01KA6C3D5E7F9G1H3J5K7M9N1P",
    "object": "dispute",
    "livemode": false,
    "payment": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y",
    "amount": 1999,
    "currency": "USD",
    "status": "won",
    "reason": "fraudulent",
    "financial_effect": "chargeback",
    "chargeback_fee": 1500,
    "evidence_due_by": 1768435200,
    "closed_at": 1767225600,
    "created": 1767398400
  }
}
```

## `payout.created` [#payoutcreated]

A payout was approved and is in transit.

**`data.object`:** The full payout object with status `in_transit`.

```json
{
  "object": {
    "id": "8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34",
    "object": "payout",
    "livemode": false,
    "amount": 10200,
    "currency": "USD",
    "status": "in_transit",
    "rail": "fiat_ach",
    "bank_reference": null,
    "tx_hash": null,
    "paid_at": null,
    "created": 1767744000
  }
}
```

## `payout.paid` [#payoutpaid]

A payout reached your bank or wallet.

**`data.object`:** The full payout object.

```json
{
  "object": {
    "id": "8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34",
    "object": "payout",
    "livemode": false,
    "amount": 10200,
    "currency": "USD",
    "status": "paid",
    "rail": "fiat_ach",
    "bank_reference": "ACH-20260107-0042",
    "tx_hash": null,
    "paid_at": 1767830400,
    "created": 1767744000
  }
}
```

## `payout.failed` [#payoutfailed]

A payout failed and its funds were returned to your available balance.

**`data.object`:** The full payout object with status `failed`.

```json
{
  "object": {
    "id": "8d0c7a52-3f3e-4c1b-9a77-0c5b8f1e2d34",
    "object": "payout",
    "livemode": false,
    "amount": 10200,
    "currency": "USD",
    "status": "failed",
    "rail": "fiat_ach",
    "bank_reference": null,
    "tx_hash": null,
    "paid_at": null,
    "created": 1767744000
  }
}
```

## `payment_link.created` [#payment_linkcreated]

A payment link was created (API or dashboard).

**`data.object`:** The full [payment link](/docs/api/payment-links/retrieve-payment-link) object.

```json
{
  "object": {
    "id": "plink_01KA7D4E6F8G0H2J4K6M8N0P2Q",
    "object": "payment_link",
    "livemode": false,
    "active": true,
    "name": "Pro plan",
    "description": "One month of Pro",
    "amount": 1999,
    "min_amount": null,
    "max_amount": null,
    "currency": "USD",
    "success_url": "https://merchant.example/thanks",
    "metadata": {
      "plan": "pro"
    },
    "url": "https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q",
    "created": 1767225600,
    "updated": 1767225600
  }
}
```

## `payment_link.updated` [#payment_linkupdated]

A payment link changed, including being deactivated.

**`data.object`:** The full payment link object.

```json
{
  "object": {
    "id": "plink_01KA7D4E6F8G0H2J4K6M8N0P2Q",
    "object": "payment_link",
    "livemode": false,
    "active": false,
    "name": "Pro plan",
    "description": "One month of Pro",
    "amount": 1999,
    "min_amount": null,
    "max_amount": null,
    "currency": "USD",
    "success_url": "https://merchant.example/thanks",
    "metadata": {
      "plan": "pro"
    },
    "url": "https://runepay.co/pay/l/plink_01KA7D4E6F8G0H2J4K6M8N0P2Q",
    "created": 1767225600,
    "updated": 1767225600
  },
  "previous_attributes": {
    "active": true
  }
}
```