Get a list of Rates Plans.

The search parameter and the name sort read the name of a rate plan in one language: the language that Accept-Language asks for, else the default language of the property, else English. A regional variant falls back to its sibling (es-es to es, pt-pt to pt-br, and the reverse). The response always returns the names in every language.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
≥ 0
Defaults to 0

The number of items to skip before starting to collect the result set. Used for pagination.

integer
1 to 500
Defaults to 100

The maximum number of items to return in the response. Default is 100.

string

Filter the list. Each clause is written field:operator:value, and multiple clauses are separated by a semicolon (;) — not a comma, which the sort parameter uses. Clauses are combined with AND; grouping and OR are not supported here. Supported fields: isActive (equals), isDerived (equals), promoCode (contains), code (contains), category (equals, in), status (equals, in), policyId (equals, in), segmentId (equals, in), derivedRatePlanId (equals, in, is_null, is_not_null), sources (in), addonId (equals, in). A status filter takes one of active, expired, no-intervals, disabled; with in, several separated by a comma. It is applied before limit and offset, so a page and its total both describe the rate plans in those statuses. sources takes source codes and matches the rate plans that have any of them (sources:in:s-1,s-2), not the rate plans that have all of them. addonId matches the rate plans that have any of the add-ons, each rate plan once. The in operator takes a comma-separated list of up to 100 values (policyId:in:1,2,3); is_null and is_not_null take no value (derivedRatePlanId:is_null). derivedRatePlanId takes 0 for the property base rate, alone or in a list (derivedRatePlanId:in:0,12), and 0 matches plans with no parent plan. derivedRatePlanId:is_null matches plans with no parent plan, which includes plans derived from the base rate; derivedRatePlanId:is_not_null matches plans whose parent is another rate plan. None of these checks isDerived, so add isDerived:equals:true to keep derived plans only. policyId, segmentId, derivedRatePlanId, sources and addonId are filters only and cannot be sorted on.

Return only the rate plans with this text in the name, the internal name, the promo code or the code, without regard to case or accents. The two names are read in one language (see the description of the operation). The text is not a filter clause: write it as it is, with no operator. It is combined with filters by AND and applied before limit and offset, so a page and its total both describe the rate plans that match.

string

Sort the list. Supported fields: createdAt, updatedAt, isActive, code, category, status, name. Multiple fields are separated by a comma (,), and each may carry a direction written as field:asc or field:desc; a field given on its own sorts ascending. status sorts in the order active, expired, no-intervals, disabled (reversed for desc). category sorts alphabetically by its value. name sorts by the name in one language (see the description of the operation), without regard to case; the rate plans with no name come last in both directions. When omitted, the list is returned newest first (createdAt descending).

boolean
Defaults to false

Return the total number of items matching the request, ignoring limit and offset. Boolean values are accepted case-insensitively, so true, TRUE, True and 1 all enable it.

Headers
string
required

A numeric, comma-separated string representing the property IDs, sent in the header.

string

RFC 5646 language preferences used for negotiation (e.g. es-ES, en;q=0.8).

Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json