Facturation
Consulter les résumés de facturation, factures, transactions et opérations de forfait. Les exemples utilisent le mode code A2A. MCP expose le même mode code via son outilexecute.
Fonctions
billing.current_plan.get
billing.current_plan.get.
| Propriété | Valeur | Propriété | Valeur |
|---|---|---|---|
| Autorisation requise | billing.view | Authentification requise | oui |
| Mode d’exécution | sync | Capacité | billing.view |
| Type de ressource | account | Champ d’ID de ressource | account_id |
| Route API publique | GET /v1/public/accounts/{account_id}/billing/current-plan |
Arguments
Arguments
| Nom | Type | Requis |
|---|---|---|
account_id | str | oui |
Retours
Retours
| Champ | Type | Requis |
|---|---|---|
billing_period | str | oui |
currency | str | oui |
plan_id | str | oui |
plan_name | str | oui |
price | str | oui |
status | str | oui |
can_cancel_plan | bool | non |
can_change_plan | bool | non |
Exemple A2A
Exemple A2A
Requête:Réponse:
Exemple MCP
Exemple MCP
Requête:Réponse:
billing.invoices.list
billing.invoices.list.
| Propriété | Valeur | Propriété | Valeur |
|---|---|---|---|
| Autorisation requise | billing.view | Authentification requise | oui |
| Mode d’exécution | sync | Capacité | billing.view |
| Type de ressource | account | Champ d’ID de ressource | account_id |
| Route API publique | GET /v1/public/accounts/{account_id}/billing/invoices |
Arguments
Arguments
| Nom | Type | Requis |
|---|---|---|
account_id | str | oui |
page | int | non |
page_size | int | non |
Retours
Retours
| Champ | Type | Requis |
|---|---|---|
items | [{"amount": str, "currency": str, "date": str, "download_url": str | null, "id": str, "status": str}] | oui |
page | int | oui |
page_size | int | oui |
total | int | oui |
Exemple A2A
Exemple A2A
Requête:Réponse:
Exemple MCP
Exemple MCP
Requête:Réponse:
billing.plan.cancel
billing.plan.cancel.
| Propriété | Valeur | Propriété | Valeur |
|---|---|---|---|
| Autorisation requise | billing.manage | Authentification requise | oui |
| Mode d’exécution | sync | Capacité | billing.manage |
| Type de ressource | account | Champ d’ID de ressource | account_id |
| Route API publique | POST /v1/public/accounts/{account_id}/billing/cancel-plan |
Arguments
Arguments
| Nom | Type | Requis |
|---|---|---|
account_id | str | oui |
cancel_at_period_end | bool | non |
cancel_immediately | bool | non |
Retours
Retours
| Champ | Type | Requis |
|---|---|---|
status | str | oui |
account_status | str | null | non |
effective_at | str | null | non |
eligible | bool | null | non |
previous_plan_id | str | null | non |
target_plan_id | str | null | non |
Exemple A2A
Exemple A2A
Requête:Réponse:
Exemple MCP
Exemple MCP
Requête:Réponse:
billing.plan.change
billing.plan.change.
| Propriété | Valeur | Propriété | Valeur |
|---|---|---|---|
| Autorisation requise | billing.manage | Authentification requise | oui |
| Mode d’exécution | sync | Capacité | billing.manage |
| Type de ressource | account | Champ d’ID de ressource | account_id |
| Route API publique | POST /v1/public/accounts/{account_id}/billing/change-plan |
Arguments
Arguments
| Nom | Type | Requis |
|---|---|---|
account_id | str | oui |
plan_id | "smtp_per_mailbox" | "smtp_per_proxy" | oui |
effective_date | str | null | non |
Retours
Retours
| Champ | Type | Requis |
|---|---|---|
status | str | oui |
account_status | str | null | non |
effective_at | str | null | non |
eligible | bool | null | non |
previous_plan_id | str | null | non |
target_plan_id | str | null | non |
Exemple A2A
Exemple A2A
Requête:Réponse:
Exemple MCP
Exemple MCP
Requête:Réponse:
billing.transactions.list
billing.transactions.list.
| Propriété | Valeur | Propriété | Valeur |
|---|---|---|---|
| Autorisation requise | billing.view | Authentification requise | oui |
| Mode d’exécution | sync | Capacité | billing.view |
| Type de ressource | account | Champ d’ID de ressource | account_id |
| Route API publique | GET /v1/public/accounts/{account_id}/billing/transactions |
Arguments
Arguments
| Nom | Type | Requis |
|---|---|---|
account_id | str | oui |
page | int | non |
page_size | int | non |
Retours
Retours
| Champ | Type | Requis |
|---|---|---|
page | int | oui |
page_size | int | oui |
total | int | oui |
items | [{"amount": str, "currency": str, "direction": str, "effective_at": str, "status": str, "transaction_id": str, "type": str, "balance_after"?: str | null, "description"?: str | null}] | non |
Exemple A2A
Exemple A2A
Requête:Réponse:
Exemple MCP
Exemple MCP
Requête:Réponse:
billing.wallet_balance.get
billing.wallet_balance.get.
| Propriété | Valeur | Propriété | Valeur |
|---|---|---|---|
| Autorisation requise | billing.view | Authentification requise | oui |
| Mode d’exécution | sync | Capacité | billing.view |
| Type de ressource | account | Champ d’ID de ressource | account_id |
| Route API publique | GET /v1/public/accounts/{account_id}/billing/wallet-balance |
Arguments
Arguments
| Nom | Type | Requis |
|---|---|---|
account_id | str | oui |
Retours
Retours
| Champ | Type | Requis |
|---|---|---|
accrued_charges | str | oui |
balance | str | oui |
currency | str | oui |
net_balance | str | oui |
Exemple A2A
Exemple A2A
Requête:Réponse:
Exemple MCP
Exemple MCP
Requête:Réponse: