---
title: "Rebuild the PDF of an existing rent receipt"
method: POST
path: "/leases/{lease_id}/receipts/{receipt_id}/regenerate-pdf"
tags: ["Rent Receipts", "Leases"]
---

# Rebuild the PDF of an existing rent receipt

`POST /leases/{lease_id}/receipts/{receipt_id}/regenerate-pdf`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/leases/{lease_id}/receipts/{receipt_id}/regenerate-pdf`
- Auth: HTTP bearer

Rebuilds and re-archives the PDF of a receipt that already exists,
without creating a new receipt and without touching the amounts: the
receipt keeps its frozen snapshot of rent and charges.

Use it when the document itself is the problem: the archived PDF is
missing, or was produced before a template or layout fix, rather than
when the figures are wrong. Wrong figures mean deleting the receipt and
generating it again.

The response carries the **new** `media_id`; any URL you had cached for
the previous file is stale.

## Path parameters

- `lease_id` string, uuid, required
- `receipt_id` string, uuid, required

## Response `200`

PDF rebuilt and archived.

- object
  - `receipt_id` string, uuid
  - `media_id` string, uuid: Identifier of the newly archived PDF.
  - `regenerated` boolean

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
