Update card account reservation
Here, you will learn how to update account reservations in Tuum when card-related accounts are located within Card API.
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
In this example, we will demonstrate how to update an account reservation for a card account. This operation may be required when the amount of the original reservation needs to be modified. The following example extends the previous Create card account reservation example.
The unique reservation ID that is obtained from the Create card account reservation.
New reservation amount.
Note: The final reservation amount may differ from the amount requested if fees apply to the given transaction type. Fees are applied only if the transactionTypeCode is provided and the directionCode is OUT.
The reservation is created by transaction R0000150 in the external system named ONLINE.
Reservation details
Merchant information
Additional information related to the transaction.
Transaction type code
Note: Must be provided if fees are calculated in CMS.
Account balance must be checked before making the reservation.
The ID of the card to which the funds are to be added.
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.
Sample API call
To update an account reservation for a card account, use the following endpoint:
https://card-api.sandbox.tuumplatform.com/api/v1/reservations/{reservationId}/change
Learn more about the update card account reservation 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 updated card account reservation amount, increasing from 55.00 to 55.28, which includes a 0.28 fee.
Last updated
Was this helpful?