API Overview
The Invoica API is a RESTful JSON API for managing invoices, settlements, tax calculations, and budgets.Base URL
Authentication
Include your API key in every request:Request Format
- All request bodies must be JSON with
Content-Type: application/json - Amounts are in the smallest currency unit (cents for USD, centimes for EUR)
- Dates use ISO 8601 format:
2026-02-18T10:30:00Z
Response Format
All responses follow a consistent structure:Success
List Response
Error
Error Codes
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_REQUEST | Malformed request body or missing required fields |
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 403 | FORBIDDEN | Key lacks required permissions |
| 404 | NOT_FOUND | Resource does not exist |
| 402 | BUDGET_EXCEEDED | Agent budget limit reached |
| 429 | RATE_LIMITED | Too many requests |
| 500 | INTERNAL_ERROR | Server error — contact support |
Rate Limiting
API requests are rate limited per API key:| Plan | Requests/minute | Requests/day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 600 | 50,000 |
| Enterprise | Custom | Custom |
Pagination
List endpoints support cursor-based pagination:| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default: 10, max: 100) |
page | integer | Page number (default: 1) |
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /api/invoices | Create invoice |
| GET | /api/invoices | List invoices |
| GET | /api/invoices/:id | Get invoice |
| POST | /api/tax/calculate | Calculate tax |
| POST | /api/budget/check | Check budget |
| GET | /api/budget/:agentId | Get agent budget |