Operations workflow
Operations are the core transactional primitive in FinSync. The application models an operation as one business event made up of one or more transactions. That distinction matters for integrations:- An operation is the full movement, such as a payout, collection, FX trade, or manual adjustment.
- Each transaction inside the operation is an individual
creditordebitthat affects one account.
Accounting meaning of credit and debit
The app wiki makes an important point:credit and debit do not mean the same business outcome for every client type.
| Client side | Business meaning of credit | Business meaning of debit |
|---|---|---|
Internal account (caja, asset) | Increases company funds | Decreases company funds |
External client (cuenta corriente) | Increases what the company owes that client | Decreases what the company owes that client |
Preflight lookups
Before creating operations, fetch the catalog data that drives payload construction:GET /api/operation-typesGET /api/transaction-types
- which
operation_type_idcorresponds toup,down,other, orexchange - which
transaction_type_idshould be used for regular movements versus commissions
List and monitor operations
UseGET /api/operations to review existing operations, inspect their transactions, and monitor status transitions.
dateFromdateTopagepageSizeoperationTypewith values such asup,down,other,exchange,budget,intereststatuswith valuespending,completed, oradjusted
page and pageSize are omitted, the endpoint returns a simpler response shape. When pagination is supplied, it also returns pagination metadata.
Choose the right creation payload
UsePOST /api/operations with the payload shape that matches the workflow you want to automate.
The public API currently supports three main creation patterns:
UPandDOWN: paired internal/external movements between one internal account and one external clientOTHER: one or many custom transactions for special adjustments or bespoke accounting flowsEXCHANGE: FX operations in either internal mode or external client mode
UP and DOWN.
The current reference includes examples for:
- UP and DOWN operations
- OTHER operations
- Internal exchange operations
- External exchange operations
UP or DOWN payload:
Understand statuses
The wiki defines three transaction lifecycle states that also drive the approval endpoints:pending: created, but not yet applied as a finalized balance movementcompleted: approved and appliedadjusted: cancelled or rolled back
Approve or cancel
Use these endpoints only when the operation is still pending:POST /api/operations/{id}/approveDELETE /api/operations/{id}
completed. Cancellation marks them as adjusted.
Both endpoints require the operation’s transactions to still be pending.
Suggested integration pattern
- Fetch
operation-typesandtransaction-typesso you can build payloads from company-specific IDs instead of hardcoding assumptions. - Create the operation with
POST /api/operations. - Persist the returned
operation_idand created transaction IDs. - List operations with
GET /api/operationsto confirm the new operation, inspect its transaction set, and validatependingvscompletedstate. - Approve with
POST /api/operations/{id}/approveor cancel withDELETE /api/operations/{id}only after your business checks pass.