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(account_id: str) -> BillingResult
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:
{
"request_id": "example",
"session_id": "session_123",
"code": "billing.current_plan.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": true
},
"responses": [
{
"index": 0,
"function": "billing.current_plan.get",
"status": "completed",
"result": true
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "billing.current_plan.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": true\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"billing.current_plan.get\",\n \"status\": \"completed\",\n \"result\": true\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
billing.invoices.list
billing.invoices.list(account_id: str, page?: int, page_size?: int) -> Page[BillingResult]
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:
{
"request_id": "example",
"session_id": "session_123",
"code": "billing.invoices.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "billing.invoices.list",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "billing.invoices.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"billing.invoices.list\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
billing.plan.cancel
billing.plan.cancel(account_id: str, cancel_at_period_end?: bool, cancel_immediately?: bool) -> BillingResult
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:
{
"request_id": "example",
"session_id": "session_123",
"code": "billing.plan.cancel(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", cancel_at_period_end=true, cancel_immediately=true)"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "billing.plan.cancel",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "billing.plan.cancel(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", cancel_at_period_end=true, cancel_immediately=true)"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"billing.plan.cancel\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
billing.plan.change
billing.plan.change(account_id: str, plan_id: "smtp_per_mailbox" | "smtp_per_proxy", effective_date?: str | null) -> BillingResult
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:
{
"request_id": "example",
"session_id": "session_123",
"code": "billing.plan.change(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", plan_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", effective_date=\"<string>\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": "<string>"
},
"responses": [
{
"index": 0,
"function": "billing.plan.change",
"status": "completed",
"result": "<string>"
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "billing.plan.change(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", plan_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", effective_date=\"<string>\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": \"<string>\"\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"billing.plan.change\",\n \"status\": \"completed\",\n \"result\": \"<string>\"\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
billing.transactions.list
billing.transactions.list(account_id: str, page?: int, page_size?: int) -> Page[BillingResult]
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:
{
"request_id": "example",
"session_id": "session_123",
"code": "billing.transactions.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": 123
},
"responses": [
{
"index": 0,
"function": "billing.transactions.list",
"status": "completed",
"result": 123
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "billing.transactions.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": 123\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"billing.transactions.list\",\n \"status\": \"completed\",\n \"result\": 123\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}
billing.wallet_balance.get
billing.wallet_balance.get(account_id: str) -> BillingResult
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:
{
"request_id": "example",
"session_id": "session_123",
"code": "billing.wallet_balance.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
{
"request_id": "example",
"status": "completed",
"result": {
"last_value": {
"accrued_charges": "<string>",
"balance": "<string>",
"currency": "<string>",
"net_balance": "<string>"
}
},
"responses": [
{
"index": 0,
"function": "billing.wallet_balance.get",
"status": "completed",
"result": {
"accrued_charges": "<string>",
"balance": "<string>",
"currency": "<string>",
"net_balance": "<string>"
}
}
],
"complexity_score": 1
}
MCP-Beispiel
MCP-Beispiel
Anfrage:Antwort:
{
"jsonrpc": "2.0",
"id": "example",
"method": "tools/call",
"params": {
"name": "hybridbox_execute",
"arguments": {
"code": "billing.wallet_balance.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
}
}
{
"jsonrpc": "2.0",
"id": "example",
"result": {
"content": [
{
"type": "text",
"text": "{\n \"request_id\": \"example\",\n \"status\": \"completed\",\n \"result\": {\n \"last_value\": {\n \"accrued_charges\": \"<string>\",\n \"balance\": \"<string>\",\n \"currency\": \"<string>\",\n \"net_balance\": \"<string>\"\n }\n },\n \"responses\": [\n {\n \"index\": 0,\n \"function\": \"billing.wallet_balance.get\",\n \"status\": \"completed\",\n \"result\": {\n \"accrued_charges\": \"<string>\",\n \"balance\": \"<string>\",\n \"currency\": \"<string>\",\n \"net_balance\": \"<string>\"\n }\n }\n ],\n \"complexity_score\": 1\n}"
}
],
"isError": false
}
}