biterp

create_receivable_installments

Referência da tool create_receivable_installments do MCP Server do bitERP (Contas a receber).

Create Receivable Installments · Contas a receber

Somente leituraDestrutivaIdempotenteMundo aberto
NãoNãoNãoNão

Descrição

A descrição abaixo é a que o servidor publica, em inglês, e é o texto que o agente lê para decidir quando usar a tool.

Creates multiple internal accounts receivable records by splitting one total amount into installments.

Parâmetros

ParâmetroTipoObrigatórioDescrição
tenantstringSimDefines which tenant will have data read or changed. Use list_tenants first and prefer the returned tenant slug. Writes are permanent, so when the user has more than one tenant you must confirm the tenant before any write and never assume or reuse a previous choice without confirmation. UUID is accepted only when already known safely.
customer_idstring (UUID)SimCustomer ID
financial_account_idstring (UUID)SimFinancial account ID (must be active)
reference_code_prefixstringNãoOptional custom prefix for installment codes (e.g. INV-2026/1). When omitted, installments persist with NULL reference_code.
total_amountdecimal (string ou number)SimTotal amount to split into installments as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted, must be > 0
installment_countintegerSimNumber of installments (2-120)
issue_datestringSimIssue date for all installments as calendar date YYYY-MM-DD
first_due_datestringSimFirst due date as calendar date YYYY-MM-DD. Subsequent are monthly.
payment_method_idstring (UUID)NãoPayment method ID
sales_order_idstring (UUID)NãoLinked sales order ID
descriptionstringNãoDescription for all installments
notesstringNãoNotes for all installments

Resposta

O structuredContent da resposta traz os campos abaixo (até dois níveis; o schema completo está no outputSchema publicado no tools/list).

CampoTipoDescrição
dataarray de objetos—
data[].idstring (UUID)—
data[].tenant_idstring (UUID)—
data[].record_numberinteger—
data[].customer_idstring (UUID) ou null—
data[].customerobject ou null—
data[].financial_account_idstring (UUID)—
data[].financial_accountobject ou null—
data[].payment_method_idstring (UUID) ou null—
data[].payment_methodobject ou null—
data[].financial_category_idstring (UUID) ou null—
data[].financial_categoryobject ou null—
data[].account_scope_maskobject—
data[].reference_codestring ou null—
data[].statusstringValores: pending, partial, paid, overdue, cancelled.
data[].amountstring—
data[].discount_amountstring—
data[].surcharge_amountstring—
data[].issue_datestring (date)—
data[].due_datestring (date)—
data[].paid_atstring (date-time) ou null—
data[].installment_group_idstring (UUID) ou null—
data[].installment_numberinteger ou null—
data[].installment_countinteger ou null—
data[].descriptionstring ou null—
data[].notesstring ou null—
data[].metadataobject—
data[].created_by_user_idstring (UUID) ou null—
data[].updated_by_user_idstring (UUID) ou null—
data[].deleted_by_user_idstring (UUID) ou null—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
data[].deleted_atstring (date-time) ou null—
data[].sales_order_idstring (UUID) ou null—
data[].sales_orderobject ou null—
data[].invoice_idstring (UUID) ou null—
data[].invoiceobject ou null—
data[].parent_receivable_idstring (UUID) ou null—
data[].parentany ou null—
data[].typestringValores: standard, interest, fine.
_tenantobject—
_tenant.idstring (UUID)—
_tenant.slugstring—
_tenant.company_namestring—

Exemplo de chamada

Requisição tools/call com os parâmetros obrigatórios. Os valores são ilustrativos: troque minha-empresa pelo tenant devolvido por list_tenants e cada <...> por um valor real.

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "create_receivable_installments",
        "arguments": {
            "tenant": "minha-empresa",
            "customer_id": "<uuid>",
            "financial_account_id": "<uuid>",
            "total_amount": "100.00",
            "installment_count": 2,
            "issue_date": "2026-01-15",
            "first_due_date": "2026-01-15"
        }
    }
}

Nesta página