Lists all the Invoices.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
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.
Filter Params
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"
INVOICE_654optional, 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"
3bdjnDnsdQnoptional, 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"
1000optional, in cents filter
Payments collected successfully for the invoice. This is the sum of linked_payments[].txn_amount
for all linked_payments[]
that have txn_status
as success.
Supported operators :
is, is_not, lt, lte, gt, gte, between
Example → amount_paid[lt] = "800"
800optional, in cents filter
The unpaid amount that is due on the invoice. This is calculated as: total
-
amount_paid - sum of
applied_credits.applied_amount - sum of
adjustment_credit_notes.cn_total - sum of
linked_taxes_withheld.amount. Supported operators : is, is_not, lt, lte, gt, gte, between
Example → amount_due[lt] = "200"
200optional, 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"
in_progressoptional, timestamp(UTC) in seconds filter
To filter based on updated_at.
This attribute will be present only if the resource has been updated after 2016-09-28. It is advisable when using this filter, to pass the sort_by
input parameter as updated_at
for a faster response.
Supported operators :
after, before, on, between
Example → updated_at[after] = "1243545465"
1243545465optional, 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"
APP STOREoptional, 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"
OtherReturns
This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter offset.