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

FieldDescription
enabled"true" to activate the rule
typeNotification type (see table above)
urlYour HTTPS endpoint to receive the POST
emailsFallback email(s) if all delivery attempts fail
maxAttemptMaximum delivery attempts before falling back to email
payment.fieldsFields to include in the notification payload
payment.conditionOptional filter — omit to receive all matching events

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

Transaction fields

FieldDescriptionExample
responseCodeTransaction response code"00"
responseTextResponse description"Approved"
merchReferenceMerchant reference"ORDER-12345"
txnReferenceTransaction reference"TXN-67890"
amountAmount in cents"10000"
finalAmountTotal including surcharge"10050"
surchargeSurcharge amount in cents"50"
currencyCurrency code"AUD"
txnTypeTransaction type code"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.

Comparison operators

OperatorMeaningExample
(no operator)Equals"responseCode": "00"
neNot equals"responseCode": { "ne": "00" }
gtGreater than"amount": { "gt": "10000" }
ltLess than"amount": { "lt": "5000" }
gteGreater than or equal"amount": { "gte": "10000" }
lteLess than or equal"amount": { "lte": "5000" }

Logical operators

AND logic

Use and to require all conditions to match:

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