Skip to main content

Card Purchase Notify

This notification is triggered when a purchase is processed on a card.

https://<customerHost:Port>/handlenotification
FieldDescription
Content-Typeapplication/json

Request example

curl --location --request POST 'https://<customerHost:Port>/handlenotification' \
-H 'Content-Type: application/json' \
-d '{
"notificationType": "CARD_PURCHASE_NOTIFY",
"notificationCreationTime": "2025-03-07T15:10:52.451Z",
"notificationContent": {
"notificationKey": "D8CCR7aK5HMEBKYG",
"cardReference": "0UwIg396z_EfegG1SeLQJLi1I",
"cardCurrency": "USD",
"transactionReference": "0UwIEGFh7fUHpNyUJDbsQeVbImN",
"approvalCode": "123456",
"purchaseType": "PURCHASE",
"merchantName": "Merchant Name",
"purchaseCurrency": "USD",
"purchaseAmount": 150.00",
"cardAdjustmentAmount": "150.00"
}
}'

Request Body

FieldDescriptionType
notificationTypeSpecifies the type of notification being sent.string
required
notificationCreationTimeSpecifies the creation date and time for the notification. The date format conforms to ISO 8601string
required
notificationContentSpecifies the notification contentobject
required

Properties of notificationContent

FieldDescriptionType
notificationKeyRepresents a unique identifier for Nium that confirms the API method call is genuinestring
required
cardReferenceRepresents a unique identifier for the virtual cardstring
required
cardCurrencyRepresents the virtual card's currency in ISO 4217 format (e.g., USD).string
required
transactionReferenceRepresents a unique identifier for transactionstring
approvalCodeContains the code with which the authorisation is labelled when approvedstring
required
purchaseTypeRepresents the type of purchase operation. REFUND refers to funds returned against a previous purchase and ORIGINAL_CREDIT refers to funds credited by a merchant independent of a purchase. Possible values: PURCHASE, REFUND, ORIGINAL_CREDITstring
required
merchantNameContains the name of the merchant where the purchase occurredstring
required
purchaseCurrencyIndicates the currency of the purchase, which may differ from the virtual card's currency, and follows the ISO 4217 format (e.g., USD)string
required
purchaseAmountContains the purchase amount in the purchase currencystring
required
cardAdjustmentAmountContains the amount of funds that were adjusted on the virtual card (in the virtual card currency) as a result of this purchasestring