biterp

list_receivables

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

List Receivables · 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.

Lists internal accounts receivable records for one organization with optional filters and cursor-based pagination. A charge title (interest, fine generated during reconciliation) whose origin receivable is also in the slice is represented by that origin instead of being listed; one whose origin the filters exclude is listed as a row. Set flatten_children to list every charge title.

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.
searchstringNãoOptional search term to filter by reference code, customer name, description, notes, or the record code (CRC-1042 for Brazilian companies; prefix depends on the tenant country; older RECV-1042 still matches, or just 1042)
statusstringNãoFilter by status Valores: pending, partial, paid, overdue, cancelled.
customer_idstring (UUID)NãoFilter by customer ID
financial_account_idstring (UUID)NãoFilter by financial account ID
due_date_fromstringNãoFilter receivables with due date >= this value (ISO 8601)
due_date_tostringNãoFilter receivables with due date <= this value (ISO 8601)
cursorstringNãoCursor for pagination. Use next_cursor/previous_cursor from previous response.
limitintegerNãoMax results per page (default 10, max 100)
flatten_childrenbooleanNãoWhen true, every receivable in the slice is returned as a row, charge titles (interest and fine charged to the customer during bank reconciliation) included. By default a charge title whose origin receivable is also in the slice is represented by that origin (get_receivable returns it in charge_titles); a charge title whose origin the filters exclude is returned as a row.

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
dataarray de objetos—
data[].idstring (UUID)—
data[].tenant_idstring (UUID)—
data[].record_numberinteger—
data[].customer_idstring (UUID) ou null—
data[].customerobject ou null—
data[].financial_account_idstring (UUID)—
data[].financial_accountobject ou null—
data[].payment_method_idstring (UUID) ou null—
data[].payment_methodobject ou null—
data[].financial_category_idstring (UUID) ou null—
data[].financial_categoryobject ou null—
data[].account_scope_maskobject—
data[].reference_codestring ou null—
data[].statusstringValores: pending, partial, paid, overdue, cancelled.
data[].amountstring—
data[].discount_amountstring—
data[].surcharge_amountstring—
data[].issue_datestring (date)—
data[].due_datestring (date)—
data[].paid_atstring (date-time) ou null—
data[].installment_group_idstring (UUID) ou null—
data[].installment_numberinteger ou null—
data[].installment_countinteger ou null—
data[].descriptionstring ou null—
data[].notesstring ou null—
data[].metadataobject—
data[].created_by_user_idstring (UUID) ou null—
data[].updated_by_user_idstring (UUID) ou null—
data[].deleted_by_user_idstring (UUID) ou null—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
data[].deleted_atstring (date-time) ou null—
data[].sales_order_idstring (UUID) ou null—
data[].sales_orderobject ou null—
data[].invoice_idstring (UUID) ou null—
data[].invoiceobject ou null—
data[].parent_receivable_idstring (UUID) ou null—
data[].parentany ou null—
data[].typestringValores: standard, interest, fine.
has_next_pageboolean—
has_previous_pageboolean—
next_cursorstring ou null—
previous_cursorstring ou null—

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

Nesta página