
Finance and payments
Conta Azul in your product and your AI agents, through one API
The Conta Azul toolkit covers people (customers, suppliers and carriers), receivables, payables, installments, sales, financial categories and financial accounts. Your customer connects Conta Azul once with OAuth, and your product or AI agent runs each operation through Connect, which stores and renews the credentials and logs every execution.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/conta_azul_create_person/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"nome": "<nome>",
"tipo_pessoa": "Física"
}
}How it works
From a connected customer to the first Conta Azul call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their Conta Azul account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with Conta Azul.
Push invoices into the ERP
Create a customer with Create person and a receivable split by category and installments, so what your product bills shows up in the customer's finances.
Cash flow dashboards
List receivables and payables due in a period, with their totals, to show overdue and upcoming amounts inside your own app.
Agent reconciles installments
An AI agent reads an installment, takes its versao and updates the due date or value when a payment arrangement changes.
Tools
13 Conta Azul tools
- List peopleGETLists the people of the company, which are its customers, suppliers and carriers, optionally filtered by text, profile or type. The response has items and totalItems; page with pagina, and a page shorter than tamanho_pagina is the last one.
- Get personGETReturns one person, with type, document, email, phones, addresses, profiles and the amounts overdue to pay and to receive.
- Create personPOSTCreates a person, which is a customer, a supplier or a carrier according to perfis. nome and tipo_pessoa are required; send cpf for an individual and cnpj for a company. The response has the id of the person.
- Update personPATCHUpdates part of a person: only the fields sent change. To change an existing address, send its id from Get person.
- List receivablesGETLists the installments to receive (contas a receber) due in a period, with customer, categories, amounts paid and open and status, plus the totals of the period in totais. The response has itens and itens_totais; page with pagina, and a page shorter than tamanho_pagina is the last one.
- List payablesGETLists the installments to pay (contas a pagar) due in a period, with supplier, categories, amounts paid and open and status, plus the totals of the period in totais. The response has itens and itens_totais; page with pagina, and a page shorter than tamanho_pagina is the last one.
- Get installmentGETReturns one installment of a receivable or payable, with due date, value composition, payments (baixas), charges and versao, which Update installment requires.
- Update installmentPATCHUpdates part of an installment of a receivable or payable, like the due date, the value or the payment method. Send the versao returned by Get installment: the update is refused when it is missing or out of date.
- Create receivablePOSTCreates a receivable (conta a receber) for a customer: valor is split among categories in rateio and among due dates in condicao_pagamento.parcelas. The response has the id of the financial event, and its installments show up in List receivables.
- Create payablePOSTCreates a payable (conta a pagar) to a supplier: valor is split among categories in rateio and among due dates in condicao_pagamento.parcelas. The response has the id of the financial event, and its installments show up in List payables.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/conta_azul, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
Questions about the Conta Azul toolkit
Do I need to build against the Conta Azul API?
No. Connect ships 13 Conta Azul tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their Conta Azul account?
With the mode the toolkit accepts: OAuth with your product's app. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
Toolkits in the same category
See all 100 toolkitsSee Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
