Skip to main content

Notification Examples

Quick summary

Ready-to-use notification rule configurations covering common scenarios, with a full field and condition operator reference.

Code samples within this document are provided for reference purposes only and are not intended for production use.


Notification types​

TypeEvent
PFRPayment / Financial Response (any transaction outcome)
NTE_CREATEToken created
NTE_UPDATEToken updated
NTE_DELETEToken deleted

Rule structure​

Every notification rule shares the same top-level shape. The payment.fields array controls which transaction fields are included in the POST body, and the optional payment.condition object filters which transactions trigger the notification.

{
"userName": "ABC",
"password": "passwordABC",
"enabled": true,
"type": "PFR",
"url": "https://your-endpoint.com/notifications",
"emails": ["[email protected]"],
"maxAttempt": 5,
"payment": {
"fields": ["responseCode", "merchReference", "txnReference"],
"condition": {}
}
}

Rule fields​

FieldTypeRequiredDescription
userNameStringYes*Username for authentication (*or a suitable alternative authentication method)
passwordStringYes*Password for authentication (*or a suitable alternative authentication method)
enabledBooleanYestrue to activate the rule
typeStringYesNotification type (see table above)
urlStringYesYour HTTPS endpoint to receive the POST
emailsArray of stringsNoFallback email(s), used only after all delivery attempts fail. Optional when url is provided
headersObject of stringsNoCustom headers sent with the notification. Each key becomes the header name and its value the header value
maxAttemptIntegerYesMaximum delivery attempts before falling back to email. A value of 0 falls back to the service default
payment.fieldsArray of stringsYesFields to include in the notification payload
payment.conditionObjectNoFilter for which events trigger the notification. Omit to receive all matching events
Field types

Send enabled as a JSON boolean (true, not "true") and maxAttempt as a JSON integer (5, not "5").


Common examples​

All transactions​

Receive every transaction result. Useful for transaction logging, audit trails, and real-time monitoring.

{
"userName": "ABC",
"password": "passwordABC",
"enabled": true,
"type": "PFR",
"url": "https://your-endpoint.com/notifications",
"emails": ["[email protected]"],
"maxAttempt": 1,
"payment": {
"fields": ["responseCode", "merchReference", "txnReference"]
}
}

Example payload received:

{
"responseCode": "00",
"merchReference": "ORDER-12345",
"txnReference": "TXN-67890"
}

Available fields​

You choose which fields a notification contains. Any field from the transaction API response can be selected, using its top-level name or a dotted name for nested fields. The tables below list common fields as examples, not a fixed schema. Fields with no value are left out of the notification.

Every notification also always includes notificationId, customerId, hierarchy and userName.

Types match the API response: amount, txnType and detailedCode are integers, and amount is in cents.

Fields that cannot be selected

These fields are blocked and are never sent in a notification: password, secret, sensitive, pan, cvv, cryptogram, eci, cavv, xid and paymentInstrument.

Transaction fields​

FieldDescriptionExample
responseCodeTransaction response code"00"
messageResponse description"Approved"
merchReferenceMerchant reference"ORDER-12345"
txnReferenceTransaction reference"TXN-67890"
amountAmount in cents (integer)10000
currencyCurrency code"AUD"
txnTypeTransaction type code (integer)1
transactionDateTransaction timestamp"2025-01-12T10:30:00Z"
settlementDateSettlement date"2025-01-13"

Condition operators​

Use these inside payment.condition to filter which transactions trigger a notification.

Condition syntax​

The supported comparison operators are eq (the default), lt and gt. Other operators such as ne, gte and lte are not supported.

FormMeaningExample
Plain valueEquals (eq)"responseCode": "00"
List of valuesEquals any of these values"responseCode": ["05", "51"]
condition + valueGreater than (gt)"amount": { "condition": "gt", "value": 10000 }
condition + valueLess than (lt)"amount": { "condition": "lt", "value": 5000 }
condition + valueEquals (eq), explicit form"responseCode": { "condition": "eq", "value": "00" }

For lt and gt, value is a number. For amounts, use the smallest currency unit (10000 = $100.00).

Always include the "condition" key

An object without a "condition" key (for example { "gt": 10000 }) is not an error, but it is treated as eq against the value 0. The rule will never match and no error is raised.

Logical operators​

AND logic​

Use and to require all conditions to match:

"condition": {
"and": {
"responseCode": "00",
"amount": { "condition": "gt", "value": 10000 }
}
}