---
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`

## Request

- Base URL: `https://api.caresquare.com.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.caresquare.com.au/api/v1/pm_invoice/regenerate_pm_invoice`
- Auth: none declared

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 CS-generated 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. Uploaded invoices billed to the self-PM provider are rejected. 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/caresquare-api.md) - [All operations](https://skmtc.dev/caresquare/apis/caresquare-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caresquare/apis/caresquare-api/revisions/d428fe38bf62?raw)
