biterp

reverse_customer_credit_note_offset

Referência da tool reverse_customer_credit_note_offset do MCP Server do bitERP (Notas de crédito do cliente).

Reverse Customer Credit Note Offset · Notas de crédito do cliente

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.

Reverses one credit-note offset for its full amount. A customer credit note is a financial credit the tenant owes the customer. It is not a fiscal invoice (nota fiscal) and it does not move money. A date in a closed month is rejected. There is no delete tool: reverse is the way to undo an offset. Requires permission to update both the credit note and the receivable.

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)SimCustomer credit note ID
offset_idstring (UUID)SimOffset to reverse
reversal_datestring (date)SimDate of the reversal (YYYY-MM-DD). Not in a closed month, not before the offset.
reasonstringSimWhy the offset is reversed

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
offsetobject—
offset.idstring (UUID)—
offset.customer_credit_note_idstring (UUID)—
offset.receivable_idstring (UUID)—
offset.amountstring—
offset.offset_datestring (date)—
offset.reverses_offset_idstring (UUID) ou null—
offset.reasonstring ou null—
offset.notesstring ou null—
offset.created_atstring (date-time)—
noteobject—
note.idstring (UUID)—
note.statusstringValores: open, partial, used, cancelled.
note.balancestring—
note.cancelled_amountstring—
receivableobject—
receivable.idstring (UUID)—
receivable.statusstringValores: pending, partial, paid, overdue, cancelled.
receivable.remaining_amountstring—
receivable.paid_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": "reverse_customer_credit_note_offset",
        "arguments": {
            "tenant": "minha-empresa",
            "id": "<uuid>",
            "offset_id": "<uuid>",
            "reversal_date": "2026-01-15",
            "reason": "<reason>"
        }
    }
}

Nesta página