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

# Generate Customer Invoice

`GET /pdfs/invoice/{customer_id}`

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/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/b642b91e0a5c/schema)
