GET /subscriptions
Returns a list of subscriptions meeting all the conditions specified in the filter parameters below.
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 |
|---|---|---|---|
cancel_reason_code |
Object | No |
optional, string filter Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Subscriptions > Subscription Cancellation . 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 → cancel_reason_code[is] = "Not Paid" |
cancel_reason |
Object | No |
optional, enumerated string filter The reason for canceling the subscription. Set by Chargebee automatically. Possible values are : not_paid, no_card, fraud_review_failed, non_compliant_eu_customer, tax_calculation_failed, currency_incompatible_with_gateway, non_compliant_customer. Supported operators : is, is_not, in, not_in, is_present Example → cancel_reason[is] = "not_paid" |
activated_at |
Object | No |
optional, timestamp(UTC) in seconds filter Time at which the subscription Example → activated_at[after] = "1435054328" |
item_price_id |
Object | No |
optional, string filter The plan item price code. Supported operators : is, is_not, starts_with, in, not_in Example → item_price_id[is] = "silver-USD-monthly" |
has_scheduled_changes |
Object | No |
optional, boolean filter If Supported operators : is Example → has_scheduled_changes[is] = "true" |
business_entity_id |
Object | No |
optional, string filter The unique ID of the business entity of this subscription. This is always the same as the business entity of the customer. Supported operators : is, is_not, starts_with Example → business_entity_id[is_not] = "business_entity_id" |
status |
Object | No |
optional, enumerated string filter Current state of the subscription. Possible values are : future, in_trial, active, non_renewing, paused, cancelled. Supported operators : is, is_not, in, not_in Example → status[is_not] = "active" |
auto_close_invoices |
Object | No |
optional, boolean filter Set to Supported operators : is Example → auto_close_invoices[is] = "true" |
override_relationship |
Object | No |
optional, boolean filter If Supported operators : is Example → override_relationship[is] = "false" |
include_deleted |
Boolean | No |
Indicates whether to include deleted objects in the list. The deleted objects have the attribute Default value: false |
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 A unique and immutable identifier for the subscription. If not provided, it is autogenerated. Supported operators : is, is_not, starts_with, in, not_in Example → id[is_not] = "8gsnbYfsMLds" |
customer_id |
Object | No |
optional, string filter Identifier of the customer with whom this subscription is associated. Supported operators : is, is_not, starts_with, in, not_in Example → customer_id[is] = "8gsnbYfsMLds" |
offline_payment_method |
Object | No |
optional, enumerated string filter The preferred offline payment method for the subscription. Possible values are : no_preference, cash, check, bank_transfer, ach_credit, sepa_credit. Supported operators : is, is_not, in, not_in Example → offline_payment_method[is_not] = "cash" |
next_billing_at |
Object | No |
optional, timestamp(UTC) in seconds filter The date/time at which the next billing for the subscription happens. This is usually right after Example → next_billing_at[after] = "1435054328" |
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_not] = "APP STORE" |
remaining_billing_cycles |
Object | No |
optional, integer filter
Example → remaining_billing_cycles[is_not] = "3" |
cancelled_at |
Object | No |
optional, timestamp(UTC) in seconds filter Time at which subscription was cancelled or is set to be cancelled. Supported operators : after, before, on, between Example → cancelled_at[after] = "1435054328" |
created_at |
Object | No |
optional, timestamp(UTC) in seconds filter The time at which the subscription was created. Supported operators : after, before, on, between Example → created_at[before] = "1435054328" |
item_id |
Object | No |
optional, string filter The plan item code. Supported operators : is, is_not, starts_with, in, not_in Example → item_id[is_not] = "silver" |
sort_by |
Object | No |
optional, string filter Sorts based on the specified attribute. Supported attributes : created_at, updated_at Supported sort-orders : asc, desc Example → sort_by[asc] = "created_at" This will sort the result based on the 'created_at' 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 |
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.