Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.
For more information, see Search filters.
Retrieves a list of plans.
To retrieve plans by type, use filter=type:{type}, where {type} is subscription, one-time-sale, or trial-only. To retrieve plans of several types, separate the types with commas, for example: filter=type:one-time-sale,trial-only. Other type values, including negated values such as type:!subscription, match no plans.
Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.
For more information, see Search filters.
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/plans?filter=string&sort=string&limit=0&offset=0&q=string' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Total number of items that match the request. The value is independent of limit, including when limit is 0.
Variant of the plan. This field is optional in create and update requests. The variant is subscription when recurringInterval is present. If included, this field must match the applicable variant. A mismatch results in an HTTP 422 response. Responses always include this field.
{ "region": "US", "size": "xxl" }
One-time setup fee charged when the plan starts. Set to 0 or null if no setup fee applies.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
Use invoice time shift to control the billing time.
Invoice time shift adjusts the invoice issue and due date when billing must occur before the service period changes.
Use invoice time shift in conjunction with billingTiming to:
[ { "id": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "type": "subscription", "name": "string", "description": "string", "richDescription": "string", "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "productOptions": { … }, "currency": "USD", "currencySign": "string", "pricing": { … }, "setup": { … }, "setupFee": 0, "customFields": { … }, "isActive": true, "revision": 0, "isTrialOnly": false, "recurringInterval": { … }, "trial": { … }, "meteredBilling": { … }, "invoiceTimeShift": { … }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ] } ]