Update Account Balance

Specifications

Request

JSON PATHDescriptionFormatSample/ExampleRequired
client_idThe Identifier associated to you or your ClientUUID15bfc289-de75-4668-bb11-3998aadf226dNo
account_idThe Identifier associated to the AccountUUIDfcd0cecb-90dd-4ae2-879f-d0eda6fbddd4Yes
amountThe amount to be applied to the Accountinteger1000Yes
directionDebit or CreditstringCreditYes
typeOptional information to be appliedstringDebit CardNo
destinationDestination where the funds are to be sentstringDebit CardNo
referenceOptional reference for the Account Balance changestringWeekly increaseNo
reference_idOptional Identifier relating to the Account Balance changestringTransfer 20250705No

Example

{
    "account_id": "fcd0cecb-90dd-4ae2-879f-d0eda6fbddd4",
    "client_id": "15bfc289-de75-4668-bb11-3998aadf226d",
    "amount": ,
    "direction": "",
    "type": "",
    "destination": "",
    "reference": "",
    "reference_id": ""
}

Response

Succesful

JSON PATHDescriptionSample/ExampleFormatRequired
account_idThe Identifier associated to the Accountfcd0cecb-90dd-4ae2-879f-d0eda6fbddd4UUIDYes
previous_account_balanceThe previous balance of the Account100stringYes
previous_account_balance_directionCredit means a positive balance, whereas Debit means the balance is in negativecreditstringYes
new_account_balanceThe new Account balance following the request200stringYes
new_account_balance_directionCredit means a positive balance, whereas Debit means the balance is in negativecredit
trace_idThe Identifier associated with the API15bfc289-de75-4668-bb11-3998aadf226dUUIDYes

Example

{
    "account_id": "fcd0cecb-90dd-4ae2-879f-d0eda6fbddd4",
    "previous_account_balance": "100",
    "previous_account_balance_driection": "credit",
    "new_account_balance": "200",
    "new_account_balance_driection": "credit",
    "trace_id": "15bfc289-de75-4668-bb11-3998aadf226d"
}

Unsuccessful


JSON PATHDescriptionSample/ExampleFormatRequired
account_idThe Identifier associated to the Accountfcd0cecb-90dd-4ae2-879f-d0eda6fbddd4UUIDYes
reasonThe reason why the request has not been successful. For example:
exceeds daily limit
exceeds maximum balance
insufficient balance
exceeds daily limitstringYes
trace_idThe Identifier associated with the API15bfc289-de75-4668-bb11-3998aadf226dUUIDYes

{
    "account_id": "fcd0cecb-90dd-4ae2-879f-d0eda6fbddd4",
    "reason": "exceeds daily limit",
    "trace_id": "15bfc289-de75-4668-bb11-3998aadf226d"
}