Invoices
Generate Invoice PDF
Changed onGenerates the invoice as a PDF and returns a short-lived link to download it. A draft shows its estimated totals. The buyer's name and email need member:basic:read and member:email:read, and the Pay now link on an open invoice needs payment:charge, or invoice:create or invoice:update when it has no payment_method_id. Each call generates a new file and link, so this endpoint does not replay Idempotency-Key responses.
post/invoices/{id}/generate_pdf
Request
- Base URLhttps://api.whop.com/api/v1
- URLhttps://api.whop.com/api/v1/invoices/{id}/generate_pdf
- AuthHTTP bearer
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Response
invoice 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
the security scope
payment:basic:readwas added to the endpoint's security schemebearerAuth - info
the security scope
invoice:basic:readwas removed from the endpoint's security schemebearerAuth
- info
- info
endpoint added
- info