Connectors / Finance · HTTP Connector
FacturaDirecta integration and API
Create an invoice, create a contact and create a product in FacturaDirecta, and start a workflow when FacturaDirecta sends “Invoice created”.
What can you do with FacturaDirecta on Tray.ai?
FacturaDirecta is Spanish invoicing and accounting software for small businesses and freelancers, handling invoices, estimates, orders, stock, expenses and tax filings. Tray.ai connects to FacturaDirecta through the HTTP Connector, so your workflows can call the FacturaDirecta API alongside the rest of your stack.
- When FacturaDirecta sends “Invoice created”, copy the invoice into your accounting system.
- Record an invoice payment when your bank feed shows the customer has paid.
- Create a contact when a deal is won in your CRM.
- Adjust product stock after your warehouse system confirms a shipment.
- Connects through
- HTTP Connector
- Authentication
- An API key in a request header or OAuth 2.0
- Base URL
- https://app.facturadirecta.com/api
Set it up
Connect FacturaDirecta to Tray.ai
Each step uses FacturaDirecta's own API details, from its documentation.
Save FacturaDirecta's API key
Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://app.facturadirecta.com/api as the base URL. Or paste a cURL example from FacturaDirecta's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List invoices”
It's one of 25 documented actions, under Invoices. The response comes back as data the next step can map into your other apps.
Start workflows from FacturaDirecta events
Give FacturaDirecta the URL of a Tray.ai webhook trigger. “Invoice created” can then start a workflow, and so can 2 other events.
Workflows to build with FacturaDirecta
Connect FacturaDirecta with Shopify, HubSpot and Stripe
Each one uses actions and events from FacturaDirecta's own API documentation.
Create FacturaDirecta invoices from Shopify orders
When
An order is placed in Shopify
Then
- Create a contact in FacturaDirecta for the customer if needed
- Create an invoice for the order
- Send an invoice to the customer
With Shopify
Sync updated FacturaDirecta contacts to HubSpot
When
Contact updated
Then
- List contacts in FacturaDirecta to get the full record
- Update the matching contact in HubSpot with the new details
With HubSpot
Record Stripe payments against FacturaDirecta invoices
When
A payment succeeds in Stripe
Then
- List invoices in FacturaDirecta to find the matching invoice
- Record an invoice payment in FacturaDirecta
With Stripe
Apps you can build on FacturaDirecta data
Internal tools your team can build with an AI assistant, each one using FacturaDirecta calls from its API documentation.
Unpaid invoice tracker
Lists invoices by contact and lets a bookkeeper record a payment or resend the invoice.
Supplier bill review
Lists supplier bills so the owner can check costs and update a bill's details.
Stock adjustment tool
Lists products with stock levels and lets warehouse staff adjust stock after a count.
Give your AI agents FacturaDirecta tools
Build an MCP server on FacturaDirecta 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 products
- List estimates
- List bills
- List recurring invoices
- Create an invoice
- Update an invoice
What the FacturaDirecta API covers
6 resources and 25 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.
Invoices
- List invoices
- Create an invoice
- Update an invoice
- Delete an invoice
- Send an invoice
- Record an invoice payment
Contacts
- List contacts
- Create a contact
- Update a contact
- Delete a contact
Products
- List products
- Create a product
- Update a product
- Adjust product stock
Estimates
- List estimates
- Create an estimate
- Update an estimate
- Send an estimate
Bills
- List bills
- Create a bill
- Update a bill
- Delete a bill
Recurring invoices
- List recurring invoices
- Create a recurring invoice
- Update a recurring invoice
Events FacturaDirecta can send to a Tray.ai webhook trigger
- Invoice created
- Contact updated
- Expense archived
Checked against FacturaDirecta's own documentation on 2026-10-22
How Tray.ai makes this work
FacturaDirecta 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 FacturaDirecta, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose FacturaDirecta actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on FacturaDirecta 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 FacturaDirecta?
The FacturaDirecta API documents 25 actions across 6 resources (Invoices, Contacts, Products, Estimates, Bills, Recurring invoices). For example: List invoices; List contacts; List products. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with FacturaDirecta?
The FacturaDirecta API uses an API key in a request header and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which FacturaDirecta events can start a Tray.ai workflow?
FacturaDirecta sends 3 events to a webhook URL, for example: Invoice created; Contact updated; Expense archived. A Tray.ai webhook trigger receives them and starts a workflow.
See FacturaDirecta 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.