biterp

create_payable

Referência da tool create_payable do MCP Server do bitERP (Contas a pagar).

Create Payable · Contas a pagar

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 one internal accounts payable ledger record in the ERP.

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.
supplier_idstring (UUID)SimSupplier ID (must be an existing supplier)
financial_account_idstring (UUID)SimFinancial account ID for payment (must be active). Credit card accounts are not accepted: card purchases go through the credit card routine. To record a card expense as a regular payable, use a checking, savings or cash account with the credit_card payment method.
financial_category_idstring (UUID)NãoFinancial category ID (leaf, unblocked category)
reference_codestringNãoUnique reference code (e.g., PAY-000042)
amountdecimal (string ou number)SimPayable amount as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted, must be > 0
issue_datestringSimIssue date as calendar date YYYY-MM-DD (e.g., "2026-03-01")
due_datestringSimDue date as calendar date YYYY-MM-DD (e.g., "2026-04-01")
payment_method_idstring (UUID)NãoPayment method ID
discount_amountdecimal (string ou number)NãoDiscount amount for early payment as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted
surcharge_amountdecimal (string ou number)NãoSurcharge/interest amount for late payment as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted
descriptionstringNãoPublic description
notesstringNãoInternal notes
auto_generate_transactionbooleanNãoAuto-generate financial transaction for manual accounts (cash/digital_wallet)

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
idstring (UUID)—
tenant_idstring (UUID)—
record_numberinteger—
supplier_idstring (UUID) ou null—
supplierobject ou null—
supplier.idstring (UUID)—
supplier.legal_namestring—
supplier.trade_namestring ou null—
supplier.tax_idstring ou null—
supplier.tax_id_typestring ou null—
supplier.country_codestring—
financial_account_idstring (UUID)—
financial_accountobject ou null—
financial_account.idstring (UUID)—
financial_account.namestring—
financial_account.reference_codestring ou null—
financial_account.typestringValores: checking, savings, cash, digital_wallet, gateway, credit_card.
payment_method_idstring (UUID) ou null—
payment_methodobject ou null—
payment_method.idstring (UUID)—
payment_method.codestring—
payment_method.titlesobject—
financial_category_idstring (UUID) ou null—
financial_categoryobject ou null—
financial_category.idstring (UUID)—
financial_category.namestring—
financial_category.codestring ou null—
account_scope_maskobject—
account_scope_mask.counterpartyboolean—
account_scope_mask.categoryboolean—
account_scope_mask.balanceboolean—
purchase_invoice_idstring (UUID) ou null—
purchase_invoiceobject ou null—
purchase_invoice.idstring (UUID)—
purchase_invoice.reference_codestring ou null—
parent_payable_idstring (UUID) ou null—
parentany ou null—
statement_payable_idstring (UUID) ou null—
typestringValores: standard, interest, fine, bank_fee, refund, chargeback, card_statement.
reference_codestring ou null—
statusstringValores: pending, partial, paid, overdue, cancelled.
amountstring—
discount_amountstring—
surcharge_amountstring—
issue_datestring (date)—
due_datestring (date)—
paid_atstring (date-time) ou null—
installment_group_idstring (UUID) ou null—
installment_numberinteger ou null—
installment_countinteger ou null—
descriptionstring ou null—
notesstring ou null—
metadataobject—
created_by_user_idstring (UUID) ou null—
updated_by_user_idstring (UUID) ou null—
deleted_by_user_idstring (UUID) ou null—
created_atstring (date-time)—
updated_atstring (date-time)—
deleted_atstring (date-time) ou null—
_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_payable",
        "arguments": {
            "tenant": "minha-empresa",
            "supplier_id": "<uuid>",
            "financial_account_id": "<uuid>",
            "amount": "100.00",
            "issue_date": "2026-01-15",
            "due_date": "2026-01-15"
        }
    }
}

Nesta página