Payments
Generate Payment PDF
Changed onGenerates the payment's receipt (invoice) as a PDF and returns a short-lived link to download it. Each call generates a new file and link, so this endpoint does not replay Idempotency-Key responses.
post/payments/{id}/generate_pdf
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/payments/{id}/generate_pdf
- Auth: HTTP bearer
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Response
receipt PDF generated
Example response
{
"expires_at": "2026-01-01T12:00:00.000Z",
"url": "https://content.whop.com/exports/2026-01-01/pdfs/receipt_pay_xxxxxxxxxxxxxx.pdf"
}Changes
- info
endpoint added
- info