GET Read your contract, add-ons and invoice status
/api/v1/account/billing
Contracts, orders, invoices and payments are managed in the browser by the verified account owner. Workspace members, support sessions, API tokens, MCP and plugins cannot use these endpoints. Prices, taxes and contract revisions are validated on the server. Existing orders keep their original confirmation.
On this page
Access and permissions
Contracts, orders, invoices and payments are managed in the browser by the verified account owner. Workspace members, support sessions, API tokens, MCP and plugins cannot use these endpoints. Prices, taxes and contract revisions are validated on the server. Existing orders keep their original confirmation.
Browser session: __Host-mb_session cookie.
Parameters and headers
No path, query or additional request-header parameters.
Request body
No request body.
Responses
application/json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | BillingAccount | Yes | — |
| $.contract | BillingContract | null | Yes | — |
| $.contract (anyOf 1) | BillingContract | No | — |
| $.contract (anyOf 1).id | string | Yes | — |
| $.contract (anyOf 1).plan_id | string | Yes | — |
| $.contract (anyOf 1).variant_id | string | No | — |
| $.contract (anyOf 1).billing | string | Yes | — |
| $.contract (anyOf 1).currency | string | Yes | — |
| $.contract (anyOf 1).status | string | Yes | — |
| $.contract (anyOf 1).revision | integer; {"minimum":0} | Yes | — |
| $.contract (anyOf 1).anchor_day | integer; {"minimum":0} | Yes | — |
| $.contract (anyOf 1).period_start | string; {"format":"date-time"} | Yes | — |
| $.contract (anyOf 1).period_end | string; {"format":"date-time"} | Yes | — |
| $.contract (anyOf 1).initial_end | string; {"format":"date-time"} | Yes | — |
| $.contract (anyOf 1).paid_through | string; {"format":"date-time"} | Yes | — |
| $.contract (anyOf 1).cancel_at | string; {"format":"date-time"} | No | — |
| $.contract (anyOf 1).consumer | boolean | Yes | — |
| $.contract (anyOf 1).addons | OrderAddons | Yes | — |
| $.contract (anyOf 1).addons.seats | integer; {"minimum":0,"maximum":10000} | Yes | — |
| $.contract (anyOf 1).addons.log_gb | integer; {"enum":[0,10,25,50,100,250,500]} | Yes | — |
| $.contract (anyOf 1).scheduled_addons | OrderAddons | No | — |
| $.contract (anyOf 1).scheduled_addons.seats | integer; {"minimum":0,"maximum":10000} | Yes | — |
| $.contract (anyOf 1).scheduled_addons.log_gb | integer; {"enum":[0,10,25,50,100,250,500]} | Yes | — |
| $.contract (anyOf 1).auto_collection | boolean | No | — |
| $.contract (anyOf 2) | null | No | — |
| $.invoices | array<object; {"additionalProperties":false}>; {"maxItems":200} | Yes | — |
| $.invoices[] | object; {"additionalProperties":false} | Yes | — |
| $.invoices[].stage | string | Yes | — |
| $.invoices[].invoice_id | string | null | Yes | — |
| $.invoices[].invoice_id (anyOf 1) | string | No | — |
| $.invoices[].invoice_id (anyOf 2) | null | No | — |
| $.invoices[].checkout_url | string | null | Yes | — |
| $.invoices[].checkout_url (anyOf 1) | string | No | — |
| $.invoices[].checkout_url (anyOf 2) | null | No | — |
| $.invoices[].failure | string | Yes | — |
| $.invoices[].order_id | string | Yes | — |
| $.invoices[].due_at | string; {"format":"date-time"} | Yes | — |
| $.invoices[].total_cents | integer; {"minimum":0} | Yes | — |
| $.invoices[].currency | string | Yes | — |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| $.limit | integer | string | No | Resource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic. |
| $.scope | string; {"enum":["owner","actor","free_pool","platform","capacity","network"]} | No | — |
| $.field_errors | array<object>; {"maxItems":64} | No | — |
| $.field_errors[] | object | Yes | — |
| $.field_errors[].path | string; {"maxLength":256} | Yes | — |
| $.field_errors[].message_key | string | Yes | — |
| $.field_errors[].message_params | object; {"additionalProperties":true} | No | — |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| $.limit | integer | string | No | Resource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic. |
| $.scope | string; {"enum":["owner","actor","free_pool","platform","capacity","network"]} | No | — |
| $.field_errors | array<object>; {"maxItems":64} | No | — |
| $.field_errors[] | object | Yes | — |
| $.field_errors[].path | string; {"maxLength":256} | Yes | — |
| $.field_errors[].message_key | string | Yes | — |
| $.field_errors[].message_params | object; {"additionalProperties":true} | No | — |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| $.limit | integer | string | No | Resource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic. |
| $.scope | string; {"enum":["owner","actor","free_pool","platform","capacity","network"]} | No | — |
| $.field_errors | array<object>; {"maxItems":64} | No | — |
| $.field_errors[] | object | Yes | — |
| $.field_errors[].path | string; {"maxLength":256} | Yes | — |
| $.field_errors[].message_key | string | Yes | — |
| $.field_errors[].message_params | object; {"additionalProperties":true} | No | — |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
| $.limit | integer | string | No | Resource protection returns HTTP 429 with Retry-After, a limit identifier and scope. Retry only after the waiting time; telemetry retries must preserve IDs and payloads. Rejected telemetry batches are atomic. |
| $.scope | string; {"enum":["owner","actor","free_pool","platform","capacity","network"]} | No | — |
| $.field_errors | array<object>; {"maxItems":64} | No | — |
| $.field_errors[] | object | Yes | — |
| $.field_errors[].path | string; {"maxLength":256} | Yes | — |
| $.field_errors[].message_key | string | Yes | — |
| $.field_errors[].message_params | object; {"additionalProperties":true} | No | — |
Retries and asynchronous work
This change does not have a general retry guarantee. If the response is unclear, read the affected resource before trying again. Follow Retry-After waiting times and request new sign-in or action codes when they expire.
Request examples
Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.
Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.
curl --request GET --cookie '__Host-mb_session=<session>' --header 'Origin: https://metribeacon.com' --header 'X-CSRF-Token: <csrf>' --header 'X-MetriBeacon-Session-Context: <context>' --header 'Content-Type: application/json' 'https://metribeacon.com/api/v1/account/billing'import requests
response = requests.request('GET', 'https://metribeacon.com/api/v1/account/billing', cookies={'__Host-mb_session': '<session>'}, headers={'Origin': 'https://metribeacon.com', 'X-CSRF-Token': '<csrf>', 'X-MetriBeacon-Session-Context': '<context>'}, json=None)
response.raise_for_status()const response = await fetch("/api/v1/account/billing", {method: "GET", credentials: 'same-origin', headers: {"Origin": "https://metribeacon.com", "X-CSRF-Token": "<csrf>", "X-MetriBeacon-Session-Context": "<context>", "Content-Type": "application/json"}, });package main
import (
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("GET", "https://metribeacon.com/api/v1/account/billing", strings.NewReader(""))
req.Header.Set("Origin", "https://metribeacon.com")
req.Header.Set("X-CSRF-Token", "<csrf>")
req.Header.Set("X-MetriBeacon-Session-Context", "<context>")
req.Header.Set("Cookie", "__Host-mb_session=<session>")
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
}