Novatti PayID and PayTo API: webhook events reference
PayTo/PayID Webhook Events
Everything Novatti sends to the endpoint you registered: the two envelope shapes, the delivery headers, how to verify a signature, all 30 event types, and every field of every payload.
Contents
- Overview
- Quick start
- Your endpoint's contract
- Delivery headers
- Verifying a delivery
- Payload shapes and matching
- Event catalogue
- Event journeys
- Event reference
- Field reference
- Retry, replay and pausing
- Testing and troubleshooting
- Integration checklist
1. Overview
Novatti delivers PayID and PayTo events to an HTTPS endpoint you register. This document covers the deliveries: what arrives, how to trust it, and what each event means.
The endpoints you call to register and maintain a subscription are not here. They live on the Novatti PayID & PayTo API, under the Webhook Management tag.
Four things are worth knowing before you read further.
- You need an OAuth2 token endpoint of your own. Novatti authenticates to your webhook endpoint with a bearer token it fetches from a
tokenUrlyou supply, using client credentials you supply. Registration is rejected without them, so this is infrastructure to build before you write a handler. - Two envelope shapes arrive at the same endpoint. PayID and PayID payment events come as an array with the event type on
event.type. PayTo events come as a single object with the event type ondata.type. Route on the type field, not on the url you registered. - 12 of the 30 events are always sent. Novatti delivers them whether or not your subscription selects them, so handle them or ignore them explicitly.
- Delivery is at-least-once. The same event can arrive twice, and a replay you request arrives carrying the identifier of the delivery it repeats. Deduplicate on what you have already processed, not on what you have already seen. See Your endpoint's contract.
2. Quick start
| Step | Do this |
|---|---|
| 1 | Stand up two HTTPS endpoints: the webhook endpoint that accepts POST with Content-Type: application/json and answers 200 with exactly {"message":"Success"}, and an OAuth2 client credentials token endpoint Novatti fetches an access token from. Both must be publicly resolvable. |
| 2 | Register with POST /register-webhook on the Novatti PayID & PayTo API. Keep the signingSecret from the response: it is returned once, on registration and on rotation. |
| 3 | Verify X-Novatti-Signature on every delivery before you read the body. See Verifying a delivery. |
| 4 | Route on the type field: event.type in the array envelope, data.type in the object envelope. |
| 5 | Match the event to your own record. See Matching an event to your records. |
| 6 | Skip anything you have already processed, keyed on X-Notification-Id and the merchant it is for. |
| 7 | Answer 200 first, then do the slow work. |
| 8 | Find a missed delivery with GET /query-webhook-events, then replay it with POST /webhook-replays using notificationId and subscriptionId from that row. |
3. Your endpoint's contract
| Rule | Why it matters |
|---|---|
| Run an OAuth2 client credentials token endpoint. | Novatti fetches a token from your tokenUrl, caches it until it expires, and sends it as Authorization: Bearer on every delivery. A token endpoint that refuses Novatti stops deliveries. What registering one requires is on the Novatti PayID & PayTo API. |
| Serve both urls over absolute HTTPS on a public host. | A loopback, private, link-local or cloud metadata host is rejected on registration, so localhost cannot be tested against directly. url and tokenUrl may sit on different hosts. |
Answer 200 with exactly {"message":"Success"}. | A 200 carrying any other body is recorded as a permanent failure and is never retried, because the same answer would come back. The delivery is then lost until you replay it. The field is described under Your acknowledgement. |
| Answer before you do slow work. | The whole retry sequence finishes inside about two minutes. An endpoint that posts a ledger entry before answering will time out under load. |
| Skip what you have processed, not what you have seen. | Delivery is at-least-once, so a retry repeats the identifier of the attempt that timed out. A replay you request also repeats it. Record the identifier once the work has succeeded, so a retry of a delivery you dropped still gets through. |
Key that record on X-Notification-Id and the merchant. | One provider payload holding rows for two merchants produces two deliveries carrying the same X-Notification-Id. An endpoint serving several merchants behind one url that keys on the identifier alone discards the second merchant's event. |
| Accept event types you did not select. | The 12 always-sent events arrive regardless, and new types are added over time. Ignore an unknown type rather than failing on it. |
| Accept fields you do not know. | Payloads are forwarded from the provider with keys recased to camel case. New keys can appear without a version change. |
| Accept both envelope shapes on one endpoint. | One registered url receives array and object deliveries alike. |
| Read state from the payload, not from the event name. | A replay carries the state as it was when the event was raised, so payidDetails.state is the truth, not the event type. |
4. Delivery headers
| Header | Value | What it is for |
|---|---|---|
Authorization | Bearer <access_token> | Proof the request came from Novatti. The token is fetched from the tokenUrl on your subscription using the client credentials you registered, and refreshed when it expires. Sent on every delivery. |
X-Novatti-Signature | 1786528445.9f2b1c4e8a7d6... | <unixSeconds>.<hexHmac>. Recompute it with your signing secret and compare in constant time. The timestamp sits inside the signed string, so you can reject an old request and stop replays. |
X-Notification-Id | 0191a335-011f-f0d8-b049-d54df68475f6 | The delivery identifier, and the value POST /webhook-replays takes to send it again. In the object envelope it is the provider's own data.id. In the array envelope there is no data.id, so it is the provider's request identifier, and one provider payload holding rows for two merchants produces two deliveries carrying the same value. |
Content-Type | application/json | Always. |
No header names the merchant or the subscription the delivery belongs to. Everything you match on is in the body. See Matching an event to your records.
5. Verifying a delivery
signingSecret is an HMAC key. It never travels on the wire and is returned only once, on registration and on rotation. If you lose it, rotate it with PATCH /webhook-subscriptions/{subscriptionId} and rotateSecret: true. Accept both the old and the new secret while you roll the new one out, then drop the old one.
- Split
X-Novatti-Signatureon the first.intotimestampandsignature. Build
timestamp + "." + rawRequestBody, using the raw bytes as received. Do notreserialise the JSON first: key order and whitespace are part of what was signed.
- Compute
HMAC-SHA256(signingSecret, thatString)and hex encode it. - Compare with
signatureusing a constant-time comparison. Reject the delivery if
timestampis older than your tolerance. Five minutes is areasonable default.
import hashlib, hmac, time
def verify(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
timestamp, signature = header.split('.', 1)
if abs(time.time() - int(timestamp)) > tolerance:
return False
expected = hmac.new(
secret.encode(),
timestamp.encode() + b'.' + raw_body,
hashlib.sha256,
).hexdigest()
return hmac.compare_digest(expected, signature)
Test vector
Run your implementation against this before you take live traffic. The timestamp is fixed, so pass a tolerance wide enough to accept it.
| Input | Value |
|---|---|
| Signing secret | whsec_7d1f4a92c05b48e3ab6f2c81d9e34057 |
| Timestamp | 1786528445 |
| Raw body | the 362 bytes below, with no trailing newline |
{"data":{"id":"0191a335-011f-f0d8-b049-d54df68475f6","body":null,"type":"payto_payment.settled","publishedAt":"2026-07-08T10:11:12.555+10:00","resourceUid":"b0ddcc18-1b4a-4e40-a269-64fb6812303f","resourceType":"payto_payment","resourceMetadata":{}},"links":{"resource":"https://api.sandbox.zeptopayments.com/payto/payments/b0ddcc18-1b4a-4e40-a269-64fb6812303f"}}The header that body arrives with is
X-Novatti-Signature: 1786528445.2889c39b621eccbd1509bd73efd35fad6697755eefcea2b68bde4a6021edf8ce
6. Payload shapes and matching
| Envelope | Used by | Type field | Described by |
|---|---|---|---|
| Array | PayID events, PayID payment events, PayOut events | event.type | Array envelope, Contact row, Transaction row |
| Object | PayTo agreement, payment and refund events | data.type | Object envelope |
Array envelope
data holds one row per record of yours the event touched. The array is kept even when a single row survives trimming, so one parser handles every delivery. Rows owned by another merchant are removed before delivery, so you never see another merchant's data. Your own key is in metadata on the row, not in the envelope.
A full contact.payid_activated delivery:
{
"data": [
{
"id": "8b651f1e-a770-4b45-a33b-2f4a1a15fcb9",
"name": "John Doe",
"email": "john@novatti.com",
"type": "anyone",
"metadata": {
"merchant_id": "MRC7KQ92XZP4L8N"
},
"bankAccount": {
"id": "55afddde-4296-4daf-8e49-7ba481ef9608",
"accountNumber": "1408281",
"branchCode": "802919",
"bankName": "Zepto Float Account",
"state": "active",
"blocks": {
"debitsBlocked": false,
"creditsBlocked": false
}
},
"anyoneAccount": {
"id": "77be6ecc-5fa7-454b-86d6-02a5f147878d"
},
"payidDetails": {
"aliasValue": "merchant_payid_123@novatti.com",
"aliasType": "email",
"aliasName": "John Doe",
"state": "active"
}
}
],
"event": {
"at": "2026-07-27T01:39:52Z",
"who": {
"accountId": "361d5e9a-d0fa-44e4-ba6e-9847bdec48da",
"accountType": "Account",
"bankAccountId": "6d14c331-a683-420c-bf1f-3e91ede198c1",
"bankAccountType": "BankAccount"
},
"type": "contact.payid_activated"
}
}
Object envelope
One delivery carries one event. data.body holds the detail specific to the event type and is null where the type carries none, as on a plain settlement. links.resource names the provider, not Novatti: calling it needs provider credentials you do not hold, so read the resource through the Novatti API instead.
A full payto_agreement.activated delivery:
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475f6",
"body": {
"mmsAgreementId": "cb850be143bb1639b00248ca2ddecb14"
},
"type": "payto_agreement.activated",
"publishedAt": "2024-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333e8",
"resourceType": "payto_agreement",
"resourceMetadata": {}
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333e8"
}
}
Categories
Only PayID, PayID payment and PayOut events carry category on the row. It splits one event type into sub-types: credit.cleared can be category payout or refund. When you subscribe, omit category to receive every sub-type, or set it to receive only one.
Matching an event to your records
A delivery tells you nothing in its headers about whose record it concerns. Match on the body, using the field for that group.
| Group | Match on | What it is |
|---|---|---|
| PayID | data[].payidDetails.aliasValue | The full PayID alias, as returned when you created it and as a payer types it. Compare case insensitively. |
| PayID | data[].id | Provider identity of the contact holding the PayID. Stable across the PayID's lifecycle, so it is the steadier key of the two. |
| PayID | data[].metadata.merchant_id | Which of your merchants the row belongs to. |
| PayID payment | data[].metadata | Your own keys, echoed back. merchant_txn_id is normally what ties the row to your record. |
| PayID payment | data[].ref | Provider identity of the transaction. Quote it when raising a query with the provider. |
| PayOut | data[].parentRef | Provider reference of the payment request the payer's leg belongs to. |
| PayOut | data[].ref | Provider identity of the payer-side transaction row itself. |
| PayTo agreement | data.resourceUid | The agreementId returned by POST /payto/agreements. |
| PayTo payment | data.resourceUid | The payment the event is about. data.resourceType is payto_payment. |
| PayTo refund | data.resourceUid | The refund the event is about, not the payment it refunds. data.resourceType is payto_refund. |
| Any PayTo event | data.resourceMetadata | Metadata held against the resource, echoed exactly. Empty or absent where none was supplied. |
Two consequences worth designing for.
- One url can serve several of your merchants. A url is unique per merchant, not across merchants, so a partner may register the same url under two merchant identifiers. In the array envelope,
data[].metadata.merchant_idon the row says which merchant the delivery is for. A PayTo delivery carries no merchant identifier of its own, so register a separate url per merchant if you need the path to tell you. data.resourceUidis not the event identifier.data.idis the event,resourceUidis the thing it happened to, and several events over a resource's life carry the sameresourceUid.
7. Event catalogue
30 event types. The 12 marked Yes under Always sent are delivered whether or not your subscription selects them. What each one means is in Event reference.
| Event | Group | Always sent |
|---|---|---|
contact.payid_activated | PayID | Yes |
contact.payid_registered | PayID | No |
contact.payid_disabled | PayID | Yes |
contact.payid_deregistered | PayID | Yes |
contact.payid_failed | PayID | No |
credit.cleared | PayID payment | Yes |
debtor_credit.cleared | PayOut | Yes |
debtor_credit.returned | PayOut | No |
payto_agreement.activated | PayTo agreement | Yes |
payto_agreement.declined | PayTo agreement | No |
payto_agreement.expired | PayTo agreement | No |
payto_agreement.failed | PayTo agreement | No |
payto_agreement.cancelled | PayTo agreement | Yes |
payto_agreement.cancellation_failed | PayTo agreement | No |
payto_agreement.suspended | PayTo agreement | No |
payto_agreement.suspension_failed | PayTo agreement | No |
payto_agreement.amended | PayTo agreement | Yes |
payto_agreement.amendment_declined | PayTo agreement | No |
payto_agreement.amendment_expired | PayTo agreement | No |
payto_agreement.amendment_failed | PayTo agreement | No |
payto_agreement.amendment_recalled | PayTo agreement | No |
payto_agreement.amendment_recall_failed | PayTo agreement | No |
payto_agreement.reactivated | PayTo agreement | Yes |
payto_agreement.reactivation_failed | PayTo agreement | No |
payto_payment.settled | PayTo payment | Yes |
payto_payment.under_investigation | PayTo payment | Yes |
payto_payment.failed | PayTo payment | No |
payto_payment.pending | PayTo payment | No |
payto_refund.processed | PayTo refund | Yes |
payto_refund.failed | PayTo refund | No |
This table is the catalogue. Call GET /webhook-events on the Novatti PayID & PayTo API only if you want it as data for your own tooling: the response carries the same groups, each event with its mandatory flag and any category splits.
8. Event journeys
What a single flow produces, and where it stops. Terminal means nothing further arrives for that resource.
Registering a PayID
contact.payid_registered (only if selected), then contact.payid_activated. Registration alone does not make the PayID payable, so publish the alias to your customer on activation, not before. contact.payid_failed is terminal and means no PayID exists. Later in the PayID's life, contact.payid_disabled can be reversed with POST /payids/{payID}/reactivate, while contact.payid_deregistered is terminal.
Receiving a PayID payment
credit.cleared is the event to reconcile on: funds have cleared into the account. debtor_credit.cleared reports the payer leg of that same movement. It is always sent, so take it only if you track both legs. debtor_credit.returned arrives only if you select it, and means the payer's bank returned the credit instead of clearing it. Read data[].failure for why. Neither event asks you to act. cleared means the money has already moved. returned means it never arrived.
Setting up a PayTo agreement
One of four outcomes follows creation: payto_agreement.activated (you can submit payments), payto_agreement.declined, payto_agreement.expired, or payto_agreement.failed. The last three are terminal for that agreement. A new agreement is the only way forward.
Running a PayTo agreement
After activation the agreement can be suspended and reactivated any number of times (payto_agreement.suspended, payto_agreement.reactivated), and amended (payto_agreement.amended). Each request Novatti sends on your behalf has a failure twin: cancellation_failed, suspension_failed, reactivation_failed, amendment_failed and amendment_recall_failed all mean the agreement is unchanged, not broken. An amendment the payer must answer ends in amended, amendment_declined or amendment_expired, unless you withdraw it first and receive amendment_recalled. payto_agreement.cancelled is terminal.
Taking a PayTo payment
payto_payment.pending (only if selected) says the payment was accepted. payto_payment.settled is the terminal success. payto_payment.failed is terminal for that payment, and body.failure.retryable says whether a fresh attempt is worth making. payto_payment.under_investigation is a waiting state, not an outcome: a settled or failed event follows it.
Refunding a PayTo payment
POST /payto/payments/{transactionId}/refund returns PENDING. The outcome arrives as payto_refund.processed or payto_refund.failed. Both are terminal.
On ordering
Do not assume events arrive in the order they were raised. Read the state carried in the payload, and treat an event that contradicts a later state you already hold as old news rather than as a change.
9. Event reference
One block per event type, grouped by envelope, collapsed by default. Expand one to see its full payload. Always sent means Novatti delivers it whether or not your subscription selects it, and that it cannot be removed from a selection. Only if selected means Novatti delivers it only when your subscription selects it. Each JSON block is a fragment, not a whole delivery: it shows only what distinguishes that event, and the rest of the envelope is identical for every event in the group, shown in full under Payload shapes and matching. Build test fixtures from the full payloads there, not from these fragments. Full field-level shapes are also in Field reference. Codes shown in reason/failure blocks are illustrative examples. The full list, grouped by cause, is at Zepto's PayTo reason codes reference.
9.1 PayID events
Array envelope, type on event.type, row is a Contact row.
contact.payid_activated (always sent): The PayID is live and can receive payments.
What to do: Give the PayID to your customer. Store data[].payidDetails.aliasValue against your own record.
{
"data": [
{
"id": "8b651f1e-a770-4b45-a33b-2f4a1a15fcb9",
"type": "anyone",
"payidDetails": {
"aliasValue": "merchant_payid_123@novatti.com",
"aliasType": "email",
"aliasName": "John Doe",
"state": "active"
}
}
],
"event": {
"type": "contact.payid_activated"
}
}
contact.payid_registered (only if selected): The provider accepted the registration. Not yet payable.
What to do: Wait for contact.payid_activated before you publish the PayID. Registration alone does not make it payable.
{
"data": [
{
"id": "8b651f1e-a770-4b45-a33b-2f4a1a15fcb9",
"type": "anyone",
"payidDetails": {
"aliasValue": "merchant_payid_123@novatti.com",
"aliasType": "email",
"aliasName": "John Doe",
"state": "active"
}
}
],
"event": {
"type": "contact.payid_registered"
}
}
contact.payid_disabled (always sent): The PayID was disabled and will no longer receive payments.
What to do: Stop showing the PayID to payers. Call POST /payids/{payID}/reactivate if this was not intended.
{
"data": [
{
"id": "8b651f1e-a770-4b45-a33b-2f4a1a15fcb9",
"ref": "CNT.13qew",
"type": "anyone",
"payidDetails": {
"state": "disable",
"aliasName": "John Doe",
"aliasType": "email",
"aliasValue": "merchant_payid_123@novatti.com"
}
}
],
"event": {
"type": "contact.payid_disabled"
}
}
contact.payid_deregistered (always sent): The PayID was permanently removed. It cannot be reactivated.
What to do: Remove the PayID from your records. Create a new one if the customer still needs to be paid.
{
"data": [
{
"id": "8b651f1e-a770-4b45-a33b-2f4a1a15fcb9",
"ref": "CNT.13qex",
"type": "anyone",
"payidDetails": {
"state": "deregister",
"aliasName": "John Doe",
"aliasType": "email",
"aliasValue": "merchant_payid_123@novatti.com"
}
}
],
"event": {
"type": "contact.payid_deregistered"
}
}
contact.payid_failed (only if selected): Registration did not succeed. No PayID exists.
What to do: Read data[].payidDetails for the alias that was attempted, correct it, and register again.
{
"data": [
{
"id": "8b651f1e-a770-4b45-a33b-2f4a1a15fcb9",
"payidDetails": {
"aliasValue": "merchant_payid_123@novatti.com",
"aliasType": "email",
"aliasName": "John Doe",
"state": "fail"
}
}
],
"event": {
"type": "contact.payid_failed"
}
}
9.2 PayID payment events
Array envelope, type on event.type, row is a Transaction row.
credit.cleared (always sent): Funds sent to one of your PayIDs have cleared into the account. Reconcile on this event.
What to do: Reconcile the payment. Match on your own key in data[].metadata, and read amount as dollars.
{
"data": [
{
"ref": "C.24hfh",
"type": "credit",
"amount": 10.24,
"status": "cleared",
"category": "payout",
"clearedAt": "2024-04-27T03:20:44Z"
}
],
"event": {
"type": "credit.cleared"
}
}
9.3 PayOut events
Array envelope, type on event.type, row is a Transaction row. This is the payer's own leg of a PayID payment, not a merchant-initiated payout.
debtor_credit.cleared (always sent): The payer side of that same movement cleared. Reconcile on credit.cleared, not on this.
What to do: Ignore it for reconciliation unless you track both legs. It reports the same movement as credit.cleared.
{
"data": [
{
"ref": "C.24hfh",
"type": "debtor_credit",
"amount": 10.24,
"status": "cleared",
"category": "payout",
"clearedAt": "2024-04-27T03:20:44Z"
}
],
"event": {
"type": "debtor_credit.cleared"
}
}
debtor_credit.returned (only if selected): The payer's bank returned the credit instead of clearing it, for example an invalid or NPP-disabled BSB. No funds reached the account.
What to do: Read data[].failure.code for why the bank returned it. No reconciliation action is needed since the funds never arrived. Use the failure detail if you need to tell the payer what to fix.
{
"data": [
{
"ref": "C.bdhuv",
"type": "debtor_credit",
"amount": 10.24,
"status": "returned",
"category": "payout",
"parentRef": "PB.14wfh",
"failure": {
"code": "E302",
"title": "BSB Not NPP Enabled",
"detail": "The target BSB is not NPP enabled."
}
}
],
"event": {
"type": "debtor_credit.returned"
}
}
9.4 PayTo agreement events
Object envelope, type on data.type. Body fields point into event detail and reason. Every example below shares one agreement lifecycle (resourceUid: d8984697-5e1e-4262-a5ce-1d2035a333f2) so you can read the group as a story rather than 16 unrelated fragments.
payto_agreement.activated (always sent): Payer authorised the agreement. Payments can be submitted from now on.
What to do: Mark it usable, submit payments with POST /payto/payments.
Body fields: mmsAgreementId
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a1",
"body": {
"mmsAgreementId": "cb850be143bb1639b00248ca2ddecb14"
},
"type": "payto_agreement.activated",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.declined (only if selected): Payer refused the agreement.
What to do: Do not retry it. Get different terms, create a new agreement.
Body fields: mmsAgreementId, causedBy (always debtor) and reason. All three are required.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a2",
"body": {
"mmsAgreementId": "cb850be143bb1639b00248ca2ddecb14",
"causedBy": "debtor",
"reason": {
"code": "MD16",
"title": "Requested By Customer",
"detail": "The payer's bank declined the agreement at the payer's request."
}
},
"type": "payto_agreement.declined",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.expired (only if selected): Payer left it unanswered until it lapsed.
What to do: Create a new agreement if the customer still wants to pay. An expired one cannot be revived.
Body fields: mmsAgreementId only. No causedBy, no reason.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a3",
"body": {
"mmsAgreementId": "cb850be143bb1639b00248ca2ddecb14"
},
"type": "payto_agreement.expired",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.failed (only if selected): Creating the agreement did not succeed.
What to do: Read body.reason.code, correct the request, and create the agreement again.
Body fields: reason. This is the one exception in the group: the agreement itself was never created, so the key is reason, not failure.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a4",
"body": {
"reason": {
"code": "MMS.API.9104",
"title": "Agreement Status Invalid",
"detail": "The requested operation cannot be performed for the current status of the agreement."
}
},
"type": "payto_agreement.failed",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.cancelled (always sent): Agreement is over. No further payments can be submitted.
What to do: Stop submitting payments. Read body.causedBy for who ended it.
Body fields: mmsAgreementId, causedBy, reason (reason.narrative carries any free text the initiating side supplied).
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a5",
"body": {
"mmsAgreementId": "cb850be143bb1639b00248ca2ddecb14",
"causedBy": "initiator",
"reason": {
"code": "MD17",
"title": "Requested By Initiating Party",
"detail": "Cancellation/amendment requested by the creditor",
"narrative": "Created in error"
}
},
"type": "payto_agreement.cancelled",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.cancellation_failed (only if selected): Cancellation did not take effect. Agreement is unchanged.
What to do: Still active. Read body.failure.code, decide whether to ask again.
Body fields: failure.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a6",
"body": {
"failure": {
"code": "UKNWN",
"title": "Unknown Error",
"detail": "An unexpected error occurred processing the cancellation."
}
},
"type": "payto_agreement.cancellation_failed",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.suspended (only if selected): Agreement paused. Payments refused while it stays so.
What to do: Hold payments until it reactivates. A payment submitted while suspended is refused.
Body fields: mmsAgreementId, plus causedBy and reason (with narrative) when the payer's bank triggered it rather than you.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a7",
"body": {
"mmsAgreementId": "cb850be143bb1639b00248ca2ddecb14",
"causedBy": "debtor",
"reason": {
"code": "MD17",
"title": "Requested By Initiating Party",
"detail": "Cancellation/amendment requested by the creditor",
"narrative": "Suspending agreement"
}
},
"type": "payto_agreement.suspended",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.suspension_failed (only if selected): Suspension did not take effect. Agreement is unchanged.
What to do: Still active and accepting payments. Read body.failure.code.
Body fields: failure.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a8",
"body": {
"failure": {
"code": "MMS.API.9104",
"title": "Agreement Status Invalid",
"detail": "The requested operation cannot be performed for the current status of the agreement."
}
},
"type": "payto_agreement.suspension_failed",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.amended (always sent): An amendment took effect. The changed fields are in body.changes.
What to do: Apply body.changes to your own copy of the terms before you submit the next payment.
Body fields: causedBy, changes (only the fields that changed). The attributes that can appear in changes are listed under changes.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475a9",
"body": {
"causedBy": "initiator",
"changes": {
"paymentTerms": {
"frequency": "weekly"
}
}
},
"type": "payto_agreement.amended",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.amendment_declined (only if selected): Payer refused the proposed amendment. Original terms stand.
What to do: Keep charging the original terms, or propose a different amendment.
Body fields: causedBy only, always debtor. No reason.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475aa",
"body": {
"causedBy": "debtor"
},
"type": "payto_agreement.amendment_declined",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.amendment_expired (only if selected): The payer left the proposed amendment unanswered until it lapsed.
What to do: Propose the amendment again if you still need it. The original terms stand.
Body fields: none. body is null.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475ab",
"body": null,
"type": "payto_agreement.amendment_expired",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.amendment_failed (only if selected): The amendment you proposed did not take effect.
What to do: Read body.failure.code, correct the amendment, and propose it again.
Body fields: failure.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475ac",
"body": {
"failure": {
"code": "MMS.API.9104",
"title": "Agreement Status Invalid",
"detail": "The requested operation cannot be performed for the current status of the agreement."
}
},
"type": "payto_agreement.amendment_failed",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.amendment_recalled (only if selected): A proposed amendment was withdrawn before the payer answered.
What to do: Nothing changed. Propose a new amendment when you are ready.
Body fields: none. body is null.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475ad",
"body": null,
"type": "payto_agreement.amendment_recalled",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.amendment_recall_failed (only if selected): The recall you asked for did not take effect. The amendment is still outstanding.
What to do: The amendment is still with the payer. Wait for them to answer it.
Body fields: failure.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475ae",
"body": {
"failure": {
"code": "MMS.API.9104",
"title": "Agreement Status Invalid",
"detail": "The requested operation cannot be performed for the current status of the agreement."
}
},
"type": "payto_agreement.amendment_recall_failed",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.reactivated (always sent): A suspended agreement was resumed. Payments are accepted again.
What to do: Resume submitting payments.
Body fields: causedBy only.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475af",
"body": {
"causedBy": "initiator"
},
"type": "payto_agreement.reactivated",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
payto_agreement.reactivation_failed (only if selected): The reactivation you asked for did not take effect. The agreement is still suspended.
What to do: The agreement stays suspended. Read body.failure.code before asking again.
Body fields: failure.
{
"data": {
"id": "0191a335-011f-f0d8-b049-d54df68475b0",
"body": {
"failure": {
"code": "MMS.API.9104",
"title": "Agreement Status Invalid",
"detail": "The requested operation cannot be performed for the current status of the agreement."
}
},
"type": "payto_agreement.reactivation_failed",
"publishedAt": "2026-08-30T22:14:05.599+10:00",
"resourceUid": "d8984697-5e1e-4262-a5ce-1d2035a333f2",
"resourceType": "payto_agreement"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/agreements/d8984697-5e1e-4262-a5ce-1d2035a333f2"
}
}
9.5 PayTo payment events
Object envelope, type on data.type.
payto_payment.settled (always sent): Funds cleared. This is the terminal success outcome for a PayTo payment.
What to do: Release the goods or service, and reconcile on data.resourceUid.
Body fields: none. body is null. Nothing beyond "this happened". Read the payment itself with GET /payto/payments/{transactionId}.
{
"data": {
"id": "0191bbf0-6e9d-10bb-34b3-0a90e2c01f80",
"body": null,
"type": "payto_payment.settled",
"publishedAt": "2026-09-04T17:29:42.045+10:00",
"resourceUid": "d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66",
"resourceType": "payto_payment"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/payments/d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66"
}
}
payto_payment.under_investigation (always sent): The payer's bank has not returned a final outcome yet. Wait for a later settled or failed event.
What to do: Do not release goods and do not retry. Wait for the settled or failed event that follows.
Body fields: none. body is null.
{
"data": {
"id": "0191bbf0-6e9d-10bb-34b3-0a90e2c01f81",
"body": null,
"type": "payto_payment.under_investigation",
"publishedAt": "2026-09-04T17:29:42.045+10:00",
"resourceUid": "d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66",
"resourceType": "payto_payment"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/payments/d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66"
}
}
payto_payment.failed (only if selected): The payment did not complete.
What to do: Read body.failure.retryable. Retry only when it is true.
Body fields: failure (with retryable). This is the only event in the whole catalogue where retryable appears.
{
"data": {
"id": "0192741e-318d-04d2-f85a-d93b327aecbf",
"body": {
"failure": {
"code": "AM04",
"title": "Insufficient Funds",
"detail": "The specified Payer Customer Account has insufficient funds",
"retryable": true
}
},
"type": "payto_payment.failed",
"publishedAt": "2026-09-04T17:29:42.045+10:00",
"resourceUid": "d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66",
"resourceType": "payto_payment"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/payments/d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66"
}
}
payto_payment.pending (only if selected): The payment was accepted and is waiting on an outcome.
What to do: Nothing yet. Wait for a terminal outcome.
Body fields: none. body is null.
{
"data": {
"id": "0191bbf0-6e9d-10bb-34b3-0a90e2c01f82",
"body": null,
"type": "payto_payment.pending",
"publishedAt": "2026-09-04T17:29:42.045+10:00",
"resourceUid": "d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66",
"resourceType": "payto_payment"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/payments/d8a7cc10-b40e-4f7d-ae38-cb5e569e8f66"
}
}
9.6 PayTo refund events
Object envelope, type on data.type.
payto_refund.processed (always sent): The refund completed.
What to do: Close the refund in your own records.
Body fields: none. body is null.
{
"data": {
"id": "0191d43f-c47b-d0b0-b9bf-375bd0c54535",
"body": null,
"type": "payto_refund.processed",
"publishedAt": "2026-09-09T10:47:14.555+10:00",
"resourceUid": "a443a21b-c41b-4311-a647-3791ae657396",
"resourceType": "payto_refund"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/refunds/a443a21b-c41b-4311-a647-3791ae657396"
}
}
payto_refund.failed (only if selected): The refund did not complete.
What to do: Read body.failure.code and decide whether to refund by another means.
Body fields: failure. No retryable on a refund failure, unlike a payment failure.
{
"data": {
"id": "0191d452-193e-0429-bbe9-52686827cf95",
"body": {
"failure": {
"code": "ZPREF07",
"title": "The provided fund source has insufficient funds",
"detail": "The provided fund source has insufficient funds to process this refund"
}
},
"type": "payto_refund.failed",
"publishedAt": "2026-09-09T11:07:15.902+10:00",
"resourceUid": "a443a21b-c41b-4311-a647-3791ae657396",
"resourceType": "payto_refund"
},
"links": {
"resource": "https://api.sandbox.zeptopayments.com/payto/refunds/a443a21b-c41b-4311-a647-3791ae657396"
}
}
10. Field reference
Every field of every payload. Nested fields are written with their path, so bankAccount.blocks.creditsBlocked is creditsBlocked inside blocks inside bankAccount.
One convention runs through the payloads: any field named metadata or resourceMetadata holds your own key values, echoed exactly as you wrote them. Novatti recases provider keys to camel case but never the keys inside those objects, because they are your reference and not ours to rename.
Array envelope
Used by every PayID and PayID payment event. The array is kept even when a single row survives trimming, so one parser handles every delivery.
| Field | Type | Description |
|---|---|---|
data | array of Contact row on PayID events, array of Transaction row on PayID payment events | One row per record of yours the event touched. A single provider payload can carry rows for several merchants. Rows owned by another merchant are removed before delivery, so a partner never sees another merchant's data. |
event | event metadata | Event metadata, forwarded as the provider sent it. |
event, the array envelope metadata
event, the array envelope metadataEvent metadata, forwarded as the provider sent it.
| Field | Type | Description |
|---|---|---|
at | string | When the provider raised the event. ISO 8601, UTC. This is not when Novatti delivered it, so a retry does not move it. |
who | object | The provider account the event was raised against. This is Novatti's float account at the provider, not your merchant identity: read metadata.merchant_id on the row for that. |
who.accountId | string | Provider identity of Novatti's account. |
who.accountType | string | Always Account. |
who.bankAccountId | string | Provider identity of the bank account under it. |
who.bankAccountType | string | Always BankAccount. |
type | string | The wire event type. Read this to route the delivery: in this envelope it is here, not on the row. |
Contact row
One PayID contact belonging to the receiving merchant.
| Field | Type | Description |
|---|---|---|
id | string | Provider identity of the contact holding this PayID. Stable across the PayID's lifecycle, so key your own record on it. |
ref | string | Provider's short human readable reference for the contact. Useful when raising a query with the provider. |
name | string | Name held against the contact. |
email | string | Email held against the contact. Not necessarily the PayID alias, even where both are emails. |
type | string | How the provider holds the contact. Novatti registers PayIDs under the pooled anyone model. |
metadata | object, free form | Your own keys, echoed back. merchant_id is what ties the row to your merchant. |
bankAccount | object | The account the PayID resolves to. Absent once the PayID no longer points at one, as on deregistration. |
bankAccount.id | string | Provider identity of the account. |
bankAccount.accountNumber | string | Account number funds land in. |
bankAccount.branchCode | string | BSB of that account. |
bankAccount.bankName | string | Name the provider holds for the account. |
bankAccount.state | string | Provider state of the account itself, separate from the PayID state below. |
bankAccount.blocks | object | Whether the provider is currently stopping money moving on the account. |
bankAccount.blocks.debitsBlocked | boolean | True while funds cannot leave the account. |
bankAccount.blocks.creditsBlocked | boolean | True while funds cannot reach the account, so a payer's PayID payment would be rejected. |
bankAccount.iavStatus | string | Account verification outcome, null where the provider did not run one. |
bankAccount.iavProvider | string | Who ran that verification, null where none ran. |
anyoneAccount | object | The pooled provider account the contact sits under. Present only where type is anyone. |
anyoneAccount.id | string | Provider identity of that pooled account. |
payidDetails | object | The alias itself. This is the part a payer sees and types. |
payidDetails.aliasValue | string | The PayID as a payer enters it. Case is the provider's. Match it case insensitively. |
payidDetails.aliasType | string | Which kind of alias the value is. |
payidDetails.aliasName | string | Name shown back to a payer confirming the PayID before they pay. |
payidDetails.state | string | Where the PayID now stands. Read this rather than inferring from the event type, because a replay carries the state as it was when the event was raised. |
Transaction row
One transaction belonging to the receiving merchant.
| Field | Type | Description |
|---|---|---|
ref | string | Provider identity of this transaction. Reconcile on it. |
type | string | Which side of the payment this row is. credit is money reaching the account. debtor_credit is the payer side of the same movement. |
amount | number | Amount in dollars (AUD major units). 10.24 is AUD 10.24. |
status | string | Transaction status at the moment the event was raised. cleared means funds settled. returned means the payer's bank sent the credit back (debtor_credit.returned only). |
bankRef | string | Provider reference for the bank leg. |
failure | object | Why a returned transaction did not settle. Present only on debtor_credit.returned. Holds code, title and detail, the same shape as reason and failure on PayTo events. |
category | string | Which meaning of the event type this row carries. Subscribe with the same value to receive only this one, or omit the category to receive every one. |
channels | array of string | Every rail the transaction has travelled, oldest first. |
channels[] | string | One payment rail the transaction used, for example direct_entry or npp. |
currentChannel | string | The rail it is on now. |
metadata | object, free form | Your own keys, echoed back. merchant_txn_id is normally what ties the row back to your own record. |
createdAt | string | When the provider created the transaction. |
maturesAt | string | When the funds were due to become available. |
clearedAt | string | When the funds actually cleared. |
statusChangedAt | string | When the status last moved. Equals clearedAt on a cleared event. |
parentRef | string | Provider reference of the payment request this transaction settles. |
partyName | string | Name of the other side of the payment. |
partyNickname | string | Provider nickname for that party. |
partyBankRef | string | Provider reference for that party's bank leg. |
partyContactId | string | Provider identity of that party as a contact. |
description | string | Remittance description that reached the statement. |
bankAccountId | string | Provider identity of the account the funds landed in. This is Novatti's float account, not yours. Absent on debtor_credit. |
Object envelope, PayTo events
Object envelope, used by every PayTo event. Unlike the array envelope it carries one event, and the event type sits on data.type rather than on event.type.
| Field | Type | Description |
|---|---|---|
data | object | The event. |
data.id | string | The provider's own identity for this event. It is also the X-Notification-Id value for this envelope shape. |
data.type | string | The wire event type. Read this to route the delivery. |
data.publishedAt | string | When the provider published the event. Carries an offset rather than UTC, so parse the offset rather than assuming Z. |
data.resourceUid | string | The agreement, payment or refund this event is about. Use it to look the resource up. It is not the event id. |
data.resourceType | string | Which kind of resource resourceUid names. |
data.body | event detail | Event specific detail. Null where the event type carries none, as on a plain settlement. Only the keys relevant to the event type are present. |
data.resourceMetadata | object, free form | Your own keys, echoed back. The provider defines it as the metadata supplied when the resource was created. Empty or absent where you supplied none. |
links | links | Provider urls for the resource. These name the provider, not Novatti, and calling them needs provider credentials you do not hold. Use the Novatti API to read the resource. |
data.body, the event detail
data.body, the event detailEvent specific detail. Null where the event type carries none, as on a plain settlement. Only the keys relevant to the event type are present.
| Field | Type | Description |
|---|---|---|
mmsAgreementId | string | The mandate identity in the NPP mandate service. Quote it when raising a mandate query with the payer's bank. |
causedBy | string | Which side caused the change. initiator is you or Novatti acting for you. debtor is the payer or their bank. |
reason | reason | Why the mandate ended this way. Present on declined and cancelled, where nothing failed but a party closed it. Not present on expired, which carries only mmsAgreementId. |
failure | reason | Why the operation Novatti asked for did not happen. Present on every event where an action against an existing agreement failed (cancellation_failed, suspension_failed, reactivation_failed, amendment_failed, amendment_recall_failed), and on payto_payment.failed and payto_refund.failed. payto_agreement.failed is the one exception: creating the agreement itself failed, so its body carries reason, not failure. retryable appears only on the payment failure. |
changes | changes | The agreement fields that were amended, with their new values. Present on payto_agreement.amended. Only the fields that changed are present. |
changes
changesThe agreement fields that were amended, with their new values. Present on payto_agreement.amended.
| Field | Type | Description |
|---|---|---|
description | string | The reason for the agreement, as narrative text. Length: 1-140. ASCII-printable characters only. |
validityEndDate | string (date) or null | End date of the validity of the agreement, YYYY-MM-DD. If specified, the agreement is valid until 23:59:59.999 Australia/Sydney time on this date. |
paymentTerms | object | Payment terms that changed. Only the terms that changed are present. |
creditor | creditor | Who and where the payment will be made to. Only the creditor fields that changed are present. |
debtor | debtor | Who and where the payment is taken from. Only the debtor fields that changed are present. |
initiator | object | The details of the party that initiated this agreement. |
creditor
Who and where the payment will be made to. Only the fields that changed are present.
| Field | Type | Description |
|---|---|---|
partyName | string | Name of the creditor party. Length: 1-140. ASCII-printable characters only. HTML name entities are not allowed. Must represent the creditor party, and may be the same as ultimatePartyName. |
ultimatePartyName | string | Ultimate creditor name. Length: 1-140. ASCII-printable characters only. HTML name entities are not allowed. Must represent the ultimate creditor party, and may be the same as partyName. |
accountIdentifier | accountIdentifier | Account the payment is made to. type and value are both present. |
paymentAccountUid | string | Uid of the payment account that identifies the party behind the nominated account. Length: 1-64. Letters, numbers, and - . _ ~ only. |
debtor
Who and where the payment is taken from. Only the fields that changed are present.
| Field | Type | Description |
|---|---|---|
partyName | string | Name of the debtor party for this agreement. Length: 1-140. ASCII-printable characters only. HTML name entities are not allowed. |
ultimatePartyName | string | Ultimate debtor name for the account. Length: 1-140. ASCII-printable characters only. HTML name entities are not allowed. On create, an omitted name is stored as partyName. |
accountIdentifier | accountIdentifier | Account the payment is taken from. type and value are both present. |
accountIdentifier
An identifier representing the party's account. Used by both creditor and debtor. type and value are both present.
| Field | Type | Description |
|---|---|---|
type | string | Which kind of account value is. One of bban, alias_email, alias_phone, alias_abn, alias_organisation_identifier. |
value | string | The account itself. Read it according to type. |
type | value |
|---|---|
bban | A branch code (BSB) and account number, separated with a hyphen. |
alias_email | A PayID email alias. |
alias_phone | A PayID phone alias. For example, +61-411222333. |
alias_abn | A PayID ABN alias. |
alias_organisation_identifier | A PayID organisation identifier alias. |
reason and failure
Why the event happened. Novatti forwards the provider's own codes rather than mapping them, so the code is the value to branch on and the text is for a human. The full code list, grouped by cause, is at Zepto's PayTo reason codes reference.
| Field | Type | Description |
|---|---|---|
code | string | Provider or NPP code. A code starting MD is an NPP mandate reason. The rest are the provider's own. |
title | string | Short text for the code. |
detail | string | Longer text for the code. |
narrative | string | Free-text explanation the payer's bank supplied alongside the code, when they gave one. Absent otherwise. |
retryable | boolean | Present on a payment failure. False means the same payment will fail again, so retrying it is wasted. |
links
linksProvider urls for the resource. These name the provider, not Novatti, and calling them needs provider credentials you do not hold. Use the Novatti API to read the resource.
| Field | Type | Description |
|---|---|---|
resource | string | The provider's own url for the resource. |
Your acknowledgement
What your endpoint answers once it has taken the event.
| Field | Type | Description |
|---|---|---|
message | string | Must be "Success". Novatti compares this field and ignores anything else you send beside it. Always Success. |
11. Retry, replay and pausing
What your answer decides
| You answer | Result |
|---|---|
200 with {"message":"Success"} | Delivered. Novatti does not send it again. |
408, 429, 500, 502, 503, 504, or a connect or read timeout | Retried, up to 4 attempts in total. Exponential backoff with full jitter, finishing inside about two minutes. |
Anything else, including a 200 with a different body | Permanent failure. Not retried. |
Finding a delivery to replay
GET /query-webhook-events on the Novatti PayID & PayTo API lists delivery attempts for your merchant. Filter by date, event type, resource, or delivery_status (DELIVERED, PENDING, FAILED). Each row has notificationId and subscriptionId. The list does not include the notification body. Rows can lag about a minute behind the delivery. One notification sent to two subscriptions is two rows.
Replaying what you missed
Once a delivery is exhausted or permanently failed, ask for it again with POST /webhook-replays on the Novatti PayID & PayTo API.
| Rule | Consequence for your handler |
|---|---|
The replay carries the original X-Notification-Id. | A handler that drops every identifier it has seen drops the replay as well. Skip on work already completed, not on arrival. |
The response is 202 with status: QUEUED. | Accepting the replay is not delivering it. The outcome reaches you as a delivery, not in this response. |
| At most 3 replays per notification per endpoint. | A fourth returns 429 with result code 3037. Fix the endpoint before you spend replays on it. |
| The destination is the url held on the subscription, read at the moment of the replay. | You cannot redirect a replay to a different url on the request. Update the subscription first if you need it elsewhere. |
| A paused endpoint cannot be replayed to. | Reactivate the subscription first, then replay. |
| Replays carry the state as it was when the event was raised. | Read the payload rather than assuming it is current. |
Pausing a subscription
PATCH /webhook-subscriptions/{subscriptionId} with active: false, on the Novatti PayID & PayTo API, stops deliveries while keeping the event selection and the credentials.
Events raised while a subscription is paused are not held for later. Pausing is not a queue and replay does not recover what was never stored for that endpoint. If you need a maintenance window, take the deliveries and buffer them your side rather than pausing.
12. Testing and troubleshooting
Testing in sandbox
The sandbox host is https://payments.unify.sandbox.novatti.com. Your production host is issued during onboarding. Do not infer it from the sandbox one.
localhostcannot be registered. BothurlandtokenUrlare rejected on a loopback, private, link-local or cloud metadata host. Put a tunnel or a deployed test endpoint in front of your local handler.- Verify the signature before anything else works. Run the test vector through your implementation first. It needs no traffic and it catches the reserialising mistake that otherwise looks like a wrong secret.
- Make your own events.
POST /payidsproduces the PayID registration events.POST /payto/agreementsand the payment, refund, suspension, cancellation and amendment operations each produce the events listed under Event journeys. Steps that belong to the payer, such as authorising an agreement, are arranged with your Novatti implementation contact in sandbox. - Prove your replay path before go-live. Take a delivery, note its
X-Notification-Id, replay it, and check your handler processed it rather than discarding it as a duplicate.
Troubleshooting
| Symptom | Where to look first |
|---|---|
| Registered, but nothing arrives | The subscription is paused (active: false), or your tokenUrl is refusing Novatti so no bearer token can be fetched, or the event is not in your selection and is not one of the 12 always sent. |
| Deliveries arrive for events you never selected | Those are the always-sent events. They cannot be removed from a selection. Ignore them explicitly. |
| Signature never matches | The body was parsed and reserialised before signing, so key order or whitespace changed, or a proxy rewrote the body, or the secret was rotated and the old one is still in use. Sign the raw bytes. |
| A replay is requested but never processed | The handler treated the repeated X-Notification-Id as a duplicate. See Retry, replay and pausing. |
Registration returns 3035, 3039 or 3040 | A missing auth field, a duplicate url, or the subscription limit. The exact meaning of each is on the Novatti PayID & PayTo API. 3039 means patching the existing subscription instead of registering a new one. |
Subscribing returns 3033 | The event type is not a wire name. Copy it from the catalogue or from GET /webhook-events on the API, not from a heading on this page. |
Replay returns 3037 | Already replayed 3 times to that endpoint. The limit and full result codes are on the Novatti PayID & PayTo API. |
13. Integration checklist
OAuth2 client credentials token endpoint running, and its url registered as
tokenUrl.Both urls absolute HTTPS on a public host, with no loopback or private address.
Endpoint answers
200with exactly{"message":"Success"}.Endpoint answers before doing slow work.
X-Novatti-Signatureverified with a constant-time comparison on every delivery.Verification checked against the test vector.
Timestamp tolerance enforced, so an old signed request is rejected.
signingSecretstored somewhere you can rotate it from, not in source.Deliveries skipped on work already completed, keyed on
X-Notification-Idplus the merchant, not on arrival.Both envelope shapes parsed, routing on
event.typeanddata.type.Unknown event types and unknown fields ignored rather than rejected.
Amounts read as dollars.
10.24is AUD 10.24.publishedAtparsed with its offset, not assumed to be UTC.Events matched to your own records on the fields in Matching an event to your records.
All 12 always-sent events handled or explicitly ignored:
contact.payid_activatedcontact.payid_disabledcontact.payid_deregisteredcredit.cleareddebtor_credit.clearedpayto_agreement.activatedpayto_agreement.cancelledpayto_agreement.amendedpayto_agreement.reactivatedpayto_payment.settledpayto_payment.under_investigationpayto_refund.processed
A missed delivery found with
GET /query-webhook-eventsand replayed withPOST /webhook-replays, and the replayed delivery processed rather than discarded.