Facturering
Factureringsoverzichten, facturen, transacties en planbewerkingen bekijken. De voorbeelden gebruiken de A2A-codemodus. MCP biedt dezelfde codemodus via het hulpmiddelexecute.
Functies
billing.current_plan.get
billing.current_plan.get.
| Eigenschap | Waarde | Eigenschap | Waarde |
|---|---|---|---|
| Vereiste machtiging | billing.view | Authenticatie vereist | ja |
| Uitvoermodus | sync | Mogelijkheid | billing.view |
| Resourcetype | account | Resource-ID-veld | account_id |
| Openbare API-route | GET /v1/public/accounts/{account_id}/billing/current-plan |
Argumenten
Argumenten
| Naam | Type | Vereist |
|---|---|---|
account_id | str | ja |
Retourneert
Retourneert
| Veld | Type | Vereist |
|---|---|---|
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 | nee |
can_change_plan | bool | nee |
A2A-voorbeeld
A2A-voorbeeld
Aanvraag:Respons:
MCP-voorbeeld
MCP-voorbeeld
Aanvraag:Respons:
billing.invoices.list
billing.invoices.list.
| Eigenschap | Waarde | Eigenschap | Waarde |
|---|---|---|---|
| Vereiste machtiging | billing.view | Authenticatie vereist | ja |
| Uitvoermodus | sync | Mogelijkheid | billing.view |
| Resourcetype | account | Resource-ID-veld | account_id |
| Openbare API-route | GET /v1/public/accounts/{account_id}/billing/invoices |
Argumenten
Argumenten
| Naam | Type | Vereist |
|---|---|---|
account_id | str | ja |
page | int | nee |
page_size | int | nee |
Retourneert
Retourneert
| Veld | Type | Vereist |
|---|---|---|
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-voorbeeld
A2A-voorbeeld
Aanvraag:Respons:
MCP-voorbeeld
MCP-voorbeeld
Aanvraag:Respons:
billing.plan.cancel
billing.plan.cancel.
| Eigenschap | Waarde | Eigenschap | Waarde |
|---|---|---|---|
| Vereiste machtiging | billing.manage | Authenticatie vereist | ja |
| Uitvoermodus | sync | Mogelijkheid | billing.manage |
| Resourcetype | account | Resource-ID-veld | account_id |
| Openbare API-route | POST /v1/public/accounts/{account_id}/billing/cancel-plan |
Argumenten
Argumenten
| Naam | Type | Vereist |
|---|---|---|
account_id | str | ja |
cancel_at_period_end | bool | nee |
cancel_immediately | bool | nee |
Retourneert
Retourneert
| Veld | Type | Vereist |
|---|---|---|
status | str | ja |
account_status | str | null | nee |
effective_at | str | null | nee |
eligible | bool | null | nee |
previous_plan_id | str | null | nee |
target_plan_id | str | null | nee |
A2A-voorbeeld
A2A-voorbeeld
Aanvraag:Respons:
MCP-voorbeeld
MCP-voorbeeld
Aanvraag:Respons:
billing.plan.change
billing.plan.change.
| Eigenschap | Waarde | Eigenschap | Waarde |
|---|---|---|---|
| Vereiste machtiging | billing.manage | Authenticatie vereist | ja |
| Uitvoermodus | sync | Mogelijkheid | billing.manage |
| Resourcetype | account | Resource-ID-veld | account_id |
| Openbare API-route | POST /v1/public/accounts/{account_id}/billing/change-plan |
Argumenten
Argumenten
| Naam | Type | Vereist |
|---|---|---|
account_id | str | ja |
plan_id | "smtp_per_mailbox" | "smtp_per_proxy" | ja |
effective_date | str | null | nee |
Retourneert
Retourneert
| Veld | Type | Vereist |
|---|---|---|
status | str | ja |
account_status | str | null | nee |
effective_at | str | null | nee |
eligible | bool | null | nee |
previous_plan_id | str | null | nee |
target_plan_id | str | null | nee |
A2A-voorbeeld
A2A-voorbeeld
Aanvraag:Respons:
MCP-voorbeeld
MCP-voorbeeld
Aanvraag:Respons:
billing.transactions.list
billing.transactions.list.
| Eigenschap | Waarde | Eigenschap | Waarde |
|---|---|---|---|
| Vereiste machtiging | billing.view | Authenticatie vereist | ja |
| Uitvoermodus | sync | Mogelijkheid | billing.view |
| Resourcetype | account | Resource-ID-veld | account_id |
| Openbare API-route | GET /v1/public/accounts/{account_id}/billing/transactions |
Argumenten
Argumenten
| Naam | Type | Vereist |
|---|---|---|
account_id | str | ja |
page | int | nee |
page_size | int | nee |
Retourneert
Retourneert
| Veld | Type | Vereist |
|---|---|---|
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}] | nee |
A2A-voorbeeld
A2A-voorbeeld
Aanvraag:Respons:
MCP-voorbeeld
MCP-voorbeeld
Aanvraag:Respons:
billing.wallet_balance.get
billing.wallet_balance.get.
| Eigenschap | Waarde | Eigenschap | Waarde |
|---|---|---|---|
| Vereiste machtiging | billing.view | Authenticatie vereist | ja |
| Uitvoermodus | sync | Mogelijkheid | billing.view |
| Resourcetype | account | Resource-ID-veld | account_id |
| Openbare API-route | GET /v1/public/accounts/{account_id}/billing/wallet-balance |
Argumenten
Argumenten
| Naam | Type | Vereist |
|---|---|---|
account_id | str | ja |
Retourneert
Retourneert
| Veld | Type | Vereist |
|---|---|---|
accrued_charges | str | ja |
balance | str | ja |
currency | str | ja |
net_balance | str | ja |
A2A-voorbeeld
A2A-voorbeeld
Aanvraag:Respons:
MCP-voorbeeld
MCP-voorbeeld
Aanvraag:Respons: