Create card account transaction
In this example, we will review how to add card transactions to a card account.
If you are working with Tuum setup where card-related accounts are located within Tuum core, you should use the appropriate Account API endpoints instead.
Use case
This step follows the card account reservations process, as it uses the unique reservationId obtained from the card account reservation's API call to match the transaction and the corresponding reservation.
The card account ID to which the transaction is added.
Transaction type code
Transaction amount
The date on which the transaction is considered effective.
The exact date and time when the transaction was originally created, including time zone.
Reservation details
Merchant information
Additional information related to the transaction.
The account reservation C001664282455 was made to reserve funds for this transaction and should now be released.
The card with ID C001664282657 was used for the transaction.
Note: It is recommended to always provide the card ID. This is necessary to identify the correct card-level price list in cases where multiple cards are associated with the same account.
Account balance must be checked before making the reservation.
The account transaction was created by transaction R0000150 in the external system named ONLINE.
Fee calculation is initiated when the account transaction data does not include the fees element.
Sample API call
To create a new card account transaction, use the following endpoint:
https://card-api.sandbox.tuumplatform.com/api/v1/accounts/{accountId}/transactions
Learn more about the create card account transaction endpoint in the Tuum developer portal.
Sample request
The sample request body is as follows:
Sample response
Below you will find the response to the API request:
Result
The outcome of the API call is the creation of two account transactions. The reservation is released, and two account transactions are created: a main account transaction for the purchase amount of 55.00 EUR and another account transaction for the charged fee of 0.28 EUR.
Last updated
Was this helpful?