Create price for the price list
After creating a price list, we need to add prices. Prices are used to calculate the fee amount for different types of fees such as card opening fees, monthly fees, and transaction fees.
Use case
In this scenario, we will define a price for transaction fees. A fixed amount of 1.05€ will be charged for transactions in the range of 700€ - 1000€.
The path for the request is the price list code.
".../PRICELIST-01/price"
Fee type code
"feeTypeCode": "TRANSACTION_FEE_OWN_CURRENCY"
Currency code
"currencyCode": "EUR"
Fee calculation rule
"calculationRule": "FIX"
Fixed fee amount
"fixedAmount": "1.05"
Validity of the price
(Date format: YYYY-MM-DD)
"validityRange": {
"startDate": "2023-12-01",
"endDate": null }
Range of the transaction amount for which the fee is charged.
"transactionAmountRange": {
"startValue": "700.01",
"endValue": "1000.01" }
Sample API call
To create the price, use the following endpoint:
https://card-api.sandbox.tuumplatform.com/api/v1/cards/price-list/PRICELIST-01/price
Sample request
The sample request body is as follows:
{
"calculationRule": "FIX",
"fixedAmount": "1.05",
"validityRange": {
"startDate": "2023-12-01",
"endDate": null
},
"transactionAmountRange": {
"startValue": "700.01",
"endValue": "1000.01"
},
"currencyCode": "EUR",
"feeTypeCode": "TRANSACTION_FEE_OWN_CURRENCY"
}
Sample response
Below you will find the response to the API request:
Result
We have now created a price item for the price list. Similarly, you can create prices with different calculation rules with transaction amount ranges or count ranges.
Last updated
Was this helpful?