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.

Alegra Endpoints: Read
EndpointDescription
GET /invoices Sales invoices with number, client, dates, status, total and balance, filtered by status, client or due date.
GET /invoices/{invoice_id} One invoice with its lines, taxes, payments and client details.
GET /contacts Clients and suppliers with name, tax ID, email and phone.
GET /items Products and services you can put on an invoice, with price and tax.
GET /bank-accounts Bank and cash accounts in Alegra with the ID needed to record a payment.
GET /payments 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.

Alegra Endpoints: Write
EndpointDescription
POST /contacts Confirm Add a client, a supplier or both to Contactos.
POST /contacts/{contact_id}/invoices Confirm Create a sales invoice for a contact as a draft or an open invoice.
POST /invoices/{invoice_id}/email Confirm Send a sales invoice by email to one or more addresses.
POST /invoices/{invoice_id}/payments Confirm Record a payment received on one invoice, on a bank account, with date and method.

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.