Conventions and errors
Base URL
Production examples in this portal usehttps://finsync.ar. Individual operations live under /api/....
Request and response format
- Request bodies are JSON unless noted otherwise.
- Response payloads are JSON for the documented operational endpoints.
- IDs are typically integer database identifiers.
Pagination
Several list endpoints acceptpage and pageSize.
Example:
Common error patterns
Expect standard HTTP status codes such as:400for validation or payload issues.401for missing or invalid authentication.403when the caller is authenticated but the role does not allow that action. Company API keys skip role checks. Personal employee keys do not.404when a referenced resource does not exist.409for conflicting state (for example reverting an operation that is not fully completed).500for unexpected server errors.
error field for non-success responses.
Operational conventions
- Operations can include multiple transactions.
- Approval and cancellation routes usually require pending transactions.
- Manual balance adjustments support either an absolute balance or a delta, depending on the request body.