---
title: "Generate Customer Invoice"
method: GET
path: "/pdfs/invoice/{customer_id}"
tags: ["PDFs"]
---

# Generate Customer Invoice

`GET /pdfs/invoice/{customer_id}`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/pdfs/invoice/{customer_id}`
- Auth: none declared

Generate an invoice PDF for a customer based on their billing contract.

This endpoint generates an invoice PDF for the specified customer using their
billing contract. If contract_id is provided, uses that specific contract;
otherwise uses the most recent active contract.

Args:
- customer_id: The customer ID
- contract_id: Optional specific contract ID to generate invoice for
- invoice_date: Optional invoice date in ISO format (defaults to current date)
- due_date: Optional due date in ISO format (defaults to invoice_date + 30 days)
- hide_due_date: Optional flag to hide due date on invoice (defaults to False)

Returns:
- PDF file as application/pdf

## Path parameters

- `customer_id` string, uuid, required

## Query parameters

- `contract_id` string, uuid, nullable
- `invoice_date` string, nullable
- `due_date` string, nullable
- `hide_due_date` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openintake/apis/openintake-api.md) - [All operations](https://skmtc.dev/openintake/apis/openintake-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openintake/apis/openintake-api/revisions/de90a8dcbc07?raw)
