Skip to main content
GET
cURL
Retrieves an array of plan objects. Out of the parameters below, duration, exclude_tags, include_tags, and include_tags_all will filter plan objects. version_currency_code, version_custom_type, and version_status will filter versions within those plans. If a plan has no versions that match the filter, it will not be returned.

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

duration
enum<string>

Filter to plans that have this duration.

  • monthly - Monthly
  • quarterly - Quarterly
  • yearly - Yearly
Available options:
monthly,
quarterly,
yearly
Minimum string length: 1
exclude_tags
string[]

Filter to plans that do not have any of the tags in this list.

Minimum string length: 1
include_tags
string[]

Filter to plans that have any of the tags in this list.

Minimum string length: 1
include_tags_all
string[]

Filter to plans that have all of the tags in this list.

Minimum string length: 1
version_currency_code
string

Filter to versions that have the currency specified by this currency code.

Minimum string length: 1
version_custom_type
enum<string>
default:all

Filter to versions that have this custom type. If you choose custom_only, you will only see versions that have target customers. If you choose public_only, you will only see versions that do not have target customers.

  • custom_only - Custom Only
  • public_only - Public Only
  • all - All
Available options:
custom_only,
public_only,
all
Minimum string length: 1
version_status
enum<string>[]

Filter to versions that have this status. Ended means it has an active_to date in the past. Not started means it has an active_from date in the future or null.

  • active - Active
  • ended - Ended
  • not_started - Not Started
Available options:
active,
ended,
not_started

Response

200 - application/json
plan_id
string
required
plan_name
string
required

Name of the plan

plan_duration
enum<string> | null
required

Duration of the plan

  • monthly - Monthly
  • quarterly - Quarterly
  • yearly - Yearly
Available options:
monthly,
quarterly,
yearly,
null
plan_description
string | null
required

Description of the plan

The external links that this plan has.

num_versions
integer
required
read-only

The number of versions that this plan has.

active_version
integer
required
read-only

This plan's currently active version.

active_subscriptions
integer
required
read-only

The number of active subscriptions that this plan has across all versions.

tags
string[]
required
read-only

The tags that this plan has.

Pattern: ^[-a-zA-Z0-9_]+$
versions
object[]
required

This plan's versions.

parent_plan
object | null
required
deprecated

[DEPRECATED] The parent plan that this plan has.

target_customer
object | null
required
deprecated

[DEPRECATED] The target customer that this plan has.

display_version
object
required
deprecated

[DEPRECATED] Display version has been deprecated. Use 'versions' instead. We will still return this field for now with some heuristics for figuring out what the desired version is, but it will be removed in the near future.

status
string
required
deprecated
read-only

[DEPRECATED] The status of this plan.