---
title: "Handle Regenerate Pm Invoice"
method: POST
path: "/api/v1/pm_invoice/regenerate_pm_invoice"
---

# Handle Regenerate Pm Invoice

`POST /api/v1/pm_invoice/regenerate_pm_invoice`

Re-renders an existing PM fee invoice's PDF in place, so an invoice whose
fields or line items were edited can be refreshed without deleting it and
generating a replacement.

## Request body

- RegeneratePmInvoiceRequest — Re-renders the PDF for an existing PM fee invoice, overwriting the file at the invoice's current s3_key. Used after invoice fields or line items are edited, so the stored PDF matches the record without creating a new invoice. Set `wait` to false to return as soon as the render is queued instead of blocking until the PDF has been stored.
  - `invoice_id` string, required
  - `plan_manager_id` string, required
  - `wait` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/caresquare/apis/fastapi.md) · [All operations](https://skmtc.dev/caresquare/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caresquare/fastapi/revisions/c9df874d8d59/schema)
