biterp

list_customer_subscriptions

Referência da tool list_customer_subscriptions do MCP Server do bitERP (Assinaturas).

List Customer Subscriptions · Assinaturas

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 customer subscriptions for the current organization with cursor-based pagination.

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, including the record code (ASN-1042 for Brazilian companies; prefix depends on the tenant country; older SUBS-1042 still matches, or just 1042)
statusstringNãoFilter by subscription status Valores: trialing, active, past_due, paused, canceled.
billing_modestringNãoFilter by billing mode Valores: internal, external.
customer_idstring (UUID)NãoFilter by customer UUID
cursorstringNãoCursor for pagination
limitintegerNãoMax results per page (default 10, max 100)

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)—
data[].financial_account_idstring (UUID)—
data[].financial_category_idstring (UUID) ou null—
data[].reference_codestring ou null—
data[].statusstringValores: trialing, active, past_due, paused, canceled.
data[].billing_modestringValores: internal, external.
data[].billing_intervalstringValores: day, week, month, year.
data[].billing_interval_countinteger—
data[].currencystring—
data[].billing_cycle_anchorstring (date) ou null—
data[].current_period_startstring (date) ou null—
data[].current_period_endstring (date) ou null—
data[].next_billing_datestring (date) ou null—
data[].trial_endstring (date) ou null—
data[].start_datestring (date)—
data[].payment_terms_daysinteger—
data[].cancel_at_period_endboolean—
data[].canceled_atstring (date-time) ou null—
data[].paused_atstring (date-time) ou null—
data[].ended_atstring (date-time) ou null—
data[].descriptionstring ou null—
data[].notesstring ou null—
data[].metadataobject—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
data[].deleted_atstring (date-time) ou null—
data[].itemsarray de objetos—
data[].latest_billing_cycleobject ou null—
data[].dunning_suspend_after_daysinteger—
data[].dunning_billing_suspendedboolean—
data[].managed_by_integrationboolean—
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_customer_subscriptions",
        "arguments": {
            "tenant": "minha-empresa"
        }
    }
}

Nesta página