Skip to main content
This service is available in v3 only.

How to get Transactions from digital account via Clara API

This guide explains how to use the GET /api/v3/digital-accounts endpoint to retrieve transactions in the Clara API system.

Authentication Requirements

To access this endpoint, ensure the following:
  • Use mutual TLS (MTLS) for secure two-way certificate validation.
  • Obtain an OAuth2 access token via the /oauth/token endpoint.
  • Include the Bearer token in the Authorization header of your request.

Endpoint


Query Parameters (Optional)

This section lists the optional filters available for the Digital Account endpoint. All parameters can be combined and are intended to narrow results by date range and transaction types:
  • Dates are supplied in local yyyy-MM-dd format; the SDK normalizes them to end-of-day UTC before building the URL.
  • Validation (format, list size, and date ordering) happens client-side before the request is sent.

Client‑side validation rules

These rules are applied by DigitalAccountTransactionFilter before the request is built:
  • startDate, endDate: @Pattern("\d{4}-\d{2}-\d{2}") — error: Date must be in ISO format (yyyy-MM-dd).
  • transactionTypeName: @Pattern("PIX|TED|BILL|TRANSACTION") — error: transactionTypeName must be one of: PIX, TED, BILL, TRANSACTION.
  • Date range: @AssertTrue ensures startDate <= endDate when both dates are present and parsable — error: startDate must be less than or equal to endDate.
Note: End‑of‑day UTC normalization happens after the ISO date format check.

Examples

1. Filter by date range

Request (query):

2. Filter by type alias (transactionTypeName)

Request (query):

3. Combined

Request (query):

Validation messages (client)

  • Date must be in ISO format (yyyy-MM-dd)
  • transactionTypeName must be one of: PIX, TED, BILL, TRANSACTION
  • startDate must be less than or equal to endDate
The backend may return additional validation errors.
⚠️ Important Notes:
  • Response is a JSON array (no envelope with totalElements).
  • Keep paging until an empty page or a page with < size items is returned.

Successful Response


Error Responses


Example cURL Request

Replace {your_access_token}, {client_cert_path}, and {client_key_path} with actual values.

Example Response Object

General Response
Bill Response

Field reference

⚠️ Note: some fields may be null depending on the method/type.

Get the digital account balance

Returns the available balance of the authenticated company’s checking and collateral accounts. The company is resolved from the taxId on the token — the endpoint takes no parameters. This endpoint is Brazil only and requires the read:digital-account scope.
The two balances use different units.
  • checkingAccount.available is in cents: 703575.00 means R$ 7,035.75.
  • collateralAccount.available is in decimal currency units: 30.20 means R$ 30.20.
A future balance endpoint will return both values in decimal currency units. Until then, this endpoint keeps its current behavior.

Endpoint


Successful Response


Error Responses


Example cURL Request

Replace {your_access_token}, {client_cert_path}, and {client_key_path} with actual values.

Example Response Object


Endpoint Reference

GET /api/v3/digital-accounts

List digital account transactions (v3, Brazil only)

GET /api/v3/digital-accounts/balance

Get the authenticated company’s digital account balance (v3, Brazil only; requires the read:digital-account scope)