Create card account transaction

In this example, we will review how to add card transactions to a card account.

circle-exclamation

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.

Use case data
API parameters with values

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.

circle-exclamation

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

circle-info

Learn more about the create card account transactionarrow-up-right 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:

chevron-rightResponsehashtag

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?