biterp

receive_receivable

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

Register Receivable Receipt · Contas a receber

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 receipt for one receivable 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.
receivable_idstring (UUID)SimThe receivable ID to register manual receipt for
amountdecimal (string ou number)NãoOptional receipt 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 receipt date-time (ISO 8601)
payment_method_idstring (UUID)NãoOptional payment method ID
financial_account_idstring (UUID)NãoOptional financial account override
notesstringNãoOptional notes for the manual receipt

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
receivableobject—
receivable.idstring (UUID)—
receivable.tenant_idstring (UUID)—
receivable.record_numberinteger—
receivable.customer_idstring (UUID) ou null—
receivable.customerobject ou null—
receivable.financial_account_idstring (UUID)—
receivable.financial_accountobject ou null—
receivable.payment_method_idstring (UUID) ou null—
receivable.payment_methodobject ou null—
receivable.financial_category_idstring (UUID) ou null—
receivable.financial_categoryobject ou null—
receivable.account_scope_maskobject—
receivable.reference_codestring ou null—
receivable.statusstringValores: pending, partial, paid, overdue, cancelled.
receivable.amountstring—
receivable.discount_amountstring—
receivable.surcharge_amountstring—
receivable.issue_datestring (date)—
receivable.due_datestring (date)—
receivable.paid_atstring (date-time) ou null—
receivable.installment_group_idstring (UUID) ou null—
receivable.installment_numberinteger ou null—
receivable.installment_countinteger ou null—
receivable.descriptionstring ou null—
receivable.notesstring ou null—
receivable.metadataobject—
receivable.created_by_user_idstring (UUID) ou null—
receivable.updated_by_user_idstring (UUID) ou null—
receivable.deleted_by_user_idstring (UUID) ou null—
receivable.created_atstring (date-time)—
receivable.updated_atstring (date-time)—
receivable.deleted_atstring (date-time) ou null—
receivable.sales_order_idstring (UUID) ou null—
receivable.sales_orderobject ou null—
receivable.invoice_idstring (UUID) ou null—
receivable.invoiceobject ou null—
receivable.parent_receivable_idstring (UUID) ou null—
receivable.parentany ou null—
receivable.typestringValores: standard, interest, fine.
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.receivable_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": "receive_receivable",
        "arguments": {
            "tenant": "minha-empresa",
            "receivable_id": "<uuid>"
        }
    }
}

Nesta página