Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now
ChargebeeAPI

Retrieve Invoice as PDF

Idempotency Supported

Gets the invoice as PDF. The returned URL is secure and allows download. The URL will expire in 60 minutes.

Sample Request

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/invoices/{invoice-id}/pdf

Input Parameters

disposition_type
optional, enumerated string, default=attachment

Determines the pdf should be rendered as inline or attachment in the browser.

Enum Values
attachment

PDF is rendered as attachment in the browser

inline

PDF is rendered as inline in the browser

Returns

Download object
Resource object representing download