One document with its charges
A document of your account with its charges as they are now (charges) and, in contract-v1, as they were when the document was issued (composition). Requires billing.read.
Authorizations
API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.
Parameters
Header Parameters
The response format. contract-v1 — every amount carries its currency and every rate names its pair. legacy — the original format, unchanged. Without the header the format depends on your contract: a contract with amounts in its own currency gets contract-v1, and legacy is refused with 406 billing_format_not_available; an account set up on postpaid before contract-v1 gets legacy, and contract-v1 is enabled for it per account, otherwise 403 billing_format_not_enabled. Any other value — 400 unsupported_billing_format, before anything is changed. The header changes only how the response is written: no amount, permission or IP check changes.
"legacy""contract-v1"Path Parameters
The document id — not its number.
Responses
The invoice.