# Event catalogue

Every event GlobalyMint sends, with an example body. Generated from the event list the server and the SDK share.

Every body has the same fields: `id`, `type`, `created`, `api_version`, `mode` and `data`, plus `test: true` on a test event. Only `data` changes from one type to the next. See [What we send](/docs/webhooks#what-we-send).

- Money is a string of whole minor units, such as `"24500"` for $245.00. It is never a decimal number.
- Times are ISO-8601 in UTC.
- Every `data` names the customer as `customer_id` and `customer_external_id`. Both are `null` on `api_key.expiring`, which is about one of your keys, not a customer.
- Every `subscription.*` event carries the subscription as it stands after the change, in `data.subscription`.

## Subscriptions

### subscription.created

A subscription started.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.created",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "status": "active",
    "quantity": 5,
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.updated

Seats, plan, items or status changed. The extra fields depend on what changed; this example is a seat change.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.updated",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "quantity": 8,
    "previous_quantity": 5,
    "proration": "invoiced",
    "proration_cents": "1470",
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 8,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.paused

Billing is on hold.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.paused",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "from": "active",
    "to": "paused",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "paused",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.resumed

A paused subscription restarted. `period_start` is the new billing anchor.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.resumed",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "period_start": "2026-11-18T09:30:00.000Z",
    "period_end": "2026-12-18T09:30:00.000Z",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-18T09:30:00.000Z",
      "current_period_end": "2026-12-18T09:30:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.canceled

The subscription ended: canceled now, expired at period end, or closed after failed payments.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.canceled",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "from": "active",
    "to": "canceled",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "canceled",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.renewed

A new billing period began. `invoice_id` is null when the renewal produced no invoice.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.renewed",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "period_start": "2026-12-01T00:00:00.000Z",
    "period_end": "2027-01-01T00:00:00.000Z",
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-12-01T00:00:00.000Z",
      "current_period_end": "2027-01-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.trial_will_end

Sent once per trial, 3 days before it ends.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.trial_will_end",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "trial_end": "2026-11-21T00:00:00.000Z",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "trialing",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.discount_applied

A coupon or promotion code was attached to the subscription.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.discount_applied",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "discount_id": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "coupon_id": "b2c3d4e5-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
    "promotion_code_id": null,
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.discount_removed

A discount was removed from the subscription.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.discount_removed",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "discount_id": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "coupon_id": "b2c3d4e5-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.renewal_upcoming

Sent once per annual period, before it renews (14 days by default), with the amount including tax.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.renewal_upcoming",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "renewal_at": "2026-12-01T00:00:00.000Z",
    "next_period_end": "2027-12-01T00:00:00.000Z",
    "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
    "quantity": 5,
    "currency": "USD",
    "amount_cents": "53900",
    "tax_cents": "4900",
    "tax_inclusive": false,
    "price_change_id": null,
    "customer_email": true,
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_annual",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2025-12-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.price_change_scheduled

A price change was scheduled for this subscriber, at least 30 days ahead. `applies_at` is the renewal where the new price is first charged.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.price_change_scheduled",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "price_change_id": "e5f6a7b8-2c3d-4e4f-8a5b-6c7d8e9f0a1b",
    "from_plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
    "to_plan_id": "8b3e0d5f-2a4c-4f6b-8c7d-1e2f3a4b5c6d",
    "effective_at": "2027-01-01T00:00:00.000Z",
    "applies_at": "2027-01-01T00:00:00.000Z",
    "currency": "USD",
    "old_amount_cents": "24500",
    "new_amount_cents": "29500",
    "tax_inclusive": false,
    "customer_email": true,
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.price_change_applied

The scheduled price change took effect at this renewal.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.price_change_applied",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "price_change_id": "e5f6a7b8-2c3d-4e4f-8a5b-6c7d8e9f0a1b",
    "from_plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
    "to_plan_id": "8b3e0d5f-2a4c-4f6b-8c7d-1e2f3a4b5c6d",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "8b3e0d5f-2a4c-4f6b-8c7d-1e2f3a4b5c6d",
      "plan_code": "pro_monthly",
      "plan_version": 2,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

### subscription.price_change_canceled

The price change no longer applies to this subscriber. `reason` says why.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "subscription.price_change_canceled",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "price_change_id": "e5f6a7b8-2c3d-4e4f-8a5b-6c7d8e9f0a1b",
    "reason": "merchant_canceled",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active",
      "plan_id": "7a2d9c4e-1f3b-4e5a-9b6c-0d1e2f3a4b5c",
      "plan_code": "pro_monthly",
      "plan_version": 1,
      "quantity": 5,
      "currency": "USD",
      "current_period_start": "2026-11-01T00:00:00.000Z",
      "current_period_end": "2026-12-01T00:00:00.000Z",
      "cancel_at_period_end": false,
      "pending_plan_id": null
    }
  }
}
```

## Invoices

### invoice.created

A draft invoice was created.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "invoice.created",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "status": "draft",
    "total_cents": "24500",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123"
  }
}
```

### invoice.finalized

A draft invoice was finalized and can now be paid.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "invoice.finalized",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "from": "draft",
    "to": "finalized",
    "reason": null,
    "invoice_number": "INV-2026-00042",
    "total_cents": "24500",
    "currency": "USD",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "metadata": {},
    "amount_paid_cents": "0",
    "collection_method": "charge_automatically",
    "due_date": null
  }
}
```

### invoice.paid

An invoice was paid in full. Grant or extend access on this event.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "invoice.paid",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "from": "finalized",
    "to": "paid",
    "reason": null,
    "invoice_number": "INV-2026-00042",
    "total_cents": "24500",
    "currency": "USD",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "metadata": {},
    "amount_paid_cents": "24500",
    "collection_method": "charge_automatically",
    "due_date": null
  }
}
```

### invoice.payment_failed

A payment attempt on an invoice failed.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "invoice.payment_failed",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "attempt_id": "f6a7b8c9-3d4e-4f5a-9b6c-7d8e9f0a1b2c",
    "attempt_no": 1,
    "decline_code": "insufficient_funds",
    "decline_class": "retry_schedule",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123"
  }
}
```

### invoice.voided

An invoice was voided. `to` is the invoice status, `void`.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "invoice.voided",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "from": "finalized",
    "to": "void",
    "reason": "issued in error",
    "invoice_number": "INV-2026-00042",
    "total_cents": "24500",
    "currency": "USD",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription_id": null,
    "metadata": {},
    "amount_paid_cents": "0",
    "collection_method": "send_invoice",
    "due_date": "2026-12-15"
  }
}
```

### invoice.uncollectible

An invoice was written off as uncollectible.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "invoice.uncollectible",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "from": "finalized",
    "to": "uncollectible",
    "reason": "dunning_exhausted",
    "invoice_number": "INV-2026-00042",
    "total_cents": "24500",
    "currency": "USD",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "metadata": {},
    "amount_paid_cents": "0",
    "collection_method": "charge_automatically",
    "due_date": null
  }
}
```

### credit_note.issued

A credit note was issued against an invoice, to the customer's balance or as a refund.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "credit_note.issued",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "credit_note_id": "c3d4e5f6-0a1b-4c2d-8e3f-4a5b6c7d8e9f",
    "number": "CN-2026-00003",
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "amount_cents": "1500",
    "currency": "USD",
    "credit_to": "balance",
    "reason": "service outage",
    "customer_external_id": "ws_123"
  }
}
```

## Payments

### payment.succeeded

A payment settled an invoice. Sent once per payment, including a bank transfer you record.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "payment.succeeded",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "amount_cents": "24500",
    "currency": "USD",
    "method": "card",
    "reference": "pi_3ExampleOnly",
    "payment_attempt_id": "f6a7b8c9-3d4e-4f5a-9b6c-7d8e9f0a1b2c"
  }
}
```

### payment.refunded

The payment provider confirmed a refund.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "payment.refunded",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "refund_id": "a7b8c9d0-4e5f-4a6b-8c7d-8e9f0a1b2c3d",
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "gateway_refund_id": "re_3ExampleOnly",
    "amount_cents": "24500",
    "currency": "USD",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123"
  }
}
```

### checkout.session.completed

A payer finished a hosted checkout. Here `data.mode` is the session kind (`subscription` or `setup`), not test or live.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "checkout.session.completed",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "checkout_session_id": "b8c9d0e1-5f6a-4b7c-9d8e-9f0a1b2c3d4e",
    "mode": "subscription",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "amount_due_cents": "24500",
    "currency": "USD",
    "metadata": {},
    "customer_external_id": "ws_123"
  }
}
```

### payment_method.attached

A payment method was saved for a customer.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "payment_method.attached",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "payment_method_id": "c9d0e1f2-6a7b-4c8d-8e3f-0a1b2c3d4e5f",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "gateway_pm_id": "pm_1ExampleOnly",
    "gateway": "stripe",
    "is_default": true,
    "brand": "visa",
    "last4": "4242",
    "customer_external_id": "ws_123"
  }
}
```

### dunning.retry.scheduled

A failed payment will be retried at `scheduled_at`.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "dunning.retry.scheduled",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "attempt_id": "f6a7b8c9-3d4e-4f5a-9b6c-7d8e9f0a1b2c",
    "attempt_no": 1,
    "scheduled_at": "2026-11-21T09:30:00.000Z",
    "decline_class": "retry_schedule",
    "decline_code": "insufficient_funds",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123"
  }
}
```

### dunning.campaign.exhausted

Retries are over for this invoice. `final_action` says what happened to the subscription.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "dunning.campaign.exhausted",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "invoice_id": "9f8e7d6c-5b4a-4c3d-a2b1-0c9d8e7f6a5b",
    "attempt_id": "f6a7b8c9-3d4e-4f5a-9b6c-7d8e9f0a1b2c",
    "subscription_id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
    "reason": "dunning_exhausted",
    "final_action": "cancel",
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123"
  }
}
```

## Customers

### customer.created

A customer was created.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "customer.created",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "email": "billing@example.com",
    "external_id": "ws_123",
    "customer_external_id": "ws_123"
  }
}
```

### customer.updated

A customer's own fields changed. `changed` lists the field names, not the values.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "customer.updated",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123",
    "changed": [
      "email",
      "tax_id"
    ]
  }
}
```

### customer.balance_updated

An entry was added to the customer's balance. A negative balance is credit.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "customer.balance_updated",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "currency": "USD",
    "amount_cents": "-1500",
    "balance_cents": "-1500",
    "source_type": "credit_note",
    "source_id": "c3d4e5f6-0a1b-4c2d-8e3f-4a5b6c7d8e9f",
    "balance_transaction_id": "d4e5f6a7-1b2c-4d3e-9f4a-5b6c7d8e9f0a",
    "customer_external_id": "ws_123"
  }
}
```

## Entitlements

### entitlements.updated

What a customer may use changed. The payload is the full entitlement snapshot; `version` only increases.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "entitlements.updated",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "customer": {
      "id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
      "externalId": "ws_123"
    },
    "plan": "pro_monthly",
    "status": "active",
    "subscription": {
      "id": "5e1c7a90-2b4d-4f6a-8c3e-9d0f1a2b3c4d",
      "status": "active"
    },
    "seats": {
      "purchased": 5
    },
    "periodEnd": "2026-12-01T00:00:00Z",
    "features": {
      "api.access": true
    },
    "limits": {
      "envelopes.monthly": 500,
      "projects": null
    },
    "credits": {
      "ai": {
        "granted": 1000,
        "used": 120,
        "remaining": 880
      }
    },
    "usage": {
      "envelope.sent": {
        "used": 120,
        "included": 500,
        "overage": 0
      }
    },
    "version": 7,
    "customer_id": "0b8f6c1e-3d2a-4a57-9c41-7e5d2f8a1b90",
    "customer_external_id": "ws_123"
  }
}
```

## Keys

### api_key.expiring

One of your workspace's API keys expires in 7 days. Sent once per key. Roll the key before then; the secret is never in the event, so recognise the key by key_prefix and key_hint. It is about your key, not a customer, so customer_id and customer_external_id are null.

```json
{
  "id": "6f1d2c3b-4a59-4e68-9f70-8a1b2c3d4e5f",
  "type": "api_key.expiring",
  "created": "2026-11-21T03:14:15.926Z",
  "api_version": "2026-07-01",
  "mode": "live",
  "data": {
    "api_key_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
    "name": "Production server",
    "key_type": "developer",
    "key_prefix": "gpy_",
    "key_hint": "x7Qa",
    "expires_at": "2026-12-01T09:30:00.000Z",
    "days_remaining": 7,
    "customer_id": null,
    "customer_external_id": null
  }
}
```

## Coming

> **Not released yet.** Planned for Phase 4 of the release; confirm before relying on it.
>
>
> One event joins the catalogue with leak detection: `api_key.exposed`.
>

## In the SDK

`MINT_EVENT_TYPES` is the same list at runtime, and `MintEvent` is its type. The verified event also has `timestamp`, the Unix seconds from the signature header.
