Fatturazione
Rivedere riepiloghi di fatturazione, fatture, transazioni e operazioni sui piani. Gli esempi usano la modalità codice A2A. MCP espone la stessa modalità codice tramite lo strumentoexecute.
Funzioni
billing.current_plan.get
billing.current_plan.get.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | billing.view | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | billing.view |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | GET /v1/public/accounts/{account_id}/billing/current-plan |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
billing_period | str | sì |
currency | str | sì |
plan_id | str | sì |
plan_name | str | sì |
price | str | sì |
status | str | sì |
can_cancel_plan | bool | no |
can_change_plan | bool | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
billing.invoices.list
billing.invoices.list.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | billing.view | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | billing.view |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | GET /v1/public/accounts/{account_id}/billing/invoices |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
page | int | no |
page_size | int | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
items | [{"amount": str, "currency": str, "date": str, "download_url": str | null, "id": str, "status": str}] | sì |
page | int | sì |
page_size | int | sì |
total | int | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
billing.plan.cancel
billing.plan.cancel.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | billing.manage | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | billing.manage |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | POST /v1/public/accounts/{account_id}/billing/cancel-plan |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
cancel_at_period_end | bool | no |
cancel_immediately | bool | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
status | str | sì |
account_status | str | null | no |
effective_at | str | null | no |
eligible | bool | null | no |
previous_plan_id | str | null | no |
target_plan_id | str | null | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
billing.plan.change
billing.plan.change.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | billing.manage | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | billing.manage |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | POST /v1/public/accounts/{account_id}/billing/change-plan |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
plan_id | "smtp_per_mailbox" | "smtp_per_proxy" | sì |
effective_date | str | null | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
status | str | sì |
account_status | str | null | no |
effective_at | str | null | no |
eligible | bool | null | no |
previous_plan_id | str | null | no |
target_plan_id | str | null | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
billing.transactions.list
billing.transactions.list.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | billing.view | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | billing.view |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | GET /v1/public/accounts/{account_id}/billing/transactions |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
page | int | no |
page_size | int | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
page | int | sì |
page_size | int | sì |
total | int | sì |
items | [{"amount": str, "currency": str, "direction": str, "effective_at": str, "status": str, "transaction_id": str, "type": str, "balance_after"?: str | null, "description"?: str | null}] | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
billing.wallet_balance.get
billing.wallet_balance.get.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | billing.view | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | billing.view |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | GET /v1/public/accounts/{account_id}/billing/wallet-balance |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
accrued_charges | str | sì |
balance | str | sì |
currency | str | sì |
net_balance | str | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta: