receive_receivable
Referência da tool receive_receivable do MCP Server do bitERP (Contas a receber).
Register Receivable Receipt · Contas a receber
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Não | Sim | Não | Nã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âmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
tenant | string | Sim | Defines 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_id | string (UUID) | Sim | The receivable ID to register manual receipt for |
amount | decimal (string ou number) | Não | Optional receipt amount as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted |
payment_date | string | Não | Optional receipt date-time (ISO 8601) |
payment_method_id | string (UUID) | Não | Optional payment method ID |
financial_account_id | string (UUID) | Não | Optional financial account override |
notes | string | Não | Optional 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).
| Campo | Tipo | Descrição |
|---|---|---|
receivable | object | — |
receivable.id | string (UUID) | — |
receivable.tenant_id | string (UUID) | — |
receivable.record_number | integer | — |
receivable.customer_id | string (UUID) ou null | — |
receivable.customer | object ou null | — |
receivable.financial_account_id | string (UUID) | — |
receivable.financial_account | object ou null | — |
receivable.payment_method_id | string (UUID) ou null | — |
receivable.payment_method | object ou null | — |
receivable.financial_category_id | string (UUID) ou null | — |
receivable.financial_category | object ou null | — |
receivable.account_scope_mask | object | — |
receivable.reference_code | string ou null | — |
receivable.status | string | Valores: pending, partial, paid, overdue, cancelled. |
receivable.amount | string | — |
receivable.discount_amount | string | — |
receivable.surcharge_amount | string | — |
receivable.issue_date | string (date) | — |
receivable.due_date | string (date) | — |
receivable.paid_at | string (date-time) ou null | — |
receivable.installment_group_id | string (UUID) ou null | — |
receivable.installment_number | integer ou null | — |
receivable.installment_count | integer ou null | — |
receivable.description | string ou null | — |
receivable.notes | string ou null | — |
receivable.metadata | object | — |
receivable.created_by_user_id | string (UUID) ou null | — |
receivable.updated_by_user_id | string (UUID) ou null | — |
receivable.deleted_by_user_id | string (UUID) ou null | — |
receivable.created_at | string (date-time) | — |
receivable.updated_at | string (date-time) | — |
receivable.deleted_at | string (date-time) ou null | — |
receivable.sales_order_id | string (UUID) ou null | — |
receivable.sales_order | object ou null | — |
receivable.invoice_id | string (UUID) ou null | — |
receivable.invoice | object ou null | — |
receivable.parent_receivable_id | string (UUID) ou null | — |
receivable.parent | any ou null | — |
receivable.type | string | Valores: standard, interest, fine. |
transaction | object | — |
transaction.id | string (UUID) | — |
transaction.tenant_id | string (UUID) | — |
transaction.account_id | string (UUID) | — |
transaction.transfer_id | string (UUID) ou null | — |
transaction.source | string | Valores: manual, ofx, integration, migration, transfer. |
transaction.fitid | string ou null | — |
transaction.trn_type | string | — |
transaction.posted_at | string (date-time) | — |
transaction.posted_on | string (date) | — |
transaction.user_initiated_at | string (date-time) ou null | — |
transaction.amount | string | — |
transaction.orig_currency_code | string ou null | — |
transaction.orig_amount | string ou null | — |
transaction.name | string ou null | — |
transaction.extd_name | string ou null | — |
transaction.memo | string ou null | — |
transaction.account_scope_mask | object ou null | — |
transaction.refnum | string ou null | — |
transaction.checknum | string ou null | — |
transaction.srvrtid | string ou null | — |
transaction.correct_fitid | string ou null | — |
transaction.correct_action | string ou null | Valores: REPLACE, DELETE. |
transaction.is_reconciled | boolean | — |
transaction.reconciled_at | string (date-time) ou null | — |
transaction.ignored_at | string (date-time) ou null | — |
transaction.ignored_by_user_id | string (UUID) ou null | — |
transaction.metadata | object | — |
transaction.created_by_user_id | string (UUID) ou null | — |
transaction.updated_by_user_id | string (UUID) ou null | — |
transaction.deleted_by_user_id | string (UUID) ou null | — |
transaction.created_at | string (date-time) | — |
transaction.updated_at | string (date-time) | — |
transaction.deleted_at | string (date-time) ou null | — |
allocation | object | — |
allocation.id | string (UUID) | — |
allocation.tenant_id | string (UUID) | — |
allocation.receivable_id | string (UUID) | — |
allocation.financial_transaction_id | string (UUID) | — |
allocation.allocated_amount | string | — |
allocation.reverses_allocation_id | string (UUID) ou null | — |
allocation.discount_delta | string | — |
allocation.surcharge_delta | string | — |
allocation.notes | string ou null | — |
allocation.created_by_user_id | string (UUID) ou null | — |
allocation.updated_by_user_id | string (UUID) ou null | — |
allocation.deleted_by_user_id | string (UUID) ou null | — |
allocation.created_at | string (date-time) | — |
allocation.updated_at | string (date-time) | — |
allocation.deleted_at | string (date-time) ou null | — |
_tenant | object | — |
_tenant.id | string (UUID) | — |
_tenant.slug | string | — |
_tenant.company_name | string | — |
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>"
}
}
}
