This API fetches all the active and archived plans. If the limit parameter is not set, it will return upto 10 plans.
Sample Request
URL Format
Input Parameters
Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset
to the value of next_offset
obtained in the previous iteration of the API call.
Filter Params
optional, string filter
A unique ID for your system to identify the plan. Supported operators : is, is_not, starts_with, in, not_in
Example → id[is] = "Enterprise"
Enterpriseoptional, string filter
The display name used in web interface for identifying the plan. Supported operators : is, is_not, starts_with, in, not_in
Example → name[is] = "plan_enterprise"
plan_enterpriseoptional, in cents filter
The price of the plan. The unit depends on the type of currency . Supported operators : is, is_not, lt, lte, gt, gte, between
Example → price[gte] = "1200"
1200optional, integer filter
Defines billing frequency. Example: to bill customer every 3 months, provide "3" here. Supported operators : is, is_not, lt, lte, gt, gte, between
Example → period[lte] = "3"
3optional, enumerated string filter
Defines billing frequency in association with billing period. Possible values are : day, week, month, year.
Supported operators : is, is_not, in, not_in
Example → period_unit[is] = "month"
monthoptional, integer filter
The free time window for your customer to try your product. Supported operators : is, is_not, lt, lte, gt, gte, between, is_present
Example → trial_period[lt] = "14"
14optional, enumerated string filter
Time unit for the trial period. Possible values are : day, month.
Supported operators : is, is_not, in, not_in
Example → trial_period_unit[is] = "day"
dayoptional, enumerated string filter
Indicates if all or only some addons are applicable with the plan. Possible values are : all, restricted.
Supported operators : is, is_not, in, not_in
Example → addon_applicability[is] = "all"
alloptional, boolean filter
Specifies if the plan should be gifted or not. Possible values are : true, false
Supported operators : is
Example → giftable[is] = "true"
trueoptional, enumerated string filter
Defines how the recurring charges for the subscription is calculated. Possible values are : flat_fee, per_unit, tiered, volume, stairstep.
Supported operators : is, is_not, in, not_in
Example → pricing_model[is] = "flat_fee"
flat_feeoptional, enumerated string filter
The plan state. Possible values are : active, archived, deleted.
Supported operators : is, is_not, in, not_in
Example → status[is] = "active"
activeoptional, 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-11-09. Supported operators : after, before, on, between
Example → updated_at[before] = "1243545465"
1243545465optional, string filter
The currency code (ISO 4217 format) of the plan. Supported operators : is, is_not, starts_with, in, not_in
Example → currency_code[is] = "USD"
USDoptional, 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 STOREReturns
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.