biterp

pay_payable

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

Register Payable Payment · Contas a pagar

Somente leituraDestrutivaIdempotenteMundo aberto
NãoSimNã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.

Registers a manual payment for one payable by creating and allocating a manual financial transaction atomically.

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.
payable_idstring (UUID)SimThe payable ID to register manual payment for
amountdecimal (string ou number)NãoOptional payment amount as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted
payment_datestringNãoOptional payment date-time (ISO 8601)
payment_method_idstring (UUID)NãoOptional payment method ID
financial_account_idstring (UUID)NãoOptional financial account override. Credit card accounts are not accepted, and a payable on a credit card account cannot be paid here
notesstringNãoOptional notes for the manual payment

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
payableobject—
payable.idstring (UUID)—
payable.tenant_idstring (UUID)—
payable.record_numberinteger—
payable.supplier_idstring (UUID) ou null—
payable.supplierobject ou null—
payable.financial_account_idstring (UUID)—
payable.financial_accountobject ou null—
payable.payment_method_idstring (UUID) ou null—
payable.payment_methodobject ou null—
payable.financial_category_idstring (UUID) ou null—
payable.financial_categoryobject ou null—
payable.account_scope_maskobject—
payable.purchase_invoice_idstring (UUID) ou null—
payable.purchase_invoiceobject ou null—
payable.parent_payable_idstring (UUID) ou null—
payable.parentany ou null—
payable.statement_payable_idstring (UUID) ou null—
payable.typestringValores: standard, interest, fine, bank_fee, refund, chargeback, card_statement.
payable.reference_codestring ou null—
payable.statusstringValores: pending, partial, paid, overdue, cancelled.
payable.amountstring—
payable.discount_amountstring—
payable.surcharge_amountstring—
payable.issue_datestring (date)—
payable.due_datestring (date)—
payable.paid_atstring (date-time) ou null—
payable.installment_group_idstring (UUID) ou null—
payable.installment_numberinteger ou null—
payable.installment_countinteger ou null—
payable.descriptionstring ou null—
payable.notesstring ou null—
payable.metadataobject—
payable.created_by_user_idstring (UUID) ou null—
payable.updated_by_user_idstring (UUID) ou null—
payable.deleted_by_user_idstring (UUID) ou null—
payable.created_atstring (date-time)—
payable.updated_atstring (date-time)—
payable.deleted_atstring (date-time) ou null—
transactionobject—
transaction.idstring (UUID)—
transaction.tenant_idstring (UUID)—
transaction.account_idstring (UUID)—
transaction.transfer_idstring (UUID) ou null—
transaction.sourcestringValores: manual, ofx, integration, migration, transfer.
transaction.fitidstring ou null—
transaction.trn_typestring—
transaction.posted_atstring (date-time)—
transaction.posted_onstring (date)—
transaction.user_initiated_atstring (date-time) ou null—
transaction.amountstring—
transaction.orig_currency_codestring ou null—
transaction.orig_amountstring ou null—
transaction.namestring ou null—
transaction.extd_namestring ou null—
transaction.memostring ou null—
transaction.account_scope_maskobject ou null—
transaction.refnumstring ou null—
transaction.checknumstring ou null—
transaction.srvrtidstring ou null—
transaction.correct_fitidstring ou null—
transaction.correct_actionstring ou nullValores: REPLACE, DELETE.
transaction.is_reconciledboolean—
transaction.reconciled_atstring (date-time) ou null—
transaction.ignored_atstring (date-time) ou null—
transaction.ignored_by_user_idstring (UUID) ou null—
transaction.metadataobject—
transaction.created_by_user_idstring (UUID) ou null—
transaction.updated_by_user_idstring (UUID) ou null—
transaction.deleted_by_user_idstring (UUID) ou null—
transaction.created_atstring (date-time)—
transaction.updated_atstring (date-time)—
transaction.deleted_atstring (date-time) ou null—
allocationobject—
allocation.idstring (UUID)—
allocation.tenant_idstring (UUID)—
allocation.payable_idstring (UUID)—
allocation.financial_transaction_idstring (UUID)—
allocation.allocated_amountstring—
allocation.reverses_allocation_idstring (UUID) ou null—
allocation.discount_deltastring—
allocation.surcharge_deltastring—
allocation.notesstring ou null—
allocation.created_by_user_idstring (UUID) ou null—
allocation.updated_by_user_idstring (UUID) ou null—
allocation.deleted_by_user_idstring (UUID) ou null—
allocation.created_atstring (date-time)—
allocation.updated_atstring (date-time)—
allocation.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": "pay_payable",
        "arguments": {
            "tenant": "minha-empresa",
            "payable_id": "<uuid>"
        }
    }
}

Nesta página