Usage statement of a document, CSV
The charges of an invoice or a credit note as a CSV file, built from the composition stored when the document was issued — the same file every time. Columns: charge_id, order_id, product, quantity, receive_address, fulfilled_at_utc, delegation_hash, quote_id, base_amount, base_currency, rate, rate_base, rate_quote, rate_at_utc, amount, currency, late (yes/no), breakdown. A value that a spreadsheet would run as a formula starts with an apostrophe. A proforma has no usage statement. 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
An IP address from the key's whitelist. A request from an address outside the whitelist is rejected with 401.
"203.0.113.10""ipv4"Path Parameters
The document id — not its number.
Responses
The usage statement, file name {number}-usage.csv.