Clients workflow
In FinSync, a client is not only a person or company. It is the business entity that owns balances and participates in operations. The application wiki distinguishes two client categories that matter when you automate against the API:- Internal clients (
type = 0): your owncajas, wallets, banks, or liquid accounts. - External clients (
type = 1): counterparties tracked ascuentas corrientes.
List clients
UseGET /api/clients to retrieve company clients together with their related accounts.
pagepageSizedescription
- Client metadata such as
id,name,description, andtype - The client’s associated
accounts - Account-level balances and currencies
Interpret balances correctly
The same numeric balance means different things depending on the client type:- Internal client (
type = 0): a positive balance means the company has funds available in that wallet or bank account. A negative balance means a deficit or overdraft. - External client (
type = 1): a positive balance means the company owes money to that client. A negative balance means that client owes money to the company.
Inspect one client
UseGET /api/clients/{id} when you need the detailed record for one client, including its accounts.
This is the best follow-up call after listing clients when your workflow needs to:
- choose the correct account by currency
- inspect the latest stored balance per account
- confirm whether you are working with an internal or external counterparty
Create an external client
UsePOST /api/clients to create a new external counterparty for the company tied to the API key.
This endpoint is intentionally scoped to external clients. In app terms, it creates a cuenta corriente, not one of your internal cajas.
Typical integration flow
- List clients with
GET /api/clients. - Filter by
descriptionor your own matching logic to detect whether the counterparty already exists. - If it does not exist, create it with
POST /api/clients. - Fetch the full record with
GET /api/clients/{id}when you need to inspect account balances or pick the correct currency-specific account. - Reuse the returned client ID in operation workflows such as
UP,DOWN,OTHER, or externalEXCHANGE.
Related endpoints
GET /api/clientsPOST /api/clientsGET /api/clients/{id}