Create counting group
You need to create a counting group to set up price tiers for:
count range-based pricing, or
amount range-based pricing with a count threshold.
In card price lists, you can select the created counting group as a reference for tiered pricing.
Use case
In this example, we will set up a counting group that counts ATM cash withdrawal transactions during the authorisation stage.
Unique name for transaction grouping.
"transactionGroupingCode": "MONTHLY_WITHDRAWAL_COUNT_V"
The number of transactions is counted.
"groupingType": "COUNT"
Aggregation restarts at the beginning of each month.
"aggregationLevel": "MONTHLY"
Transactions made with different cards using the same account are aggregated.
"aggregationScope": "ACCOUNT"
Transactions are aggregated at the authorisation stage, when authorisation request or advice is approved (and account reservation or account transaction is created).
"includeReservations": true
Transaction grouping is enabled.
"enabled": true
List of transaction types that are aggregated.
"transactionTypeCodes": [
"ATM_WITHDRAWAL"
]
Sample API call
To create a new counting group, make the following API call:
https://card-api.sandbox.tuumplatform.com/api/v1/transaction-grouping
Sample request
The sample request body is as follows:
{
"transactionGroupingCode": "MONTHLY_WITHDRAWAL_COUNT_V",
"groupingType": "COUNT",
"aggregationLevel": "MONTHLY",
"aggregationScope": "ACCOUNT",
"includeReservations": true,
"enabled": true,
"transactionTypeCodes": [
"ATM_WITHDRAWAL"
]
Sample response
Below you will find the response to the API request:
Result
We have created a new counting group, MONTHLY_WITHDRAWAL_COUNT_V
, that counts ATM cash withdrawal transactions during the authorisation stage.
Last updated
Was this helpful?