GET /invoices
Lists all the Invoices.
Servers
- {protocol}://{site}.{environment}:{port}/api/v2
- {protocol}://{site}-test.{environment}:{port}/api/v2
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
chargebee-request-origin-device |
String | No |
The device from which the customer has made the request |
chargebee-business-entity-id |
String | No |
If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation. |
chargebee-request-origin-user |
String | No |
The email address of your customer/user. Use this when the email address has only ASCII characters. |
chargebee-request-origin-ip |
String | No |
The IP address of the customer where the request originated |
chargebee-request-origin-user-encoded |
String | No |
The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header chargebee-request-origin-user is ignored. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
credits_applied |
Object | No |
optional, in cents filter Total credits applied against this invoice. Supported operators : is, is_not, lt, lte, gt, gte, between Example → credits_applied[lte] = "100" |
amount_adjusted |
Object | No |
optional, in cents filter Total adjustments made against this invoice. Supported operators : is, is_not, lt, lte, gt, gte, between Example → amount_adjusted[gte] = "100" |
recurring |
Object | No |
optional, boolean filter Boolean indicating whether this invoice belongs to a subscription. Possible values are : true, false Supported operators : is Example → recurring[is] = "true" |
dunning_status |
Object | No |
optional, enumerated string filter Current dunning status of the invoice. Possible values are : in_progress, exhausted, stopped, success. Supported operators : is, is_not, in, not_in, is_present Example → dunning_status[is] = "in_progress" |
status |
Object | No |
optional, enumerated string filter Current status of this invoice. Possible values are : paid, posted, payment_due, not_paid, voided, pending. Supported operators : is, is_not, in, not_in Example → status[is] = "paid" |
voided_at |
Object | No |
optional, timestamp(UTC) in seconds filter Timestamp indicating the date & time this invoice got voided. Supported operators : after, before, on, between Example → voided_at[on] = "1394532759" |
payment_owner |
Object | No |
optional, string filter Payment owner of an invoice. Supported operators : is, is_not, starts_with, in, not_in Example → payment_owner[is] = "payment_customer" |
price_type |
Object | No |
optional, enumerated string filter The price type of the invoice. Possible values are : tax_exclusive, tax_inclusive. Supported operators : is, is_not, in, not_in Example → price_type[is] = "tax_exclusive" |
date |
Object | No |
optional, timestamp(UTC) in seconds filter The document date displayed on the invoice PDF. Supported operators : after, before, on, between Example → date[on] = "1394532759" |
paid_at |
Object | No |
optional, timestamp(UTC) in seconds filter Timestamp indicating the date & time this invoice got paid. Supported operators : after, before, on, between Example → paid_at[before] = "1394532759" |
include_deleted |
Boolean | No |
If set to true, includes the deleted resources in the response. For the deleted resources in the response, the 'deleted ' attribute will be 'true '. Default value: false |
total |
Object | No |
optional, in cents filter Invoiced amount displayed in cents; that is, a decimal point is not present between the whole number and the decimal part. For example, $499.99 is displayed as 49999, and so on. Supported operators : is, is_not, lt, lte, gt, gte, between Example → total[gt] = "1000" |
updated_at |
Object | No |
optional, timestamp(UTC) in seconds filter To filter based on Example → updated_at[after] = "1243545465" |
id |
Object | No |
optional, string filter The invoice number. Acts as a identifier for invoice and typically generated sequentially. Supported operators : is, is_not, starts_with, in, not_in Example → id[is] = "INVOICE_654" |
customer_id |
Object | No |
optional, string filter The identifier of the customer this invoice belongs to. Supported operators : is, is_not, starts_with, in, not_in Example → customer_id[is] = "3bdjnDnsdQn" |
einvoice |
Object | No |
Parameters for einvoice |
limit |
Integer | No |
The number of resources to be returned. Default value: 10 |
channel |
Object | No |
optional, enumerated string filter The subscription channel this object originated from and is maintained in. Possible values are : web, app_store, play_store. Supported operators : is, is_not, in, not_in Example → channel[is] = "APP STORE" |
amount_due |
Object | No |
optional, in cents filter The unpaid amount that is due on the invoice. This is calculated as:
Example → amount_due[lt] = "200" |
void_reason_code |
Object | No |
optional, string filter Reason code for voiding the invoice. Select from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Invoices > Void invoice . Must be passed if set as mandatory in the app. The codes are case-sensitive. Supported operators : is, is_not, starts_with, in, not_in Example → void_reason_code[is_not] = "Other" |
amount_paid |
Object | No |
optional, in cents filter Payments collected successfully for the invoice. This is the sum of Example → amount_paid[lt] = "800" |
sort_by |
Object | No |
optional, string filter Sorts based on the specified attribute. Supported attributes : date, updated_at Supported sort-orders : asc, desc Example → sort_by[asc] = "date" This will sort the result based on the 'date' attribute in ascending(earliest first) order. |
offset |
String | No |
Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set |
subscription_id |
Object | No |
optional, string filter To filter based on subscription_id. NOTE: Not to be used if consolidated invoicing is enabled. Supported operators : is, is_not, starts_with, is_present, in, not_in Example → subscription_id[is] = "3bdjnDnsdQn" |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.