Connectors / Finance · HTTP Connector
Alegra integration and API
Create an invoice, create a contact and create an item in Alegra, and start a workflow when Alegra sends “New client”.
What can you do with Alegra on Tray.ai?
Alegra is cloud accounting and electronic invoicing software for small businesses in Latin America and Spain, covering sales, expenses, inventory, banking and payroll. Tray.ai connects to Alegra through the HTTP Connector, so your workflows can call the Alegra API alongside the rest of your stack.
- When Alegra sends “New invoice”, record the sale in your CRM against the customer.
- On “New client”, create the account in your CRM so sales and finance share one record.
- Create an invoice when a deal closes in your CRM, so billing starts the same day.
- Create a payment in Alegra when your payment processor confirms a charge.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication
- Base URL
- https://api.alegra.com/api/v1
Set it up
Connect Alegra to Tray.ai
Each step uses Alegra's own API details, from its documentation.
Save Alegra's username and password
Save the credentials Alegra gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.alegra.com/api/v1 as the base URL. Or paste a cURL example from Alegra's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List invoices”
It's one of 23 documented actions, under Invoices. The response comes back as data the next step can map into your other apps.
Start workflows from Alegra events
Give Alegra the URL of a Tray.ai webhook trigger. “New client” can then start a workflow, and so can 2 other events.
Workflows to build with Alegra
Connect Alegra with Salesforce, Shopify, Google Sheets and Slack
Each one uses actions and events from Alegra's own API documentation.
Invoice won Salesforce deals in Alegra
When
An opportunity is won in Salesforce
Then
- Create a contact if the customer is new
- Create an invoice with the deal's line items
- Send an invoice by email
With Salesforce
Create Alegra invoices and payments for paid Shopify orders
When
An order is paid in Shopify
Then
- Create an invoice for the order
- Create a payment against the invoice
With Shopify
Log new Alegra invoices in Google Sheets
When
New invoice
Then
- Add the invoice to the sales log in Google Sheets
- Post the invoice total to the finance channel in Slack
With Google Sheets and Slack
Apps you can build on Alegra data
Internal tools your team can build with an AI assistant, each one using Alegra calls from its API documentation.
Unpaid invoice board
Lists invoices and payments by client and lets finance resend an unpaid invoice by email.
Supplier bill review
Lists supplier bills and lets finance correct details before payment.
Item price list
Lists products and services with their prices and lets staff update them.
Alegra MCP server for AI agents
Build an MCP server on Alegra in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List invoices
- List contacts
- List items
- List payments
- List bills
- Create a subscription
- Create an invoice
- Update an invoice
What the Alegra API covers
6 resources and 23 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.
Invoices
- List invoices
- Create an invoice
- Update an invoice
- Void an invoice
- Send an invoice by email
Contacts
- List contacts
- Create a contact
- Update a contact
- Delete a contact
Items
- List items
- Create an item
- Update an item
- Delete an item
Payments
- List payments
- Create a payment
- Update a payment
- Delete a payment
Bills
- List bills
- Create a bill
- Update a bill
Webhook subscriptions
- Create a subscription
- List subscriptions
- Delete a subscription
Events Alegra can send to a Tray.ai webhook trigger
- New client
- New item
- New invoice
Checked against Alegra's own documentation on 2026-10-22
How Tray.ai makes this work
Alegra plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Alegra, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Alegra actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Alegra data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore finance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every finance connector →
Frequently asked questions
What can a Tray.ai workflow do in Alegra?
The Alegra API documents 23 actions across 6 resources (Invoices, Contacts, Items, Payments, Bills, Webhook subscriptions). For example: List invoices; List contacts; List items. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Alegra?
The Alegra API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Alegra events can start a Tray.ai workflow?
Alegra sends 3 events to a webhook URL, for example: New client; New item; New invoice. A Tray.ai webhook trigger receives them and starts a workflow.
See Alegra working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.