GET Download the authoritative NextOffice invoice

/api/v1/account/orders/{id}/invoice

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

FieldLocationType and limitsRequiredMeaning
idPathstring; {"format":"uuid"}YesIdentifier of the order.
credit_idURL querystring; {"format":"uuid"}NoIdentifier of a credit linked to this order.

Request body

No request body.

Responses

application/pdf

FieldType and limitsRequiredMeaning
$string; {"format":"binary"}Yes—

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource 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.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource 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.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource 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.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"additionalProperties":true}No—

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
$.limitinteger | stringNoResource 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.
$.scopestring; {"enum":["owner","actor","free_pool","platform","capacity","network"]}No—
$.field_errorsarray<object>; {"maxItems":64}No—
$.field_errors[]objectYes—
$.field_errors[].pathstring; {"maxLength":256}Yes—
$.field_errors[].message_keystringYes—
$.field_errors[].message_paramsobject; {"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.

shell
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/orders/00000000-0000-4000-8000-000000000001/invoice'
python
import requests
response = requests.request('GET', 'https://metribeacon.com/api/v1/account/orders/00000000-0000-4000-8000-000000000001/invoice', 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()
javascript
const response = await fetch("/api/v1/account/orders/00000000-0000-4000-8000-000000000001/invoice", {method: "GET", credentials: 'same-origin', headers: {"Origin": "https://metribeacon.com", "X-CSRF-Token": "<csrf>", "X-MetriBeacon-Session-Context": "<context>", "Content-Type": "application/json"}, });
go
package main

import (
 "net/http"
 "strings"
)
func main() {
 req, _ := http.NewRequest("GET", "https://metribeacon.com/api/v1/account/orders/00000000-0000-4000-8000-000000000001/invoice", 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()
}