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.

Authentication: an API key (x-api-key).

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

FieldTypeDescription
[].idstring
[].providerNamestring
[].countryCodestring
[].statusstring
[].createdAtstring (date-time)
[].updatedAtstring (date-time)
[].maskedIbansstring[]

Errors

  • 401 Unauthorized - API key missing or invalid
  • 403 No 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.

Authentication: an API key (x-api-key).

Parameters

NameInTypeDescription
connectionId requiredquerystringBank connection identifier (obtained from GET /bank/connections)
pagequerynumberPage number (starts at 1)
pageSizequerynumberMaximum number of records per page
fromDatequerystringFilter from this date (ISO 8601 with timezone)
toDatequerystringFilter up to this date (ISO 8601 with timezone)
searchStringquerystringGlobal search term (description, merchant, etc.)
directionquerystringFilter by direction (incoming/outgoing)
One of: Income, Expense
typesquerystring[]Filter by transaction types
languagequerystringLanguage 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

FieldTypeDescription
[].idstringThe 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.
[].connectionIdstring
[].amountnumberSigned amount: negative is money out
[].currencystring
[].transactionDatestring (date-time)
[].descriptionstring
[].payerstring · can be null
[].payeestring · can be null
[].notestring · can be nullThe user's note on the transaction, if any
[].merchantNamestring
[].merchantCategoryNamestring · can be null
[].accountingCategoryNamestring
[].statusCodestringAccepted while the transaction is pending (isPending = true), Cleared once it has settled
One of: Accepted, Cleared
[].typestring · can be nullDisplay 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.
[].isPendingbooleantrue while the transaction is pending. Only transactions with isPending = false are final.

Errors

  • 400 Invalid parameters (e.g. missing connectionId)
  • 401 Unauthorized - API key missing or invalid
  • 403 No 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.

All resources