Webhooks

Webhook events reference

This is the list of events Nexpay can send to a webhook endpoint. 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 returns, so you can reuse the types you already have for API responses.


Available events

EventFires whenStatus
paymentIntents.createA payment intent is created.Available
paymentIntents.updateA 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, using an API key or a dashboard session.
  • The Nexpay Dashboard, including creating a payment link.
  • An AI assistant connected through the MCP server, 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

{
  "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

FieldDescription
data.idThe payment intent's id. Use it with GET /v2/payment-intents/{id} to fetch the latest state.
data.statusWhere the payment intent is in its lifecycle. See Status lifecycle.
data.useCase, data.deliveryMode, data.amountModeWhat kind of payment it is and how it's collected — for example, a reusable payment link with a fixed amount.
data.payer, data.subjectWho pays and who the payment is for, such as the student. See Parties.
data.recipientsWho 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 describes every field.

Previous
Webhooks