Important
For sites where both Product Catalog versions 1.0 and 2.0 are active, add the header chargebee-response-schema-type: compat to this API request to receive the response in a format compatible with both Product Catalog 2.0 and Product Catalog 1.0.
Note:
- If the header is not passed, and your site supports coexistence of legacy and latest product catalogs, the value
compatis used by default.
Retrieve the invoice for the specified invoice ID.
Sample Request
URL Format
GET https://[site].chargebee.com/api/v2/invoices/{invoice-id}
Input Parameters
optional, integer, default=100, min=1, max=300
Specify the maximum number of line items to include in the response.
Note:
- Applicable only when Enterprise-scale Invoicing is enabled.
- Enterprise-scale Invoicing is currently in Private Beta. Please reach out to Chargebee Support to enable this feature.
optional, string, max chars=1000
Specify the starting point for retrieving line items. Use the value from the line_items_next_offset attribute of the previous retrieve API response.
Note:
- Applicable only when Enterprise-scale Invoicing is enabled.
- Enterprise-scale Invoicing is currently in Private Beta. Please reach out to Chargebee Support to enable this feature.
Returns
invoiceInvoice object
Resource object representing invoice