biterp

get_receivable

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

Get Receivable · Contas a receber

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

Returns one internal accounts receivable record by ID, including settlements (receipt history with can_undo/can_reverse), remaining_amount (already net of credit-note offsets), offsets (customer credit applied to this title; not a cash movement), charge_titles and parent when this title is a charge. title_links stays out.

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.
idstring (UUID)SimThe UUID of the receivable to retrieve

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—
customer_idstring (UUID) ou null—
customerobject ou null—
customer.idstring (UUID)—
customer.legal_namestring—
customer.trade_namestring ou null—
customer.tax_idstring ou null—
customer.tax_id_typestring ou null—
customer.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—
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—
sales_order_idstring (UUID) ou null—
sales_orderobject ou null—
sales_order.idstring (UUID)—
sales_order.reference_codestring ou null—
sales_order.record_numberinteger—
sales_order.statusstringValores: draft, confirmed, cancelled.
invoice_idstring (UUID) ou null—
invoiceobject ou null—
invoice.idstring (UUID)—
invoice.reference_codestring ou null—
invoice.record_numberinteger—
invoice.statusstringValores: draft, finalized, cancelled.
invoice.invoice_datestring (date)—
parent_receivable_idstring (UUID) ou null—
parentobject ou null—
parent.idstring (UUID)—
parent.tenant_idstring (UUID)—
parent.record_numberinteger—
parent.customer_idstring (UUID) ou null—
parent.customerobject ou null—
parent.financial_account_idstring (UUID)—
parent.financial_accountobject ou null—
parent.payment_method_idstring (UUID) ou null—
parent.payment_methodobject ou null—
parent.financial_category_idstring (UUID) ou null—
parent.financial_categoryobject ou null—
parent.account_scope_maskobject—
parent.reference_codestring ou null—
parent.statusstringValores: pending, partial, paid, overdue, cancelled.
parent.amountstring—
parent.discount_amountstring—
parent.surcharge_amountstring—
parent.issue_datestring (date)—
parent.due_datestring (date)—
parent.paid_atstring (date-time) ou null—
parent.installment_group_idstring (UUID) ou null—
parent.installment_numberinteger ou null—
parent.installment_countinteger ou null—
parent.descriptionstring ou null—
parent.notesstring ou null—
parent.metadataobject—
parent.created_by_user_idstring (UUID) ou null—
parent.updated_by_user_idstring (UUID) ou null—
parent.deleted_by_user_idstring (UUID) ou null—
parent.created_atstring (date-time)—
parent.updated_atstring (date-time)—
parent.deleted_atstring (date-time) ou null—
parent.sales_order_idstring (UUID) ou null—
parent.sales_orderobject ou null—
parent.invoice_idstring (UUID) ou null—
parent.invoiceobject ou null—
parent.parent_receivable_idstring (UUID) ou null—
parent.parentany ou null—
parent.typestringValores: standard, interest, fine.
typestringValores: standard, interest, fine.
remaining_amountstring—
settlementsarray de objetos—
settlements[].allocation_idstring (UUID)—
settlements[].transaction_idstring (UUID)—
settlements[].amountstring—
settlements[].posted_atstring (date-time)—
settlements[].posted_onstring (date)—
settlements[].transaction_namestring ou null—
settlements[].transaction_extd_namestring ou null—
settlements[].transaction_memostring ou null—
settlements[].discount_deltastring ou null—
settlements[].surcharge_deltastring ou null—
settlements[].notesstring ou null—
settlements[].charge_title_idsarray de string (UUID)—
settlements[].financial_account_idstring (UUID)—
settlements[].sourcestringValores: manual, ofx, integration, migration, transfer.
settlements[].kindstringValores: settlement, reversal.
settlements[].reverses_allocation_idstring (UUID) ou null—
settlements[].can_undoboolean—
settlements[].can_reverseboolean—
settlements[].reversible_amountstring—
settlements[].account_scope_maskobject—
hidden_settlementsarray de objetos—
hidden_settlements[].financial_account_idstring (UUID)—
hidden_settlements[].countinteger—
hidden_settlements[].totalstring—
hidden_settlements[].first_posted_onstring (date)—
hidden_settlements[].last_posted_onstring (date)—
charge_titlesarray de objetos—
charge_titles[].idstring (UUID)—
charge_titles[].tenant_idstring (UUID)—
charge_titles[].record_numberinteger—
charge_titles[].customer_idstring (UUID) ou null—
charge_titles[].customerobject ou null—
charge_titles[].financial_account_idstring (UUID)—
charge_titles[].financial_accountobject ou null—
charge_titles[].payment_method_idstring (UUID) ou null—
charge_titles[].payment_methodobject ou null—
charge_titles[].financial_category_idstring (UUID) ou null—
charge_titles[].financial_categoryobject ou null—
charge_titles[].account_scope_maskobject—
charge_titles[].reference_codestring ou null—
charge_titles[].statusstringValores: pending, partial, paid, overdue, cancelled.
charge_titles[].amountstring—
charge_titles[].discount_amountstring—
charge_titles[].surcharge_amountstring—
charge_titles[].issue_datestring (date)—
charge_titles[].due_datestring (date)—
charge_titles[].paid_atstring (date-time) ou null—
charge_titles[].installment_group_idstring (UUID) ou null—
charge_titles[].installment_numberinteger ou null—
charge_titles[].installment_countinteger ou null—
charge_titles[].descriptionstring ou null—
charge_titles[].notesstring ou null—
charge_titles[].metadataobject—
charge_titles[].created_by_user_idstring (UUID) ou null—
charge_titles[].updated_by_user_idstring (UUID) ou null—
charge_titles[].deleted_by_user_idstring (UUID) ou null—
charge_titles[].created_atstring (date-time)—
charge_titles[].updated_atstring (date-time)—
charge_titles[].deleted_atstring (date-time) ou null—
charge_titles[].sales_order_idstring (UUID) ou null—
charge_titles[].sales_orderobject ou null—
charge_titles[].invoice_idstring (UUID) ou null—
charge_titles[].invoiceobject ou null—
charge_titles[].parent_receivable_idstring (UUID) ou null—
charge_titles[].parentany ou null—
charge_titles[].typestringValores: standard, interest, fine.
offsetsarray de objetos—
offsets[].idstring (UUID)—
offsets[].customer_credit_note_idstring (UUID)—
offsets[].customer_credit_note_record_numberinteger—
offsets[].receivable_idstring (UUID)—
offsets[].receivable_record_numberinteger—
offsets[].amountstring—
offsets[].kindstringValores: offset, reversal.
offsets[].offset_datestring (date)—
offsets[].reverses_offset_idstring (UUID) ou null—
offsets[].reasonstring ou null—
offsets[].notesstring ou null—
offsets[].created_by_user_idstring (UUID) ou null—
offsets[].created_atstring (date-time)—
offsets[].can_deleteboolean—
offsets[].can_reverseboolean—
reversible_manual_receiptsarray de objetos—
reversible_manual_receipts[].transaction_idstring (UUID)—
reversible_manual_receipts[].allocation_idstring (UUID)—
reversible_manual_receipts[].allocated_amountstring—
reversible_manual_receipts[].reversibleboolean—

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": "get_receivable",
        "arguments": {
            "tenant": "minha-empresa",
            "id": "<uuid>"
        }
    }
}

Nesta página