Get invoice PDF URL

View as Markdown

Returns a Stripe-hosted PDF URL for the invoice. The URL is short-lived; fetch fresh when you need to hand it to a user.

Requesting an invoice that does not belong to the caller’s organization returns 404 (not 403), so a foreign invoice ID cannot be confirmed to exist.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Path parameters

invoiceIdstringRequired

Stripe invoice ID (e.g. in_1THiCSRwh8g1U6dfOcUtTdq9).

Response

Stripe-hosted PDF URL for the invoice.

successboolean
dataobject

Errors

401
Unauthorized Error
404
Not Found Error