API reference
Bank
The bank connections of the company and their transactions. Read-only, with an API key. 2 operations.
List bank connections
GET /bank/connections
Returns the account's bank connections (open banking). Use the "id" field as connectionId when listing transactions.
curl 'https://api.fiz.co/bank/connections' \
--header "x-api-key: $FIZ_API_KEY"import { Fiz } from '@fiz-co/sdk';
const fiz = new Fiz(); // reads FIZ_API_KEY
const result = await fiz.bank.connections();from fiz_sdk import Fiz
fiz = Fiz() # reads FIZ_API_KEY
result = fiz.bank.connections()<?php
require 'vendor/autoload.php';
$fiz = new Fiz\Fiz(); // reads FIZ_API_KEY
$result = $fiz->bank->connections();Response 200
List of connections returned successfully
| Field | Type | Description |
|---|---|---|
[]. | string | |
[]. | string | |
[]. | string | |
[]. | string | |
[]. | string (date-time) | |
[]. | string (date-time) | |
[]. | string[] |
Errors
401Unauthorized - API key missing or invalid403No access to the bookkeeping feature
List bank transactions
GET /bank/transactions
Returns the bank transactions (open banking) of a connection. The connectionId parameter is required — get it from GET /bank/connections.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
connectionId required | query | string | Bank connection identifier (obtained from GET /bank/connections) |
page | query | number | Page number (starts at 1) |
pageSize | query | number | Maximum number of records per page |
fromDate | query | string | Filter from this date (ISO 8601 with timezone) |
toDate | query | string | Filter up to this date (ISO 8601 with timezone) |
searchString | query | string | Global search term (description, merchant, etc.) |
direction | query | string | Filter by direction (incoming/outgoing) One of: Income, Expense |
types | query | string[] | Filter by transaction types |
language | query | string | Language for category names (pt or en) One of: pt, en |
curl 'https://api.fiz.co/bank/transactions?connectionId=a1b2c3d4-0000-0000-0000-000000000000' \
--header "x-api-key: $FIZ_API_KEY"import { Fiz } from '@fiz-co/sdk';
const fiz = new Fiz(); // reads FIZ_API_KEY
const result = await fiz.bank.transactions({
connectionId: 'a1b2c3d4-0000-0000-0000-000000000000',
});from fiz_sdk import Fiz
fiz = Fiz() # reads FIZ_API_KEY
result = fiz.bank.transactions({
"connectionId": "a1b2c3d4-0000-0000-0000-000000000000",
})<?php
require 'vendor/autoload.php';
$fiz = new Fiz\Fiz(); // reads FIZ_API_KEY
$result = $fiz->bank->transactions([
'connectionId' => 'a1b2c3d4-0000-0000-0000-000000000000',
]);Response 200
List of transactions returned successfully
| Field | Type | Description |
|---|---|---|
[]. | string | The transaction's identifier at the open banking provider, unique within the connection. It stays the same across refreshes and consent renewals of the same connection. Pending transactions are replaced on every sync and may come back with a different id once settled. To deduplicate, use connectionId + id of transactions with isPending = false. |
[]. | string | |
[]. | number | Signed amount: negative is money out |
[]. | string | |
[]. | string (date-time) | |
[]. | string | |
[]. | string · can be null | |
[]. | string · can be null | |
[]. | string · can be null | The user's note on the transaction, if any |
[]. | string | |
[]. | string · can be null | |
[]. | string | |
[]. | string | Accepted while the transaction is pending (isPending = true), Cleared once it has settled One of: Accepted, Cleared |
[]. | string · can be null | Display name of the transaction type, in the language of the language parameter (for example Compra in pt, Purchase in en). It is not the value of the types filter. |
[]. | boolean | true while the transaction is pending. Only transactions with isPending = false are final. |
Errors
400Invalid parameters (e.g. missing connectionId)401Unauthorized - API key missing or invalid403No access to the bookkeeping feature
Errors
Errors share one shape: statusCode, message, code and error, with the request id in the X-Request-Id header.