Alegra API
10 endpoints for Alegra, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/alegra
- Connects with
- Your own Alegra account (a role that can use Ingresos and Contactos; no API token needed)
- Integration page
- Alegra
Read (6)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | Sales invoices with number, client, dates, status, total and balance, filtered by status, client or due date. |
| GET | One invoice with its lines, taxes, payments and client details. |
| GET | Clients and suppliers with name, tax ID, email and phone. |
| GET | Products and services you can put on an invoice, with price and tax. |
| GET | Bank and cash accounts in Alegra with the ID needed to record a payment. |
| GET | Payments received or made, with date, method, bank account and the invoices each one settled. |
Write (4)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Add a client, a supplier or both to Contactos. |
| POST | Create a sales invoice for a contact as a draft or an open invoice. |
| POST | Send a sales invoice by email to one or more addresses. |
| POST | Record a payment received on one invoice, on a bank account, with date and method. |