Retreiving Financial Accounts, Transactions and Balances

How to retrieve financial data from connected accounts?

Once a consent is valid you can start fetching account data, including accounts, balances, and transactions from cash, cards, loans, savings, and securities accounts.

1. Request an API bearer token

Create a JWT with srv: "ais/tpp" and send it to /token.

{
  "sub": "user-123",
  "iss": "tpp/{TPP_ID}",
  "srv": "ais/tpp",
  "iat": 1728986260,
  "exp": 1728986860,
  "ttl": 600
}
curl --location --request POST 'https://{ENVIRONMENT}.feezback.cloud/token' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "token": "{GENERATED_JWT_TOKEN}"
  }'
EnvironmentToken endpoint
Integrationhttps://lgs-integ01.feezback.cloud/token
Productionhttps://lgs-prod.feezback.cloud/token

The returned bearer token is valid for 600 seconds.

2. Retrieve financial data

Use the bearer token to call Feezback's Aggregate Data API.

The userId path parameter is always:

{sub}@{tpp_id}

Use the correct TPP API host:

EnvironmentTPP API host
Integrationhttps://integ01-tpp.feezback.cloud
Productionhttps://prod-tpp.feezback.cloud

Send the bearer token in the Authorization header on each request:

curl --location 'https://{TPP_API_HOST}/tpp/v1/users/USERID/accounts' \
  --header 'Authorization: Bearer {ACCESS_TOKEN}' \
  --header 'X-Tpp-Id: {TPP_ID}'

Before fetching data, confirm the consent is valid — see consent status updates.

Recommended data retrieval flow

  1. Confirm the user has a valid consent.
  2. List the financial resources covered by the consent: accounts, cards, loans, savings, or securities.
  3. Use each returned resourceId as the resource path parameter for detail, balance, and transaction calls.
    1. Fetch balances when the consent includes BALANCES.
    2. Fetch transactions when the consent includes TRANSACTIONS.

Account data endpoints

Method
Endpoint
Purpose
GET
/tpp/v1/users/USERID/accounts
Read the user's account list. Use withBalances to include balances when available.
GET
/tpp/v1/users/USERID/consents/{consentId}/accounts
Read the account list for a specific consent.
GET
/tpp/v1/users/USERID/consents/{consentId}/accounts/{accountId}
Read details for a specific account.
GET
/tpp/v1/users/USERID/consents/{consentId}/accounts/{accountId}/balances
Read balances for a specific account.
GET
/tpp/v2/users/USERID/consents/{consentId}/accounts/{accountId}/transactions
Read transactions for a specific account.
GET
/tpp/v2/export-csv/users/USERID/consents/{consentId}/accounts/{accountId}/transactions
Export account transactions as CSV.

Card data endpoints

Method
Endpoint
Purpose
GET
/tpp/v1/users/USERID/cards
Read the user's card list.
GET
/tpp/v1/users/USERID/consents/{consentId}/cards
Read the card list for a specific consent.
GET
/tpp/v1/users/USERID/consents/{consentId}/cards/{cardId}
Read details for a specific card.
GET
/tpp/v1/users/USERID/consents/{consentId}/cards/{cardId}/balances
Read balances for a specific card.
GET
/tpp/v2/users/USERID/consents/{consentId}/cards/{cardId}/transactions
Read transactions for a specific card.

Savings, loans, and securities endpoints

Account type
List endpoint
Detail endpoint
Balances
Transactions
Additional endpoints
Savings
/tpp/v1/users/USERID/savings and /tpp/v1/users/USERID/consents/{consentId}/savings
/tpp/v1/users/USERID/consents/{consentId}/savings/{savingId}
/tpp/v1/users/USERID/consents/{consentId}/savings/{savingId}/balances
/tpp/v2/users/USERID/consents/{consentId}/savings/{savingId}/transactions
Loans
/tpp/v1/users/USERID/loans and /tpp/v1/users/USERID/consents/{consentId}/loans
/tpp/v1/users/USERID/consents/{consentId}/loans/{loanId}
/tpp/v1/users/USERID/consents/{consentId}/loans/{loanId}/balances
/tpp/v2/users/USERID/consents/{consentId}/loans/{loanId}/transactions
Securities
/tpp/v1/users/USERID/securities and /tpp/v1/users/USERID/consents/{consentId}/securities
/tpp/v1/users/USERID/consents/{consentId}/securities/{securityId}
/tpp/v2/users/USERID/consents/{consentId}/securities/{securityId}/transactions
/orders, /positions

V2 transaction endpoints

Make sure to use V2 endpoints for transactions so you get:

  • Paginated transaction reads from the dedicated typed transaction tables.
  • Unique transactionId value

    *recommended when you want to avoid transactions processing duplications.
ResourceEndpoint
Accounts/tpp/v2/users/USERID/consents/{consentId}/accounts/{accountId}/transactions
Cards/tpp/v2/users/USERID/consents/{consentId}/cards/{cardId}/transactions
Savings/tpp/v2/users/USERID/consents/{consentId}/savings/{savingId}/transactions
Loans/tpp/v2/users/USERID/consents/{consentId}/loans/{loanId}/transactions
Securities/tpp/v2/users/USERID/consents/{consentId}/securities/{securityId}/transactions
CSV export/tpp/v2/export-csv/users/USERID/consents/{consentId}/accounts/{accountId}/transactions

Pagination differs between v1 and v2:

VersionpagepageSize
v11-based, default 1Default 10
v20-based, default 0Default 100, up to 1000

Data deletion endpoint

Use the data deletion tasks endpoint to retrieve information about data scheduled for deletion.

GET /tpp/v1/data-deletion-tasks

Filter by deletionReason (expirationDeletion | consentDeletion), userId, page, pageSize, and taskStatus (RECEIVED | FAILED) when needed.

Common headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token returned from /token.
X-Tpp-IdstringNoTPP identifier.
X-SrvstringNoService routing header.
X-Trace-IdstringNoRequest trace identifier.
X-Request-WaitintegerNoMaximum number of milliseconds the API waits for external ASPSP responses before returning a 307.
X-Psu-IP-AddressstringNoEnd-user IP address when the user is online.
OriginstringNoRequest origin.

Common query parameters

ParameterTypeDefaultDescription
preventUpdatebooleanPrevents financial data refresh. When present, Feezback does not make account data requests to the ASPSP.
withInvalidbooleanIncludes invalid consents or resources when supported. Without it, consent list calls include only valid consents.
withBalancesbooleanIncludes balances in account, card, loan, saving, or securities list responses when supported and covered by consent.
dateFromstringStart date for balances or transaction queries. Format: YYYY-MM-DD.
dateTostringCurrent dateEnd date for balances or transaction queries. Format: YYYY-MM-DD.
bookingStatusstringRequired for transaction endpoints. Use booked, pending, or both.
transactionIdstringContinues a request after a 307 polling response. Use the transaction ID from the Location header.
pageintegerv1: 1; v2: 0Page number for paginated endpoints. v2 transaction endpoints are zero-based.
pageSizeintegerv1: 10; v2: 100Page size — varies by endpoint version. v2 transaction endpoints support 1 to 1000.

Response codes

CodeMeaningAction
200Success.Process the response.
204No content.Treat the delete operation as successful.

Did this page help you?