Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.
Chargebeechargebee API

Retrieve usages for an invoice as PDF

Idempotency Supported

Advanced Usage-Based Billing

For high-scale usage ingestion, use Advanced Usage-Based Billing with the Usage Events API. The Usage Events API supports schemaless event ingestion at scale, including individual events, batch ingestion, and usage file ingestion.

Retrieves usages record for an invoice in PDF file format. This endpoint is part of the Usages API for Automated Metered Billing.

Sample Request

Retrieve Usages for an Invoice as PDF

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/usages/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

invoice
Parameters for invoice
pass parameters as invoice[<param name>]

Returns

Download object
Resource object representing download