Issue Brazilian NFS-e invoices from chat: calculate taxes, preview, confirm, batch, schedule.
Maintained bynotas.arquivix.com(verified)Also a maintainer?
This server signs you in with OAuth, which the playground doesn't support yet. Install it in your MCP client to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http nfse https://api-notas.arquivix.com/mcp
Sends the month package (ZIP with XML, PDF and resumo.csv of the notes of the month) to the accountant email saved on the company. Without confirm: true nothing is sent: it returns a preview with the month, the recipient email and the note count. With confirm: true it sends. Sends in the live environment only; the month defaults to the previous one.
| Argument | Type | Description |
|---|---|---|
| month | string | Competence month, YYYY-MM. Defaults to the previous month. |
| tax_id | string | CNPJ of the company (punctuation optional). |
| confirm | boolean | Must be true to really send. Without it only a preview. |
| company_id | string | UUID of the company. Either this or tax_id. |
{
"type": "object",
"required": [],
"properties": {
"month": {
"type": "string",
"description": "Competence month, YYYY-MM. Defaults to the previous month."
},
"tax_id": {
"type": "string",
"description": "CNPJ of the company (punctuation optional)."
},
"confirm": {
"type": "boolean",
"description": "Must be true to really send. Without it only a preview."
},
"company_id": {
"type": "string",
"description": "UUID of the company. Either this or tax_id."
}
}
}Look up the public registration data of any CNPJ (legal name, trade name, address, IBGE municipality code, whether it is Simples Nacional or MEI, whether it is active, and its main activity (CNAE)). When the activity clearly matches a service code it also returns suggested_service_code: only a suggestion, not a confirmed code. The data can pre-fill a new company or a customer. It reads the public registry, not the companies registered in this workspace. Fails when the CNPJ is invalid, when the registry does not know it (CNPJ_NOT_FOUND) or when the registry has no answer right now (CNPJ_LOOKUP_UNAVAILABLE, temporary).
| Argument | Type | Description |
|---|---|---|
| cnpj* | string | CNPJ; punctuation is optional. |
{
"type": "object",
"required": [
"cnpj"
],
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ; punctuation is optional."
}
}
}Create an issuing company in the connected environment. A certificate is deliberately not accepted here: it is uploaded separately, after the company exists (needs the certificate permission granted when connecting). default_service_code is optional and becomes the default service code of every invoice of the company; a code suggested by the CNPJ registry is only a suggestion.
| Argument | Type | Description |
|---|---|---|
| tax_id* | string | CNPJ; punctuation is optional. |
| address | object | Endereço da empresa (opcional). |
| legal_name* | string | Razão social, como no cartão do CNPJ. |
| tax_regime* | string | MEI (mei), Simples Nacional (simple_national), Lucro Presumido (lucro_presumido) or Lucro Real (lucro_real). |
| trade_name | string | Nome fantasia (opcional). |
| simples_rate | string | Required for Simples Nacional (ignored for MEI): effective total rate (%) of your DAS, e.g. "6.54". |
| municipal_reg | string | Inscrição municipal, só dígitos (opcional). |
| special_regime | string | Regime especial (regEspTrib): 0 Nenhum, 1 Ato Cooperado, 2 Estimativa, 3 Microempresa Municipal, 4 Notário ou Registrador, 5 Profissional Autônomo, 6 Sociedade de Profissionais. |
| simple_national | boolean | true quando a empresa é optante do Simples Nacional. |
| simples_iss_rate | string | Simples Nacional only, optional: effective ISS rate (%) of your bracket; needed only when a customer withholds ISS. |
| municipality_code* | string | Seven-digit IBGE municipality code. |
| send_municipal_reg | boolean | true para mandar a inscrição municipal na DPS. Padrão false: a Receita recusa (E0120) quando o município não tem os dados complementares. |
| default_service_code | string | Six-digit cTribNac service code. |
{
"type": "object",
"required": [
"legal_name",
"tax_id",
"tax_regime",
"municipality_code"
],
"properties": {
"tax_id": {
"type": "string",
"description": "CNPJ; punctuation is optional."
},
"address": {
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "CEP com 8 dígitos, ex.: \"60110000\"."
},
"city": {
"type": "string",
"description": "Nome da cidade, ex.: \"Fortaleza\"."
},
"state": {
"type": "string",
"description": "UF com 2 letras, ex.: \"CE\"."
},
"number": {
"type": "string",
"description": "Número do endereço; \"S/N\" quando não houver."
},
"street": {
"type": "string",
"description": "Logradouro, ex.: \"Rua das Flores\"."
},
"district": {
"type": "string",
"description": "Bairro."
},
"complement": {
"type": "string",
"description": "Complemento, ex.: \"Sala 3\"."
}
},
"description": "Endereço da empresa (opcional)."
},
"legal_name": {
"type": "string",
"description": "Razão social, como no cartão do CNPJ."
},
"tax_regime": {
"enum": [
"mei",
"simple_national",
"lucro_presumido",
"lucro_real"
],
"type": "string",
"description": "MEI (mei), Simples Nacional (simple_national), Lucro Presumido (lucro_presumido) or Lucro Real (lucro_real)."
},
"trade_name": {
"type": "string",
"description": "Nome fantasia (opcional)."
},
"simples_rate": {
"type": "string",
"description": "Required for Simples Nacional (ignored for MEI): effective total rate (%) of your DAS, e.g. \"6.54\"."
},
"municipal_reg": {
"type": "string",
"description": "Inscrição municipal, só dígitos (opcional)."
},
"special_regime": {
"type": "string",
"description": "Regime especial (regEspTrib): 0 Nenhum, 1 Ato Cooperado, 2 Estimativa, 3 Microempresa Municipal, 4 Notário ou Registrador, 5 Profissional Autônomo, 6 Sociedade de Profissionais."
},
"simple_national": {
"type": "boolean",
"description": "true quando a empresa é optante do Simples Nacional."
},
"simples_iss_rate": {
"type": "string",
"description": "Simples Nacional only, optional: effective ISS rate (%) of your bracket; needed only when a customer withholds ISS."
},
"municipality_code": {
"type": "string",
"description": "Seven-digit IBGE municipality code."
},
"send_municipal_reg": {
"type": "boolean",
"description": "true para mandar a inscrição municipal na DPS. Padrão false: a Receita recusa (E0120) quando o município não tem os dados complementares."
},
"default_service_code": {
"type": "string",
"description": "Six-digit cTribNac service code."
}
}
}Read-only fiscal situation of one company: the current fiscal profile (tax regime, Simples Nacional, review status), the service tax profiles in effect today, the digital certificate status (active or expired and its expiry date; never the certificate file or password) and the DPS numbering (series and last number used). It answers questions such as "meu certificado está válido?", "qual meu regime?" or "em que número de DPS estou?". Takes company_id or tax_id (CNPJ). A company without a valid certificate cannot issue.
| Argument | Type | Description |
|---|---|---|
| tax_id | string | CNPJ; punctuation is optional. |
| company_id | string | Company id (UUID). |
{
"type": "object",
"properties": {
"tax_id": {
"type": "string",
"description": "CNPJ; punctuation is optional."
},
"company_id": {
"type": "string",
"description": "Company id (UUID)."
}
}
}Get one company by CNPJ in the connected environment. Returns company null when the CNPJ is not registered in this workspace.
| Argument | Type | Description |
|---|---|---|
| tax_id* | string | CNPJ; punctuation is optional. |
{
"type": "object",
"required": [
"tax_id"
],
"properties": {
"tax_id": {
"type": "string",
"description": "CNPJ; punctuation is optional."
}
}
}List the companies (issuers) of the workspace in the connected environment. Each company comes with its company_id, its CNPJ and setup_gaps (empty when the company is ready to issue). With tax_id it returns only that CNPJ.
| Argument | Type | Description |
|---|---|---|
| limit | number | Itens por página, de 1 a 100. |
| cursor | string | Pagination cursor from previous response |
| tax_id | string | CNPJ of a single company to return (punctuation optional). |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Itens por página, de 1 a 100."
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"tax_id": {
"type": "string",
"description": "CNPJ of a single company to return (punctuation optional)."
}
}
}Checks with the government whether the next note numbers (DPS) of a company were already used, for example when the company issued before on the government portal or in another system. Read-only: it issues nothing and never changes the numbering. It is informational: issuing already skips the numbers the government confirms as used on the first note of a company. Takes company_id or tax_id (CNPJ).
| Argument | Type | Description |
|---|---|---|
| tax_id | string | CNPJ; punctuation is optional. |
| company_id | string | Company id (UUID). |
{
"type": "object",
"properties": {
"tax_id": {
"type": "string",
"description": "CNPJ; punctuation is optional."
},
"company_id": {
"type": "string",
"description": "Company id (UUID)."
}
}
}Update the safe registration data of a company: trade name, address, default service code and municipality code. Send only what changes. It does NOT change the CNPJ, legal name, tax regime, rates, certificate (uploaded separately) or DPS numbering, and it cannot delete the company: those stay in the dashboard or the Companies API. Changing the municipality code changes the place of service of future invoices.
| Argument | Type | Description |
|---|---|---|
| address | object | Novo endereço da empresa. |
| company_id* | string | UUID of the company |
| trade_name | string | Novo nome fantasia. |
| municipality_code | string | Seven-digit IBGE municipality code. |
| default_service_code | string | null | Six-digit cTribNac service code; null removes the default. |
{
"type": "object",
"required": [
"company_id"
],
"properties": {
"address": {
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "CEP com 8 dígitos, ex.: \"60110000\"."
},
"city": {
"type": "string",
"description": "Nome da cidade, ex.: \"Fortaleza\"."
},
"state": {
"type": "string",
"description": "UF, 2 letters"
},
"number": {
"type": "string",
"description": "Número do endereço; \"S/N\" quando não houver."
},
"street": {
"type": "string",
"description": "Logradouro, ex.: \"Rua das Flores\"."
},
"district": {
"type": "string",
"description": "Bairro."
},
"complement": {
"type": "string",
"description": "Complemento, ex.: \"Sala 3\"."
}
},
"description": "Novo endereço da empresa."
},
"company_id": {
"type": "string",
"description": "UUID of the company"
},
"trade_name": {
"type": "string",
"maxLength": 200,
"description": "Novo nome fantasia."
},
"municipality_code": {
"type": "string",
"description": "Seven-digit IBGE municipality code."
},
"default_service_code": {
"type": [
"string",
"null"
],
"description": "Six-digit cTribNac service code; null removes the default."
}
}
}Credit balance of the workspace (notes left in the plan plus avulso notes) and, optionally, the recent credit history. It answers questions such as "quantas notas ainda posso emitir?" or "onde foram meus créditos?". With include_history=true it also returns the latest credit transactions, paginated with limit and cursor.
| Argument | Type | Description |
|---|---|---|
| limit | number | Itens do histórico por página, de 1 a 100. |
| cursor | string | Pagination cursor from previous response |
| include_history | boolean | Also return recent credit transactions. |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Itens do histórico por página, de 1 a 100."
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"include_history": {
"type": "boolean",
"default": false,
"description": "Also return recent credit transactions."
}
}
}Start an import of invoices from a spreadsheet. Send the file as text: `content` with the CSV (header in the first line, columns such as cnpj_prestador, tomador_documento, tomador_nome, tomador_email, descricao, valor, codigo_servico, data_competencia), or `content_base64` with an .xlsx. Up to 2,000 rows and 1 MB here (bigger files: POST /v1/imports). Reading is asynchronous: the import starts as "processing" and becomes "ready" for review; nothing is issued until the rows are emitted. The issuing company comes from the CNPJ column or from `company_id`.
| Argument | Type | Description |
|---|---|---|
| content | string | The CSV text |
| file_name | string | Defaults to import.csv, or import.xlsx with content_base64 |
| company_id | string | UUID of the company that issues rows without a CNPJ |
| content_base64 | string | An .xlsx file encoded in base64 (CSV in `content` is preferred) |
{
"type": "object",
"required": [],
"properties": {
"content": {
"type": "string",
"description": "The CSV text"
},
"file_name": {
"type": "string",
"description": "Defaults to import.csv, or import.xlsx with content_base64"
},
"company_id": {
"type": "string",
"description": "UUID of the company that issues rows without a CNPJ"
},
"content_base64": {
"type": "string",
"description": "An .xlsx file encoded in base64 (CSV in `content` is preferred)"
}
}
}Discard an import that has not been emitted yet. Nothing is issued. Not possible once emitting or done.
| Argument | Type | Description |
|---|---|---|
| import_id* | string | UUID of the import |
{
"type": "object",
"required": [
"import_id"
],
"properties": {
"import_id": {
"type": "string",
"description": "UUID of the import"
}
}
}Issue every valid row of the import, in chunks. Idempotent: running it again sends only the rows not sent yet. If credits run out, rows are left awaiting_credits and go out on a later run after a top-up. Progress shows in the import status. Issuing many notes cannot be undone. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs. The preview shows the rows to issue, the total amount, the companies and whether e-mails go out (they do not through this tool).
| Argument | Type | Description |
|---|---|---|
| confirm | boolean | true runs the action. Without it nothing changes and only a preview is returned. |
| import_id* | string | UUID of the import |
{
"type": "object",
"required": [
"import_id"
],
"properties": {
"confirm": {
"type": "boolean",
"description": "true runs the action. Without it nothing changes and only a preview is returned."
},
"import_id": {
"type": "string",
"description": "UUID of the import"
}
}
}Correct one row of an import that is ready, and check it again. Send the invoice fields that change in `item` (amount, competenceDate, customer {name, taxId, email}, service {description, code}); customer and service are merged field by field, so sending only the e-mail keeps the name. The company of a row (companyId, companyTaxId) cannot be changed. Returns the row, valid or still invalid with the reason.
| Argument | Type | Description |
|---|---|---|
| item* | object | Invoice fields to change |
| line* | number | Line of the row in the import (the line number of each row) |
| import_id* | string | UUID of the import |
{
"type": "object",
"required": [
"import_id",
"line",
"item"
],
"properties": {
"item": {
"type": "object",
"description": "Invoice fields to change"
},
"line": {
"type": "number",
"description": "Line of the row in the import (the line number of each row)"
},
"import_id": {
"type": "string",
"description": "UUID of the import"
}
}
}Status and counters of an import: processing, ready (to review), emitting, done or failed. Counters: total, valid, invalid, accepted, authorized, awaiting_credits (turned away for lack of credits, not errors), failed, pending, and valid_amount in BRL. While processing, rows_expected tells how many rows the file has.
| Argument | Type | Description |
|---|---|---|
| import_id* | string | UUID of the import |
{
"type": "object",
"required": [
"import_id"
],
"properties": {
"import_id": {
"type": "string",
"description": "UUID of the import"
}
}
}List the recent imports in the connected environment, newest first, with their counters, including the ones waiting for credits.
| Argument | Type | Description |
|---|---|---|
| limit | number | 1 to 20, default 10 |
{
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "number",
"description": "1 to 20, default 10"
}
}
}Rows of an import, one page at a time (at most 200). Filter with status valid, invalid, queued, accepted or rejected; "invalid" lists the rows with problems and the reason. Pass next_cursor to get the next page.
| Argument | Type | Description |
|---|---|---|
| limit | number | 1 to 200, default 50 |
| cursor | string | next_cursor of the previous page |
| status | string | Filtra as linhas pela situação. |
| import_id* | string | UUID of the import |
{
"type": "object",
"required": [
"import_id"
],
"properties": {
"limit": {
"type": "number",
"description": "1 to 200, default 50"
},
"cursor": {
"type": "string",
"description": "next_cursor of the previous page"
},
"status": {
"enum": [
"valid",
"invalid",
"queued",
"accepted",
"rejected"
],
"type": "string",
"description": "Filtra as linhas pela situação."
},
"import_id": {
"type": "string",
"description": "UUID of the import"
}
}
}Dashboard summary of the workspace ("Visão geral") for the last 7 or 30 calendar days (America/Sao_Paulo, today included): how many notes (NFS-e) were authorized, rejected or still processing, the number of authorized notes per day, and the 5 most recent notes. It answers questions such as "como estão minhas notas?", "quantas notas emiti este mês?" or "tem alguma nota rejeitada?". It returns counts, not revenue totals.
| Argument | Type | Description |
|---|---|---|
| period | string | Window ending today: 7d (default) or 30d. |
{
"type": "object",
"properties": {
"period": {
"enum": [
"7d",
"30d"
],
"type": "string",
"default": "7d",
"description": "Window ending today: 7d (default) or 30d."
}
}
}Calculate taxes before issuing, without issuing a document, reserving credits or creating a DPS. By default it is for an NFS-e (amount, service_code...). Arquivix Notas never guesses a rate. Issuing and validating fill the same values in the note; values sent in the item win.
| Argument | Type | Description |
|---|---|---|
| amount | number | Valor do serviço em reais, ex.: 1500.00. |
| deduction | number | Deduction from the ISS tax base in BRL, declared by the issuer. |
| company_id | string | UUID da empresa emissora. |
| description | string | Descrição do serviço (opcional). |
| service_code | string | Código de serviço cTribNac com 6 dígitos, ex.: "010101"; padrão o da empresa. |
| company_tax_id | string | CNPJ da empresa emissora, só dígitos; alternativa a company_id. |
| competence_date | string | Data de competência AAAA-MM-DD; padrão hoje (horário de Brasília). |
| municipality_code | string | Código IBGE do município com 7 dígitos, ex.: "2304400"; padrão o da empresa. |
{
"type": "object",
"required": [],
"properties": {
"amount": {
"type": "number",
"description": "Valor do serviço em reais, ex.: 1500.00."
},
"deduction": {
"type": "number",
"description": "Deduction from the ISS tax base in BRL, declared by the issuer."
},
"company_id": {
"type": "string",
"description": "UUID da empresa emissora."
},
"description": {
"type": "string",
"description": "Descrição do serviço (opcional)."
},
"service_code": {
"type": "string",
"description": "Código de serviço cTribNac com 6 dígitos, ex.: \"010101\"; padrão o da empresa."
},
"company_tax_id": {
"type": "string",
"description": "CNPJ da empresa emissora, só dígitos; alternativa a company_id."
},
"competence_date": {
"type": "string",
"description": "Data de competência AAAA-MM-DD; padrão hoje (horário de Brasília)."
},
"municipality_code": {
"type": "string",
"description": "Código IBGE do município com 7 dígitos, ex.: \"2304400\"; padrão o da empresa."
}
}
}Cancel an invoice. A queued (scheduled or not yet issued) invoice is cancelled immediately; an authorized NFS-e returns status "cancelling" while the cancellation event is sent to the Sefin. An invoice still being issued (status "processing") registers the request and stays "processing" with the request recorded; if it is authorized it is cancelled automatically at the Sefin and the credit is not refunded, and if the emission is rejected or fails the request is discarded. Issued NFS-e and invoices being issued require a 15-255 character description. Cancelling cannot be undone. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs.
| Argument | Type | Description |
|---|---|---|
| reason | string | Motivo do cancelamento da NFS-e: issue_error (erro na emissão), service_not_provided (serviço não prestado) ou other. |
| confirm | boolean | true runs the action. Without it nothing changes and only a preview is returned. |
| invoice_id* | string | UUID of the invoice |
| description | string | Free-text justification; required (15-255 chars) for an authorized NFS-e or an invoice being issued (processing) |
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"reason": {
"enum": [
"issue_error",
"service_not_provided",
"other"
],
"type": "string",
"description": "Motivo do cancelamento da NFS-e: issue_error (erro na emissão), service_not_provided (serviço não prestado) ou other."
},
"confirm": {
"type": "boolean",
"description": "true runs the action. Without it nothing changes and only a preview is returned."
},
"invoice_id": {
"type": "string",
"description": "UUID of the invoice"
},
"description": {
"type": "string",
"maxLength": 255,
"description": "Free-text justification; required (15-255 chars) for an authorized NFS-e or an invoice being issued (processing)"
}
}
}Get the PDF of an authorized NFS-e invoice, by invoice_id or by access_key. By default it returns a temporary signed download link (valid for one hour), because the PDF itself is large. With inline: true it returns the file content as a base64-encoded string instead.
| Argument | Type | Description |
|---|---|---|
| inline | boolean | true returns pdf_base64 instead of a link. Default false (link). |
| access_key | string | The NFS-e access key. Either this or invoice_id (required for NFS-e when there is no invoice_id). |
| invoice_id | string | UUID of the invoice (NFS-e). Either this or access_key. |
{
"type": "object",
"required": [],
"properties": {
"inline": {
"type": "boolean",
"description": "true returns pdf_base64 instead of a link. Default false (link)."
},
"access_key": {
"type": "string",
"description": "The NFS-e access key. Either this or invoice_id (required for NFS-e when there is no invoice_id)."
},
"invoice_id": {
"type": "string",
"description": "UUID of the invoice (NFS-e). Either this or access_key."
}
}
}Resend an authorized NFS-e (PDF and XML) by email. By default it goes to the customer email on the invoice; with email it goes to that address instead. Fails when the invoice is not authorized yet, is cancelled, or has no customer email and none is given.
| Argument | Type | Description |
|---|---|---|
| string | Optional destination address, instead of the customer email on the invoice | |
| invoice_id* | string | UUID of the authorized invoice |
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"email": {
"type": "string",
"maxLength": 254,
"description": "Optional destination address, instead of the customer email on the invoice"
},
"invoice_id": {
"type": "string",
"description": "UUID of the authorized invoice"
}
}
}Get one NFS-e by its internal invoice id (the id returned when the invoice is issued or listed), including status, amounts, customer and the events timeline (every status change with its reason and time). The timeline explains why a note was rejected or what happened to it. Instead of invoice_id it takes external_id, your own reference sent when issuing: it searches NFS-e (type is not needed) and returns the note; since an external_id is not unique, when more than one note has it it returns ambiguous: true with the matches (id, type, status, createdAt) instead of a note. Fails when the id does not exist in this workspace and environment.
| Argument | Type | Description |
|---|---|---|
| invoice_id | string | Internal invoice id (UUID). Required unless external_id is given. |
| external_id | string | Your own reference of the note (the external_id sent when issuing), exact match, any type. Alternative to invoice_id. |
{
"type": "object",
"properties": {
"invoice_id": {
"type": "string",
"description": "Internal invoice id (UUID). Required unless external_id is given."
},
"external_id": {
"type": "string",
"description": "Your own reference of the note (the external_id sent when issuing), exact match, any type. Alternative to invoice_id."
}
}
}Generate a temporary signed download URL for the PDF or XML of an authorized NFS-e invoice, by invoice_id or by access_key. The URL expires in one hour.
| Argument | Type | Description |
|---|---|---|
| format* | string | Document format to download |
| access_key | string | The NFS-e access key. Either this or invoice_id (required for NFS-e when there is no invoice_id). |
| invoice_id | string | UUID of the invoice (NFS-e). Either this or access_key. |
{
"type": "object",
"required": [
"format"
],
"properties": {
"format": {
"enum": [
"pdf",
"xml"
],
"type": "string",
"description": "Document format to download"
},
"access_key": {
"type": "string",
"description": "The NFS-e access key. Either this or invoice_id (required for NFS-e when there is no invoice_id)."
},
"invoice_id": {
"type": "string",
"description": "UUID of the invoice (NFS-e). Either this or access_key."
}
}
}Generate a temporary download link for the month package of one company: a ZIP with the XML and PDF of every authorized or cancelled NFS-e whose competence is in the month, plus resumo.csv for the accountant. The link opens without login and expires in 7 days. Fails when the month has no notes or more than 500.
| Argument | Type | Description |
|---|---|---|
| month* | string | Competence month, YYYY-MM |
| tax_id* | string | CNPJ of the company (punctuation optional) |
{
"type": "object",
"required": [
"tax_id",
"month"
],
"properties": {
"month": {
"type": "string",
"description": "Competence month, YYYY-MM"
},
"tax_id": {
"type": "string",
"description": "CNPJ of the company (punctuation optional)"
}
}
}Emits a new NFS-e (Nota Fiscal de Serviços Eletrônica). The issuing company is identified by company_tax_id (its CNPJ) or company_id. Minimal call: company_tax_id + amount. The customer is optional (omit it for an anonymous consumer invoice), and the competence date, service code and municipality default to today and to the company settings. Returns immediately with the queued status; the final status comes later. With emission_type SCHEDULE or RECURRING nothing is issued yet: it returns the schedule (schedule_id) instead. Without credits it fails with an insufficient credits error. It returns schedule_id.
| Argument | Type | Description |
|---|---|---|
| notes | string | Free text printed on the invoice as complementary information. Does not change any tax. |
| amount | number | Total value of the service in BRL. Either this or services, not both. |
| customer | object | Tomador. Optional: omit it for an invoice without tomador. When sent with any data, tax_id (CPF or CNPJ) is required. |
| discount | number | Unconditional discount in BRL (>= 0, at most the amount). |
| services | array | Itemized alternative to amount: the total is the sum of quantity x unit_price. |
| deduction | number | Deduction from the ISS tax base in BRL, declared by the issuer (> 0 and less than amount minus discount). The issuer is responsible for the declared value; Arquivix Notas does not check whether the deduction is allowed. |
| company_id | string | UUID of the issuing company. Wins over company_tax_id when both are sent. |
| send_email | boolean | Email the authorized invoice to the customer. |
| description | string | Optional service description (used with amount). When omitted, the name of the service code is used. |
| external_id | string | Your own reference for this invoice. |
| service_code | string | Optional national service code (6 digits). Inherits company.defaultServiceCode when omitted, then 100901 (LC 116 item 10.09). |
| emission_type | string | IMMEDIATE (default) issues now. SCHEDULE issues once on competence_date; RECURRING issues repeatedly starting on competence_date (needs recurrence_frequency). Both create a schedule and return its id: runs happen at 09:00 America/Sao_Paulo on business days, a weekend date runs on Monday, and each note takes the competence of the day it runs. Manage schedules with the schedule_* tools. |
| company_tax_id | string | CNPJ of the issuing company (punctuation optional). Alternative to company_id. |
| purchase_order | string | Purchase order, service order or project number the customer asked to see on the invoice. Does not change any tax. |
| competence_date | string | YYYY-MM-DD. Defaults to today (America/Sao_Paulo). With emission_type SCHEDULE or RECURRING it is required and is the date of the first run (from tomorrow on). |
| idempotency_key | string | Repeat the same key to avoid issuing twice. |
| municipality_code | string | Optional IBGE place of service (7 digits). Inherits company.municipalityCode when omitted. |
| recurrence_ends_on | string | YYYY-MM-DD, optional. Last day the recurrence may run. Without it, it runs until paused or cancelled. |
| service_profile_id | string | Optional service tax profile id (UUID). |
| recurrence_frequency | string | Required with emission_type RECURRING. |
{
"type": "object",
"required": [],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000,
"description": "Free text printed on the invoice as complementary information. Does not change any tax."
},
"amount": {
"type": "number",
"description": "Total value of the service in BRL. Either this or services, not both."
},
"customer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nome ou razão social do tomador."
},
"email": {
"type": "string",
"description": "E-mail do tomador; recebe a nota quando send_email é true."
},
"tax_id": {
"type": "string",
"description": "CPF or CNPJ of the customer"
},
"address": {
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "CEP com 8 dígitos, ex.: \"60110000\"."
},
"city": {
"type": "string",
"description": "Cidade."
},
"state": {
"type": "string",
"description": "UF com 2 letras, ex.: \"CE\"."
},
"street": {
"type": "string",
"description": "Logradouro, ex.: \"Rua das Flores\"."
}
},
"description": "Endereço do tomador no Brasil (opcional)."
},
"foreign": {
"type": "object",
"required": [
"country",
"postal_code",
"city",
"region",
"street",
"number",
"district"
],
"properties": {
"city": {
"type": "string",
"description": "Cidade."
},
"number": {
"type": "string",
"description": "Número do endereço; \"S/N\" quando não houver."
},
"region": {
"type": "string",
"description": "State, province or region"
},
"street": {
"type": "string",
"description": "Logradouro, ex.: \"Rua das Flores\"."
},
"tax_id": {
"type": "string",
"description": "Tax id in the customer's country"
},
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 code, other than BR"
},
"district": {
"type": "string",
"description": "Bairro."
},
"complement": {
"type": "string",
"description": "Complemento, ex.: \"Sala 3\"."
},
"postal_code": {
"type": "string",
"description": "Código postal no país do cliente."
},
"no_tax_id_reason": {
"enum": [
"exempt",
"not_required"
],
"type": "string",
"description": "Only when the customer has no tax id"
}
},
"description": "Customer outside Brazil. Replaces tax_id and address; name is then required. It does not declare a service export."
}
},
"description": "Tomador. Optional: omit it for an invoice without tomador. When sent with any data, tax_id (CPF or CNPJ) is required."
},
"discount": {
"type": "number",
"description": "Unconditional discount in BRL (>= 0, at most the amount)."
},
"services": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"quantity",
"unit_price"
],
"properties": {
"quantity": {
"type": "number",
"description": "Quantidade, ex.: 2."
},
"unit_price": {
"type": "number",
"description": "Preço unitário em reais, ex.: 150.00."
},
"description": {
"type": "string",
"description": "Descrição do item."
}
}
},
"description": "Itemized alternative to amount: the total is the sum of quantity x unit_price."
},
"deduction": {
"type": "number",
"description": "Deduction from the ISS tax base in BRL, declared by the issuer (> 0 and less than amount minus discount). The issuer is responsible for the declared value; Arquivix Notas does not check whether the deduction is allowed."
},
"company_id": {
"type": "string",
"description": "UUID of the issuing company. Wins over company_tax_id when both are sent."
},
"send_email": {
"type": "boolean",
"description": "Email the authorized invoice to the customer."
},
"description": {
"type": "string",
"description": "Optional service description (used with amount). When omitted, the name of the service code is used."
},
"external_id": {
"type": "string",
"description": "Your own reference for this invoice."
},
"service_code": {
"type": "string",
"description": "Optional national service code (6 digits). Inherits company.defaultServiceCode when omitted, then 100901 (LC 116 item 10.09)."
},
"emission_type": {
"enum": [
"IMMEDIATE",
"SCHEDULE",
"RECURRING"
],
"type": "string",
"description": "IMMEDIATE (default) issues now. SCHEDULE issues once on competence_date; RECURRING issues repeatedly starting on competence_date (needs recurrence_frequency). Both create a schedule and return its id: runs happen at 09:00 America/Sao_Paulo on business days, a weekend date runs on Monday, and each note takes the competence of the day it runs. Manage schedules with the schedule_* tools."
},
"company_tax_id": {
"type": "string",
"description": "CNPJ of the issuing company (punctuation optional). Alternative to company_id."
},
"purchase_order": {
"type": "string",
"maxLength": 60,
"description": "Purchase order, service order or project number the customer asked to see on the invoice. Does not change any tax."
},
"competence_date": {
"type": "string",
"description": "YYYY-MM-DD. Defaults to today (America/Sao_Paulo). With emission_type SCHEDULE or RECURRING it is required and is the date of the first run (from tomorrow on)."
},
"idempotency_key": {
"type": "string",
"description": "Repeat the same key to avoid issuing twice."
},
"municipality_code": {
"type": "string",
"description": "Optional IBGE place of service (7 digits). Inherits company.municipalityCode when omitted."
},
"recurrence_ends_on": {
"type": "string",
"description": "YYYY-MM-DD, optional. Last day the recurrence may run. Without it, it runs until paused or cancelled."
},
"service_profile_id": {
"type": "string",
"description": "Optional service tax profile id (UUID)."
},
"recurrence_frequency": {
"enum": [
"WEEKLY",
"BIWEEKLY",
"MONTHLY"
],
"type": "string",
"description": "Required with emission_type RECURRING."
}
}
}Emits up to 50 NFS-e in one call, for one company or several (for example the rows of a spreadsheet). Longer lists go in several batches of 50. Each item takes the same fields as a single NFS-e (company_tax_id or company_id, plus amount or services; customer, competence_date, service_code etc. are optional). With a stable idempotency_key per item (for example "<file>-row-<n>"), repeating the same batch after a timeout issues nothing twice. Items are checked one by one: invalid items come back rejected with an error and are not saved, the valid ones are saved together. Results are keyed by index (the item position, starting at 0); each rejected row carries its error.message. Accepted items are already saved, and sending them again without the same idempotency_key creates new invoices. Items with replayed true were already saved by an earlier call with the same idempotency_key. Issuance is asynchronous: each invoice starts queued and gets its final status later. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs. The preview shows the number of invoices, the total amount, the companies and how many e-mails go out; items that would be rejected are listed with their error.
| Argument | Type | Description |
|---|---|---|
| confirm | boolean | true runs the action. Without it nothing changes and only a preview is returned. |
| invoices* | array | Invoices to issue (1 to 50). Each item has the same fields as a single NFS-e; items may belong to different companies. |
{
"type": "object",
"required": [
"invoices"
],
"properties": {
"confirm": {
"type": "boolean",
"description": "true runs the action. Without it nothing changes and only a preview is returned."
},
"invoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"notes": {
"type": "string",
"maxLength": 2000,
"description": "Free text printed on the invoice as complementary information. Does not change any tax."
},
"amount": {
"type": "number",
"description": "Total value of the service in BRL. Either this or services, not both."
},
"customer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nome ou razão social do tomador."
},
"email": {
"type": "string",
"description": "E-mail do tomador; recebe a nota quando send_email é true."
},
"tax_id": {
"type": "string",
"description": "CPF or CNPJ of the customer"
},
"address": {
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "CEP com 8 dígitos, ex.: \"60110000\"."
},
"city": {
"type": "string",
"description": "Cidade."
},
"state": {
"type": "string",
"description": "UF com 2 letras, ex.: \"CE\"."
},
"street": {
"type": "string",
"description": "Logradouro, ex.: \"Rua das Flores\"."
}
},
"description": "Endereço do tomador no Brasil (opcional)."
},
"foreign": {
"type": "object",
"required": [
"country",
"postal_code",
"city",
"region",
"street",
"number",
"district"
],
"properties": {
"city": {
"type": "string",
"description": "Cidade."
},
"number": {
"type": "string",
"description": "Número do endereço; \"S/N\" quando não houver."
},
"region": {
"type": "string",
"description": "State, province or region"
},
"street": {
"type": "string",
"description": "Logradouro, ex.: \"Rua das Flores\"."
},
"tax_id": {
"type": "string",
"description": "Tax id in the customer's country"
},
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 code, other than BR"
},
"district": {
"type": "string",
"description": "Bairro."
},
"complement": {
"type": "string",
"description": "Complemento, ex.: \"Sala 3\"."
},
"postal_code": {
"type": "string",
"description": "Código postal no país do cliente."
},
"no_tax_id_reason": {
"enum": [
"exempt",
"not_required"
],
"type": "string",
"description": "Only when the customer has no tax id"
}
},
"description": "Customer outside Brazil. Replaces tax_id and address; name is then required. It does not declare a service export."
}
},
"description": "Tomador. Optional: omit it for an invoice without tomador. When sent with any data, tax_id (CPF or CNPJ) is required."
},
"discount": {
"type": "number",
"description": "Unconditional discount in BRL (>= 0, at most the amount)."
},
"services": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"quantity",
"unit_price"
],
"properties": {
"quantity": {
"type": "number",
"description": "Quantidade, ex.: 2."
},
"unit_price": {
"type": "number",
"description": "Preço unitário em reais, ex.: 150.00."
},
"description": {
"type": "string",
"description": "Descrição do item."
}
}
},
"description": "Itemized alternative to amount: the total is the sum of quantity x unit_price."
},
"deduction": {
"type": "number",
"description": "Deduction from the ISS tax base in BRL, declared by the issuer (> 0 and less than amount minus discount). The issuer is responsible for the declared value; Arquivix Notas does not check whether the deduction is allowed."
},
"company_id": {
"type": "string",
"description": "UUID of the issuing company. Wins over company_tax_id when both are sent."
},
"send_email": {
"type": "boolean",
"description": "Email the authorized invoice to the customer."
},
"description": {
"type": "string",
"description": "Optional service description (used with amount). When omitted, the name of the service code is used."
},
"external_id": {
"type": "string",
"description": "Your own reference for this invoice."
},
"service_code": {
"type": "string",
"description": "Optional national service code (6 digits). Inherits company.defaultServiceCode when omitted, then 100901 (LC 116 item 10.09)."
},
"emission_type": {
"enum": [
"IMMEDIATE",
"SCHEDULE",
"RECURRING"
],
"type": "string",
"description": "IMMEDIATE (default) issues now. SCHEDULE issues once on competence_date; RECURRING issues repeatedly starting on competence_date (needs recurrence_frequency). Both create a schedule and return its id: runs happen at 09:00 America/Sao_Paulo on business days, a weekend date runs on Monday, and each note takes the competence of the day it runs. Manage schedules with the schedule_* tools."
},
"company_tax_id": {
"type": "string",
"description": "CNPJ of the issuing company (punctuation optional). Alternative to company_id."
},
"purchase_order": {
"type": "string",
"maxLength": 60,
"description": "Purchase order, service order or project number the customer asked to see on the invoice. Does not change any tax."
},
"competence_date": {
"type": "string",
"description": "YYYY-MM-DD. Defaults to today (America/Sao_Paulo). With emission_type SCHEDULE or RECURRING it is required and is the date of the first run (from tomorrow on)."
},
"idempotency_key": {
"type": "string",
"description": "Repeat the same key to avoid issuing twice."
},
"municipality_code": {
"type": "string",
"description": "Optional IBGE place of service (7 digits). Inherits company.municipalityCode when omitted."
},
"recurrence_ends_on": {
"type": "string",
"description": "YYYY-MM-DD, optional. Last day the recurrence may run. Without it, it runs until paused or cancelled."
},
"service_profile_id": {
"type": "string",
"description": "Optional service tax profile id (UUID)."
},
"recurrence_frequency": {
"enum": [
"WEEKLY",
"BIWEEKLY",
"MONTHLY"
],
"type": "string",
"description": "Required with emission_type RECURRING."
}
}
},
"maxItems": 50,
"minItems": 1,
"description": "Invoices to issue (1 to 50). Each item has the same fields as a single NFS-e; items may belong to different companies."
}
}
}List NFS-e invoices for the tenant with optional status and origin filters and cursor pagination. To find a note by your own reference (the external_id you sent when issuing) pass external_id: exact match, any type, and it is not unique, so more than one note can come back.
| Argument | Type | Description |
|---|---|---|
| limit | number | Itens por página, de 1 a 1000. |
| cursor | string | Pagination cursor from previous response |
| origin | string | Filter by where the invoice came from (dashboard, api, integration, schedule, import): dashboard = issued in the web app, integration = a sale from a connected payment platform, schedule, import, api = sent by a client or AI agent |
| status | string | Filter by status (queued, processing, authorized, rejected, retry_pending, reconciliation_required, manual_review, failed, cancelling, cancelled) |
| external_id | string | Your own reference of the note (the external_id sent when issuing), exact match. Not unique: it can return more than one note. |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"default": 50,
"maximum": 1000,
"minimum": 1,
"description": "Itens por página, de 1 a 1000."
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"origin": {
"type": "string",
"description": "Filter by where the invoice came from (dashboard, api, integration, schedule, import): dashboard = issued in the web app, integration = a sale from a connected payment platform, schedule, import, api = sent by a client or AI agent"
},
"status": {
"type": "string",
"description": "Filter by status (queued, processing, authorized, rejected, retry_pending, reconciliation_required, manual_review, failed, cancelling, cancelled)"
},
"external_id": {
"type": "string",
"description": "Your own reference of the note (the external_id sent when issuing), exact match. Not unique: it can return more than one note."
}
}
}Returns the status of an NFS-e invoice by its access key.
| Argument | Type | Description |
|---|---|---|
| access_key* | string | The NFS-e access key (chave de acesso) |
{
"type": "object",
"required": [
"access_key"
],
"properties": {
"access_key": {
"type": "string",
"description": "The NFS-e access key (chave de acesso)"
}
}
}Issues a new NFS-e copying a previous one: same company, customer, service description, service code, municipality, amount, discount, deduction, purchase order and notes. Typical request: "emit the same invoice as last month for customer X". The previous note is identified by its invoice_id or access_key. Optional amount, description and competence_date replace the copied values (a new amount drops the copied discount and deduction); competence_date defaults to today (America/Sao_Paulo). It uses a credit like a new NFS-e and returns immediately with the queued status.
| Argument | Type | Description |
|---|---|---|
| amount | number | New total in BRL. Defaults to the copied amount. |
| access_key | string | Access key of the note to copy. Either this or invoice_id. |
| invoice_id | string | UUID of the note to copy. Either this or access_key. |
| description | string | New service description. Defaults to the copied one. |
| competence_date | string | YYYY-MM-DD. Defaults to today (America/Sao_Paulo). |
| idempotency_key | string | Repeat the same key to avoid issuing twice. |
{
"type": "object",
"required": [],
"properties": {
"amount": {
"type": "number",
"description": "New total in BRL. Defaults to the copied amount."
},
"access_key": {
"type": "string",
"description": "Access key of the note to copy. Either this or invoice_id."
},
"invoice_id": {
"type": "string",
"description": "UUID of the note to copy. Either this or access_key."
},
"description": {
"type": "string",
"description": "New service description. Defaults to the copied one."
},
"competence_date": {
"type": "string",
"description": "YYYY-MM-DD. Defaults to today (America/Sao_Paulo)."
},
"idempotency_key": {
"type": "string",
"description": "Repeat the same key to avoid issuing twice."
}
}
}Resolves one invoice stuck in status "manual_review" (the portal did not confirm whether the NFS-e exists). Only valid in that status; otherwise it fails and tells the current status. Actions: "retry" sends the invoice back to reconciliation with the same DPS: the portal is asked for that DPS before anything is sent, so it never issues a second NFS-e; it ends authorized, rejected, or back in review if the portal is still silent. It is safe. "discard" asks the portal about the DPS: if the NFS-e exists the invoice becomes authorized; only when the portal confirms it was never registered is the invoice rejected (credit refunded); otherwise it stays in review. A discarded invoice leaves its number (DPS) skipped. When the invoice error code is DPS_NUMBER_USED_BY_OTHER_NFSE the portal already has that DPS number on ANOTHER NFS-e (error_message says which one): this invoice was never issued, "retry" is refused, and "discard" rejects it and refunds the credit; the sale can then be issued again as a new invoice with a new number. "discard" leaves the invoice number skipped, while "retry" does not. The platform also checks the portal automatically every 30 minutes. The result is asynchronous: the final status shows on the invoice later.
| Argument | Type | Description |
|---|---|---|
| action* | string | "retry" (safe, same DPS) or "discard" (skips the number) |
| invoice_id* | string | UUID of the invoice in manual_review |
{
"type": "object",
"required": [
"invoice_id",
"action"
],
"properties": {
"action": {
"enum": [
"retry",
"discard"
],
"type": "string",
"description": "\"retry\" (safe, same DPS) or \"discard\" (skips the number)"
},
"invoice_id": {
"type": "string",
"description": "UUID of the invoice in manual_review"
}
}
}Correct an authorized invoice by issuing a substitute. Only the service description, the purchase order and the notes can change: the customer, the competence date and the amount stay as issued (the tax authority refuses a substitute that changes them for MEI and Simples Nacional; to correct those, cancel the invoice and issue another). The original stays authorized until the substitute is authorized and only then becomes cancelled. The substitute uses a credit. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs.
| Argument | Type | Description |
|---|---|---|
| notes | string | New notes; an empty text removes them |
| confirm | boolean | true runs the action. Without it nothing changes and only a preview is returned. |
| invoice_id* | string | UUID of the authorized invoice to substitute |
| description* | string | Why the invoice is being substituted (15-255 chars) |
| purchase_order | string | New purchase order; an empty text removes it |
| service_description | string | New service description |
{
"type": "object",
"required": [
"invoice_id",
"description"
],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000,
"description": "New notes; an empty text removes them"
},
"confirm": {
"type": "boolean",
"description": "true runs the action. Without it nothing changes and only a preview is returned."
},
"invoice_id": {
"type": "string",
"description": "UUID of the authorized invoice to substitute"
},
"description": {
"type": "string",
"maxLength": 255,
"minLength": 15,
"description": "Why the invoice is being substituted (15-255 chars)"
},
"purchase_order": {
"type": "string",
"maxLength": 60,
"description": "New purchase order; an empty text removes it"
},
"service_description": {
"type": "string",
"description": "New service description"
}
}
}Cancel a schedule. This is final. Notes already issued stay.
| Argument | Type | Description |
|---|---|---|
| schedule_id* | string | UUID of the schedule |
{
"type": "object",
"required": [
"schedule_id"
],
"properties": {
"schedule_id": {
"type": "string",
"description": "UUID of the schedule"
}
}
}Get one schedule: status, next run date, attempts and the invoice body it issues.
| Argument | Type | Description |
|---|---|---|
| schedule_id* | string | UUID of the schedule |
{
"type": "object",
"required": [
"schedule_id"
],
"properties": {
"schedule_id": {
"type": "string",
"description": "UUID of the schedule"
}
}
}List scheduled (SCHEDULE) and recurring (RECURRING) invoices (NFS-e) in the connected environment. Schedules run at 09:00 America/Sao_Paulo on business days (Monday to Friday); a weekend date runs on Monday and the note takes the competence of the day it runs.
| Argument | Type | Description |
|---|---|---|
| limit | number | 1 to 200, default 50 |
| offset | number | Items to skip, default 0 |
| status | string | Filtra pela situação do agendamento. |
| company_id | string | UUID of a company |
{
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "number",
"description": "1 to 200, default 50"
},
"offset": {
"type": "number",
"description": "Items to skip, default 0"
},
"status": {
"enum": [
"active",
"paused",
"completed",
"cancelled"
],
"type": "string",
"description": "Filtra pela situação do agendamento."
},
"company_id": {
"type": "string",
"description": "UUID of a company"
}
}
}Pause an active schedule. It stops running until resumed.
| Argument | Type | Description |
|---|---|---|
| schedule_id* | string | UUID of the schedule |
{
"type": "object",
"required": [
"schedule_id"
],
"properties": {
"schedule_id": {
"type": "string",
"description": "UUID of the schedule"
}
}
}Resume a paused schedule (for example one paused after 3 failed attempts). It continues at its next occurrence; runs missed meanwhile are not issued.
| Argument | Type | Description |
|---|---|---|
| schedule_id* | string | UUID of the schedule |
{
"type": "object",
"required": [
"schedule_id"
],
"properties": {
"schedule_id": {
"type": "string",
"description": "UUID of the schedule"
}
}
}Log of every attempt to run a schedule, newest first: the due date, the day it ran, the result, the invoice it issued or the error.
| Argument | Type | Description |
|---|---|---|
| limit | number | 1 to 200, default 50 |
| offset | number | Items to skip, default 0 |
| schedule_id* | string | UUID of the schedule |
{
"type": "object",
"required": [
"schedule_id"
],
"properties": {
"limit": {
"type": "number",
"description": "1 to 200, default 50"
},
"offset": {
"type": "number",
"description": "Items to skip, default 0"
},
"schedule_id": {
"type": "string",
"description": "UUID of the schedule"
}
}
}Change a schedule. Applies to the next runs only; notes already issued do not change. Send only what changes. Changing frequency or first_date recomputes the next run.
| Argument | Type | Description |
|---|---|---|
| notes | string | Free text printed on the next notes. Send an empty text to remove it. |
| amount | number | New total in BRL |
| ends_on | string | null | YYYY-MM-DD last day, or null to run until paused or cancelled |
| customer | object | Novo tomador das próximas notas. |
| discount | number | Novo desconto incondicionado em reais. |
| deduction | number | Nova dedução da base do ISS em reais. |
| frequency | string | Repetição: WEEKLY (semanal), BIWEEKLY (quinzenal) ou MONTHLY (mensal). |
| first_date | string | YYYY-MM-DD the count of runs starts from |
| send_email | boolean | true para mandar cada nota por e-mail ao tomador. |
| description | string | Nova descrição do serviço. |
| schedule_id* | string | UUID of the schedule |
| service_code | string | Código de serviço cTribNac com 6 dígitos, ex.: "010101". |
| purchase_order | string | Purchase order printed on the next notes. Send an empty text to remove it. |
| municipality_code | string | Código IBGE do município com 7 dígitos, ex.: "2304400". |
{
"type": "object",
"required": [
"schedule_id"
],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000,
"description": "Free text printed on the next notes. Send an empty text to remove it."
},
"amount": {
"type": "number",
"description": "New total in BRL"
},
"ends_on": {
"type": [
"string",
"null"
],
"description": "YYYY-MM-DD last day, or null to run until paused or cancelled"
},
"customer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nome ou razão social do tomador."
},
"email": {
"type": "string",
"description": "E-mail do tomador."
},
"tax_id": {
"type": "string",
"description": "CPF ou CNPJ do tomador, só dígitos."
}
},
"description": "Novo tomador das próximas notas."
},
"discount": {
"type": "number",
"description": "Novo desconto incondicionado em reais."
},
"deduction": {
"type": "number",
"description": "Nova dedução da base do ISS em reais."
},
"frequency": {
"enum": [
"WEEKLY",
"BIWEEKLY",
"MONTHLY"
],
"type": "string",
"description": "Repetição: WEEKLY (semanal), BIWEEKLY (quinzenal) ou MONTHLY (mensal)."
},
"first_date": {
"type": "string",
"description": "YYYY-MM-DD the count of runs starts from"
},
"send_email": {
"type": "boolean",
"description": "true para mandar cada nota por e-mail ao tomador."
},
"description": {
"type": "string",
"description": "Nova descrição do serviço."
},
"schedule_id": {
"type": "string",
"description": "UUID of the schedule"
},
"service_code": {
"type": "string",
"description": "Código de serviço cTribNac com 6 dígitos, ex.: \"010101\"."
},
"purchase_order": {
"type": "string",
"maxLength": 60,
"description": "Purchase order printed on the next notes. Send an empty text to remove it."
},
"municipality_code": {
"type": "string",
"description": "Código IBGE do município com 7 dígitos, ex.: \"2304400\"."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 2, 2026.