# Webhook events reference

> Every webhook event Nexpay sends, when it fires, and what the payload contains.

This is the list of events Nexpay can send to a [webhook endpoint](/docs/webhooks.md). You choose which ones each endpoint receives when you add it.

---

## Event naming

Event names follow the pattern `resource.action`:

- `create` — a new object was created.
- `update` — an existing object changed.

The `data` of every event is the object in the same shape the [v2 API](https://v2-spec.nexpay.com.au) returns, so you can reuse the types you already have for API responses.

---

## Available events

| Event | Fires when | Status |
| --- | --- | --- |
| `paymentIntents.create` | A payment intent is created. | Available |
| `paymentIntents.update` | A payment intent changes, for example when its `status` moves on. | Coming soon. You can subscribe now, and deliveries start once it's released. |

---

## `paymentIntents.create`

Sent when a payment intent is created in your account, from any of these:

- The [API](/docs/guides/payment-intents-manual.md), using an API key or a dashboard session.
- The Nexpay Dashboard, including creating a [payment link](/docs/guides/payment-links.md).
- An AI assistant connected through the [MCP server](/docs/mcp-server.md), once you approve the payment.
- A reissue of an earlier payment.

It's **not** sent for the submission created when a payer completes a reusable payment link. You get one event when the link is created, not one per payer.

A payment intent is usually created as a `draft`, so this event is the starting point. Its later status changes will come through `paymentIntents.update`.

### Example

```json
{
  "event": "paymentIntents.create",
  "tenantId": "51",
  "messageId": "22583937982654680",
  "version": "v2",
  "data": {
    "id": "6af4ece9e1b0571e8f75b918",
    "status": "draft",
    "useCase": "education_provider_tuition",
    "deliveryMode": "reusable_payment_link",
    "name": "Term 1 tuition link",
    "publicLinkId": "96adf2e5-48e2-4ecb-a468-382c7087d3dd",
    "amountMode": "payer_fixed",
    "payer": {
      "role": "unknown_link_payer"
    },
    "subject": {
      "role": "student",
      "partyId": "6a1673d551c558203a69c67a",
      "details": {
        "firstName": "Alex",
        "lastName": "Taylor",
        "email": "alex.taylor@example.com"
      }
    },
    "recipients": [
      {
        "role": "public_payee",
        "connectorPayeeId": 51,
        "order": 1,
        "splitRole": "principal_provider_amount",
        "amount": {
          "payerAmount": "10",
          "currency": "AUD"
        },
        "reference": "STU-12345",
        "purposeProofDocumentId": "24988bc2-e2e4-45af-ae3c-fad4a7045dea",
        "snapshot": {
          "name": "Example University",
          "countryCode": "AU",
          "currencyCode": "AUD",
          "isIndividual": false
        },
        "recipientDrift": {
          "changed": false,
          "fields": []
        }
      }
    ],
    "instructions": {
      "manualPayment": {
        "purpose": "undergraduate"
      },
      "paymentLink": {
        "reference": "STU-12345",
        "lockedFields": ["reference", "student_details"]
      }
    },
    "executions": [],
    "createdAt": "2026-11-11T22:32:09.633Z",
    "updatedAt": "2026-11-11T22:32:09.633Z"
  }
}
```

### Key fields

| Field | Description |
| --- | --- |
| `data.id` | The payment intent's id. Use it with `GET /v2/payment-intents/{id}` to fetch the latest state. |
| `data.status` | Where the payment intent is in its lifecycle. See [Status lifecycle](/docs/status-lifecycle.md). |
| `data.useCase`, `data.deliveryMode`, `data.amountMode` | What kind of payment it is and how it's collected — for example, a reusable payment link with a fixed amount. |
| `data.payer`, `data.subject` | Who pays and who the payment is for, such as the student. See [Parties](/docs/guides/parties.md). |
| `data.recipients` | Who receives the money, how much, and the reference on their bank statement. |

Fields that don't apply to a payment intent are left out, so check that a field exists before you read it. The [API reference](https://v2-spec.nexpay.com.au/#post-/v2/payment-intents) describes every field.
