v8
OpenAPI 3.1.02026-08-033623795.0 MBInvoices
Retrieve invoice
Retrieves the details of an existing invoice.
Required permissions:
- invoice:basic:read
- member:email:read
get/invoices/{id}
Path parameters
idstring required
Example:inv_xxxxxxxxxxxxxx
The unique identifier of the invoice, or a secure token.
Response
A successful response
Example response
{
"automatically_finalizes_at": "2023-12-01T05:00:00.401Z",
"company": {
"id": "biz_xxxxxxxxxxxxxx"
},
"created_at": "2023-12-01T05:00:00.401Z",
"current_plan": {
"description": "Monthly access to all premium analytics dashboards and data exports.",
"formatted_price": "$10.00",
"id": "plan_xxxxxxxxxxxxx"
},
"customer_name": "Jane Doe",
"due_date": "2023-12-01T05:00:00.401Z",
"email_address": "customer@example.com",
"fetch_invoice_token": "eyJhbGciOiJIUzI1NiJ9...",
"id": "inv_xxxxxxxxxxxxxx",
"line_items": [
{
"label": "Platform subscription",
"position": 42,
"quantity": 6.9,
"total": 6.9,
"unit_price": 6.9
}
],
"number": "#0001",
"product": {
"id": "prod_xxxxxxxxxxxxx",
"title": "Pickaxe Analytics"
},
"subscription_billing_anchor_at": "2023-12-01T05:00:00.401Z",
"updated_at": "2023-12-01T05:00:00.401Z",
"user": {
"email": "john.doe@example.com",
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42"
}
}