
Update person with the Conta Azul API
Updates part of a person: only the fields sent change. To change an existing address, send its id from Get person.
- Identifier
- conta_azul_update_person
The request
POST https://connect.reportei.com/api/tools/conta_azul_update_person/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"id": "<id>"
}
}Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Id of the person (UUID), from List people or Create person. |
| nome | string | No | Name of the person or legal name of the company. |
| tipo_pessoa | string | No | Física (individual), Jurídica (company) or Estrangeira (foreign).Values: Física, Jurídica, Estrangeira |
| perfis | array | No | Profiles of the person, for example one item with tipo_perfil Cliente for a customer. |
| cpf | string | No | CPF of an individual, for example 123.456.789-00. |
| cnpj | string | No | CNPJ of a company, for example 12.345.678/0001-90. |
| nome_empresa | string | No | Trade name of a company. |
| string | No | Email addresses of the person, separated by commas. | |
| telefone_celular | string | No | Cell phone with area code, digits only, for example 11987654321. |
| telefone_comercial | string | No | Business phone with area code, digits only. |
| codigo | string | No | Code of the person in your own system. |
| observacao | string | No | Notes about the person. |
| ativo | boolean | No | false makes the person inactive, and true active again. |
| enderecos | array | No | Addresses of the person. An item with id changes that address. |
Supported connections
Your customer connects their Conta Azul account once, with one of the modes below. The same connection serves every tool of the toolkit.
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.
The response
On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.
Ready for AI agents
This tool's input is a JSON Schema, available at GET /api/tools/conta_azul_update_person. It becomes your agent's tool definition with no conversion.
Other 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.
- 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.
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.
