Abrechnung
Abrechnungsübersichten, Rechnungen, Transaktionen und Tarifvorgänge prüfen. Die Beispiele verwenden den A2A-Code-Modus. MCP stellt denselben Code-Modus über sein Toolexecute bereit.
Funktionen
billing.current_plan.get
billing.current_plan.get.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | billing.view | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | billing.view |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | GET /v1/public/accounts/{account_id}/billing/current-plan |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
billing_period | str | ja |
currency | str | ja |
plan_id | str | ja |
plan_name | str | ja |
price | str | ja |
status | str | ja |
can_cancel_plan | bool | nein |
can_change_plan | bool | nein |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
billing.invoices.list
billing.invoices.list.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | billing.view | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | billing.view |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | GET /v1/public/accounts/{account_id}/billing/invoices |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
page | int | nein |
page_size | int | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
items | [{"amount": str, "currency": str, "date": str, "download_url": str | null, "id": str, "status": str}] | ja |
page | int | ja |
page_size | int | ja |
total | int | ja |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
billing.plan.cancel
billing.plan.cancel.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | billing.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | billing.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | POST /v1/public/accounts/{account_id}/billing/cancel-plan |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
cancel_at_period_end | bool | nein |
cancel_immediately | bool | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
status | str | ja |
account_status | str | null | nein |
effective_at | str | null | nein |
eligible | bool | null | nein |
previous_plan_id | str | null | nein |
target_plan_id | str | null | nein |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
billing.plan.change
billing.plan.change.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | billing.manage | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | billing.manage |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | POST /v1/public/accounts/{account_id}/billing/change-plan |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
plan_id | "smtp_per_mailbox" | "smtp_per_proxy" | ja |
effective_date | str | null | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
status | str | ja |
account_status | str | null | nein |
effective_at | str | null | nein |
eligible | bool | null | nein |
previous_plan_id | str | null | nein |
target_plan_id | str | null | nein |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
billing.transactions.list
billing.transactions.list.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | billing.view | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | billing.view |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | GET /v1/public/accounts/{account_id}/billing/transactions |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
page | int | nein |
page_size | int | nein |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
page | int | ja |
page_size | int | ja |
total | int | ja |
items | [{"amount": str, "currency": str, "direction": str, "effective_at": str, "status": str, "transaction_id": str, "type": str, "balance_after"?: str | null, "description"?: str | null}] | nein |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
billing.wallet_balance.get
billing.wallet_balance.get.
| Eigenschaft | Wert | Eigenschaft | Wert |
|---|---|---|---|
| Erforderliche Berechtigung | billing.view | Authentifizierung erforderlich | ja |
| Ausführungsmodus | sync | Fähigkeit | billing.view |
| Ressourcentyp | account | Ressourcen-ID-Feld | account_id |
| Öffentliche API-Route | GET /v1/public/accounts/{account_id}/billing/wallet-balance |
Argumente
Argumente
| Name | Typ | Erforderlich |
|---|---|---|
account_id | str | ja |
Rückgabe
Rückgabe
| Feld | Typ | Erforderlich |
|---|---|---|
accrued_charges | str | ja |
balance | str | ja |
currency | str | ja |
net_balance | str | ja |
A2A-Beispiel
A2A-Beispiel
Anfrage:Antwort:
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort: