Skip to main content
POST
Generate Invoice PDF

Autorisations

Authorization
string
header
requis

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

payment:basic:read

En-têtes

Idempotency-Key
string

A unique key that makes this request safe to retry. See Idempotent requests.

Maximum string length: 255
Exemple:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Exemple:

"2026-11-17"

Paramètres de chemin

id
string
requis

The invoice's pay_ ID.

Corps

application/json
include_descriptions
boolean
défaut:true

Whether to print each line item's description under it. Defaults to true.

Exemple:

false

Réponse

invoice PDF generated

expires_at
string
requis

When the link stops working, as an ISO 8601 timestamp. Generate a new PDF for a fresh link.

Exemple:

"2026-01-01T12:00:00.000Z"

url
string
requis

A short-lived link to download the invoice as a PDF. Anyone holding the link can download the file until it expires.

Exemple:

"https://content.whop.com/exports/2026-01-01/pdfs/receipt_pay_xxxxxxxxxxxxxx.pdf"