Price lists must exist before you can create card products or perform any other functions with the card module.
In this example, we will create a price list with the following sample data:
Description of the price list
Validity range of the price list (Date format: YYYY-MM-DD)
Name of the price list that you are creating (This must be a unique value)
To create a price list, use the following endpoint:
https://card-api.sandbox.tuumplatform.com/api/v1/cards/price-list
The sample request body is as follows:
{
"description": "Sample price list",
"validityRange": {
"endDate": null,
"startDate": "2023-12-01"
},
"priceListCode": "PRICELIST-01"
}
curl --location 'https://card-api.sandbox.tuumplatform.com/api/v1/cards/price-list' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDYtMTdUMTQ6Mzc6MDkiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2ODcwMTI2Mjl9.mFpqAQDdOPcaH0C3Vtbew8WcGicnn_5t5ptJ4qo3efg' \
--header 'x-channel-code: system' \
--header 'Content-Type: application/json' \
--data '{
"description": "Sample price list",
"validityRange": {
"endDate": null,
"startDate": "2023-12-01"
},
"priceListCode": "PRICELIST-01"
}'
Below you will find the response to the API request:
The sample price list with the code PRICELIST-01
is created. You can use this code for other functions, such as assigning it to card products, mapping fees, and creating card applications and offers.
"description": "Sample price list"
"validityRange": {
"startDate": "2023-12-01",
"endDate": null
}
"priceListCode": "PRICELIST-01"