> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Billing Details

> Returns the buyer details printed on the invoice

```
GET /openapi/memorylake/admin/v1/billing/invoices/{invoice_id}/billing-details
```

Returns the buyer details printed on the invoice. saved false means none are saved yet: the fields are then a suggestion from the profile of the member the invoice was issued to.

<Note>
  **Permission required:** `invoice:read`
</Note>

### Path Parameters

<ParamField path="invoice_id" type="string" required>
  Invoice id (`invoice_id`)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/invoices/2501a637ff332794f7dc5edee0556e67/billing-details' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### Response

<ResponseField name="data" type="object">
  <Expandable title="Billing Details object">
    <ResponseField name="address" type="string">Billing address</ResponseField>
    <ResponseField name="company_name" type="string">Company name</ResponseField>
    <ResponseField name="contact_email" type="string">Contact email</ResponseField>
    <ResponseField name="invoice_id" type="string">The invoice</ResponseField>
    <ResponseField name="invoice_type" type="string">individual = issued to a person (name); business = issued to a company (company\_name)</ResponseField>
    <ResponseField name="name" type="string">Person's name</ResponseField>
    <ResponseField name="saved" type="boolean">false = nothing is saved yet: the fields are a suggestion from the profile of the member the invoice was issued to (or empty), and the PDF is the provider's</ResponseField>
    <ResponseField name="tax_id" type="string">Tax identification number</ResponseField>
    <ResponseField name="updated_at" type="integer">When they were last saved, Unix seconds</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Operation completed successfully",
    "data": {
      "address": "example",
      "company_name": "Example company",
      "contact_email": "alice@example.com",
      "invoice_id": "19c056571f855cb3f9252ccbcaada863",
      "invoice_type": "individual",
      "name": "Example name",
      "saved": false,
      "tax_id": "42e837c2d259aa902d4196922464cfeb",
      "updated_at": 1760000000
    }
  }
  ```
</ResponseExample>

### Errors

Errors answer with `success: false`, a `message` and an `error_code`. See [Error Codes](/features/memorylake/api-reference/errors) for every code.

| Status | Meaning |
| - | - |
| `401` | The API key is missing, invalid, disabled or expired |
| `403` | The key is not allowed to do this |
| `404` | The resource does not exist |
| `422` | The body or a parameter failed validation |
| `429` | Too many requests. Wait for the time in `Retry-After` |
| `500` | Server-side error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.