Subscription PlansExperimental
List subscription plans
Returns a paginated list of the subscription plans your account has created.
/subscription-plansAuthorization
Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works
Query parameters
limitintegerMaximum number of items to return (1-100)
20cursorstringCursor for the next page. Pass the nextCursor value from a previous response.
Responses
200Client-scoped subscription plan pageapplication/jsonShow response bodyHide response body
dataarray of SubscriptionPlanShow propertiesHide properties
subscriptionPlanReferencestringSubscription-plan reference.
namestringrenewalone of Monthly renewal | Daily renewalRequired immutable cadence, calculated from the subscription's original UTC anchor.
Show propertiesHide properties
Monthly renewalobjectoptionalShow propertiesHide properties
unitstringcountintegerDaily renewalobjectoptionalShow propertiesHide properties
unitstringcountintegerrevisionintegerincludedPackagePlansarray of PackagePlanThe package plans this revision includes.
Show propertiesHide properties
planReferencestringPlan reference
namestringtypestringExtensible enum. Package type: data for mobile data, sms for text messaging, voice for calls, voice_sms for one allowance that calls and text messages both draw on.
datasmsvoicevoice_smsallowanceobjectWhat a package of the plan can use, for each renewal cycle of a recurring plan and for the whole validity of any other plan. Carries either count or unlimited, never both.
Show propertiesHide properties
unitstringExtensible enum. Unit a package's amounts are expressed in, determined by the package type: mb for data, seconds for voice, sms for text messages and units for voice and SMS, where a call minute and a text message each count as one unit. A package's amounts and its plan's allowance count the same megabyte, so they compare directly.
mbsecondssmsunitscountintegeroptionalThe allowance in unit. Absent when the allowance is unlimited.
unlimitedbooleanoptionalPresent, as true, when the allowance has no limit; count is then absent.
speedKbpsintegeroptionalSpeed cap in kilobits per second. Absent when the speed is not capped.
throttleobjectoptionalData the package keeps at a reduced speed once its allowance is used up. Carries either count or unlimited, never both. Absent when the plan has no reduced speed.
Show propertiesHide properties
countintegeroptionalThe reduced-speed data, in the allowance's unit. Absent when it is unlimited.
unlimitedbooleanoptionalPresent, as true, when the reduced-speed data has no limit; count is then absent.
speedKbpsintegerThe reduced speed in kilobits per second.
capacityMbinteger | nullDeprecatedUse allowance. The allowance of a data plan in megabytes; null for any other type or an unlimited plan.
speedKbpsinteger | nullDeprecatedUse allowance.speedKbps. Speed cap in kilobits per second; null when the speed is not capped.
throttleCapacityMbinteger | nullDeprecatedUse allowance.throttle. Reduced-speed data in megabytes once the allowance is used up; null when that data is unlimited or the plan has no reduced speed.
throttleSpeedKbpsinteger | nullDeprecatedUse allowance.throttle. Reduced speed in kilobits per second once the allowance is used up; null when the plan has no reduced speed.
smsCountinteger | nullDeprecatedUse allowance. The allowance of an SMS plan in messages; null for any other type or an unlimited plan.
voiceSecondsinteger | nullDeprecatedUse allowance. The allowance of a voice plan in seconds; null for any other type or an unlimited plan.
validityobjectHow long a package of this plan stays valid; indefinite when its packages never expire.
Show propertiesHide properties
unitstringExtensible enum. minute, day, month or indefinite. With relative alignment a day is 24 hours and a month ends on the same day of the month, or on the last day of a shorter month; with calendar alignment a day ends at midnight and a month at 00:00 on the 1st.
daymonthindefinitecountintegerrenewalobject | nullHow often a recurring plan's allowance renews. Null for a non-recurring plan.
Show propertiesHide properties
unitstringExtensible enum. minute, day, month or indefinite. With relative alignment a day is 24 hours and a month ends on the same day of the month, or on the last day of a shorter month; with calendar alignment a day ends at midnight and a month at 00:00 on the 1st.
daymonthindefinitecountintegeralignmentstringExtensible enum. Where the plan's validity and renewal boundaries fall. relative: every boundary is counted from the moment the package's validity starts. calendar: every boundary falls at midnight, or at 00:00 on the 1st for a duration in months, in the local time of the plan's network; the first period is shorter and carries the plan's full allowance.
relativecalendarvalidityMinutesintegerDeprecatedUse validity. The validity in minutes, a month counted as 30 days.
coverageobjectWhere the plan works.
Show propertiesHide properties
regionNamestringName of the plan's region
countryCodesarray of stringISO 3166-1 alpha-2 codes of the countries the region's plans work in, whether or not the country has plans of its own. Besides the assigned codes, the list can hold XK (Kosovo), which ISO leaves to users, and AN (Netherlands Antilles) and TA (Tristan da Cunha), which ISO reserves. A single-country region lists its own country.
countryCodestring | nulloptionalDeprecatedThe code of the plan's country (e.g. 'NL'), or global for a plan whose region covers several countries.
recurringbooleanWhether this plan auto-renews when it expires
renewalPeriodMinutesinteger | nullDeprecatedUse renewal. The renewal cycle in minutes, a month counted as 30 days; null for a non-recurring plan.
createdAtstring · date-timeupdatedAtstring · date-timepaginationobjectShow propertiesHide properties
limitintegerMaximum items per page
hasMorebooleanWhether there are more items after this page
nextCursorstring | nullCursor for the next page. Null when there are no more results.
400Bad request - invalid parameters401Unauthorized - missing or invalid API key