Skip to main content

API

Introduction

This section describes all the endpoints of the Cash Account Management package. The API flow is shown below:

cashAccountMngFlow.png


GET Cash Accounts

The GET Cash Accounts endpoint allows you to retrieve the complete list of accounts associated with the authenticated subject. Below is an example request:

GET /api/gbs/banking/v4.0/accounts

The endpoint does not require path or query parameters.

Example response:

{
"list": [
{
"accountId": "14930637",
"iban": "IT22D3706978430115706240270",
"abiCode": "37069",
"cabCode": "78430",
"countryCode": "IT",
"internationalCin": "22",
"nationalCin": "D",
"account": "115706240270",
"alias": "Company main account",
"productName": "Generic company cash account",
"holderName": "ACME Inc.",
"activatedDate": "2008-12-25",
"currency": "EUR"
}
]
}
FieldTypeDescription
accountIdStringUnique account identifier; required for other endpoints.
ibanStringFull IBAN of the account.
abiCodeStringABI code of the bank.
cabCodeStringBranch CAB code.
countryCodeStringCountry code of the account (e.g., IT).
internationalCinStringInternational CIN of the IBAN.
nationalCinStringNational CIN of the IBAN.
accountStringAccount number (substring of the IBAN).
aliasStringAccount alias, if present.
productNameStringCommercial name of the product linked to the account.
holderNameStringFull name of the account holder(s).
activatedDateDateAccount activation date.
currencyStringNative currency of the account (e.g., EUR).

GET Cash Account

The GET Cash Account endpoint returns the complete details of a single account, identified by accountId.

GET /api/gbs/banking/v4.0/accounts/{accountId}
TypeNameReqDescription
PathaccountIdYesUnique account identifier obtained via GET Cash Accounts

The response has the same structure as the previous endpoint, but in this case a single element is returned.


GET Cash Account Balance

The GET Cash Account Balance endpoint allows you to obtain the updated balance of the specified account, both accounting and available. It is essential for financial monitoring functions, account dashboards, and reconciliation processes.

Endpoint to invoke:

GET /api/gbs/banking/v4.0/accounts/{accountId}/balance
TypeNameReqDescription
PathaccountIdYesUnique account identifier

Example response:

{
"balance": 15234.55,
"availableBalance": 14980.10,
"currency": "EUR",
"date": "2024-01-15"
}
FieldTypeDescription
balanceNumberAccounting balance of the account
availableBalanceNumberEffectively available balance
currencyStringCurrency
dateDateReference date of the balance

GET Cash Account Transactions

Returns the list of transactions related to the selected account. Used to reconstruct movements, generate account statements, perform analyses, or perform reconciliation.

Request:

GET /api/gbs/banking/v4.0/accounts/{accountId}/transactions?fromAccountingDate=YYYY-MM-DD&toAccountingDate=YYYY-MM-DD
TypeNameReqDescription
PathaccountIdYesUnique account identifier
QueryfromAccountingDateYesStart date (inclusive) of the search period
QuerytoAccountingDateYesEnd date (inclusive) of the search period
QueryorderNoSorting of transactions
QuerymaxRecordsNoMaximum number of transactions to include

Example response:

{
"list": [
{
"transactionId": "123456789",
"operationDate": "2024-02-01",
"valueDate": "2024-02-01",
"amount": -150.00,
"currency": "EUR",
"description": "Wire transfer outgoing",
"type": "DEBIT"
}
]
}
FieldTypeDescription
transactionIdStringUnique transaction identifier
operationDateDateOperation date
valueDateDateValue date
amountNumberTransaction amount
currencyStringCurrency
descriptionStringTransaction description
typeStringTransaction type (DEBIT/CREDIT)

GET Cash Account Reserved Entries

Returns the list of reserved entries for the account: amounts recorded but not yet available, such as future charges or pending authorizations.

Endpoint to invoke:

GET /api/gbs/banking/v4.0/accounts/{accountId}/reserved-entries
TypeNameReqDescription
PathaccountIdYesAccount identifier

Example response:

{
"list": [
{
"reservedEntryId": "69451812",
"creationDate": "2017-03-08",
"dueDate": "2017-03-08",
"amount": -10.01,
"currency": "EUR",
"description": "Mobile carrier phone charge."
}
]
}
FieldTypeDescription
reservedEntryIdStringReserved entry identifier
creationDateDateEntry creation date
dueDateDateExpected expiry date
amountNumberBlocked amount
currencyStringCurrency
descriptionStringReason for the blocked amount