請求
請求サマリー、請求書、取引、プラン操作を確認します。 例では A2A コードモードを使用します。MCP はexecute ツールを通じて同じコードモードを公開します。
関数
billing.current_plan.get
billing.current_plan.get.
| プロパティ | 値 | プロパティ | 値 |
|---|---|---|---|
| 必要な権限 | billing.view | 認証必須 | はい |
| 実行モード | sync | 機能権限 | billing.view |
| リソースタイプ | account | リソース ID フィールド | account_id |
| 公開 API ルート | GET /v1/public/accounts/{account_id}/billing/current-plan |
引数
引数
| 名前 | 型 | 必須 |
|---|---|---|
account_id | str | はい |
戻り値
戻り値
| フィールド | 型 | 必須 |
|---|---|---|
billing_period | str | はい |
currency | str | はい |
plan_id | str | はい |
plan_name | str | はい |
price | str | はい |
status | str | はい |
can_cancel_plan | bool | いいえ |
can_change_plan | bool | いいえ |
A2A の例
A2A の例
リクエスト:レスポンス:
MCP の例
MCP の例
リクエスト:レスポンス:
billing.invoices.list
billing.invoices.list.
| プロパティ | 値 | プロパティ | 値 |
|---|---|---|---|
| 必要な権限 | billing.view | 認証必須 | はい |
| 実行モード | sync | 機能権限 | billing.view |
| リソースタイプ | account | リソース ID フィールド | account_id |
| 公開 API ルート | GET /v1/public/accounts/{account_id}/billing/invoices |
引数
引数
| 名前 | 型 | 必須 |
|---|---|---|
account_id | str | はい |
page | int | いいえ |
page_size | int | いいえ |
戻り値
戻り値
| フィールド | 型 | 必須 |
|---|---|---|
items | [{"amount": str, "currency": str, "date": str, "download_url": str | null, "id": str, "status": str}] | はい |
page | int | はい |
page_size | int | はい |
total | int | はい |
A2A の例
A2A の例
リクエスト:レスポンス:
MCP の例
MCP の例
リクエスト:レスポンス:
billing.plan.cancel
billing.plan.cancel.
| プロパティ | 値 | プロパティ | 値 |
|---|---|---|---|
| 必要な権限 | billing.manage | 認証必須 | はい |
| 実行モード | sync | 機能権限 | billing.manage |
| リソースタイプ | account | リソース ID フィールド | account_id |
| 公開 API ルート | POST /v1/public/accounts/{account_id}/billing/cancel-plan |
引数
引数
| 名前 | 型 | 必須 |
|---|---|---|
account_id | str | はい |
cancel_at_period_end | bool | いいえ |
cancel_immediately | bool | いいえ |
戻り値
戻り値
| フィールド | 型 | 必須 |
|---|---|---|
status | str | はい |
account_status | str | null | いいえ |
effective_at | str | null | いいえ |
eligible | bool | null | いいえ |
previous_plan_id | str | null | いいえ |
target_plan_id | str | null | いいえ |
A2A の例
A2A の例
リクエスト:レスポンス:
MCP の例
MCP の例
リクエスト:レスポンス:
billing.plan.change
billing.plan.change.
| プロパティ | 値 | プロパティ | 値 |
|---|---|---|---|
| 必要な権限 | billing.manage | 認証必須 | はい |
| 実行モード | sync | 機能権限 | billing.manage |
| リソースタイプ | account | リソース ID フィールド | account_id |
| 公開 API ルート | POST /v1/public/accounts/{account_id}/billing/change-plan |
引数
引数
| 名前 | 型 | 必須 |
|---|---|---|
account_id | str | はい |
plan_id | "smtp_per_mailbox" | "smtp_per_proxy" | はい |
effective_date | str | null | いいえ |
戻り値
戻り値
| フィールド | 型 | 必須 |
|---|---|---|
status | str | はい |
account_status | str | null | いいえ |
effective_at | str | null | いいえ |
eligible | bool | null | いいえ |
previous_plan_id | str | null | いいえ |
target_plan_id | str | null | いいえ |
A2A の例
A2A の例
リクエスト:レスポンス:
MCP の例
MCP の例
リクエスト:レスポンス:
billing.transactions.list
billing.transactions.list.
| プロパティ | 値 | プロパティ | 値 |
|---|---|---|---|
| 必要な権限 | billing.view | 認証必須 | はい |
| 実行モード | sync | 機能権限 | billing.view |
| リソースタイプ | account | リソース ID フィールド | account_id |
| 公開 API ルート | GET /v1/public/accounts/{account_id}/billing/transactions |
引数
引数
| 名前 | 型 | 必須 |
|---|---|---|
account_id | str | はい |
page | int | いいえ |
page_size | int | いいえ |
戻り値
戻り値
| フィールド | 型 | 必須 |
|---|---|---|
page | int | はい |
page_size | int | はい |
total | int | はい |
items | [{"amount": str, "currency": str, "direction": str, "effective_at": str, "status": str, "transaction_id": str, "type": str, "balance_after"?: str | null, "description"?: str | null}] | いいえ |
A2A の例
A2A の例
リクエスト:レスポンス:
MCP の例
MCP の例
リクエスト:レスポンス:
billing.wallet_balance.get
billing.wallet_balance.get.
| プロパティ | 値 | プロパティ | 値 |
|---|---|---|---|
| 必要な権限 | billing.view | 認証必須 | はい |
| 実行モード | sync | 機能権限 | billing.view |
| リソースタイプ | account | リソース ID フィールド | account_id |
| 公開 API ルート | GET /v1/public/accounts/{account_id}/billing/wallet-balance |
引数
引数
| 名前 | 型 | 必須 |
|---|---|---|
account_id | str | はい |
戻り値
戻り値
| フィールド | 型 | 必須 |
|---|---|---|
accrued_charges | str | はい |
balance | str | はい |
currency | str | はい |
net_balance | str | はい |
A2A の例
A2A の例
リクエスト:レスポンス:
MCP の例
MCP の例
リクエスト:レスポンス: