Use pricing plans to describe how the customer must pay for products.
Rebilly provides the following plan types:
- Trial only: Use this plan to create and offer a free or discounted trial period for your product. For example, a free 2 week trial of an internet service. After the trial, the customer can choose to sign up for a paid subscription, or stop using the service.
- Recurring: Use this plan to create and offer a subscription for your product. For example, a monthly subscription to an internet service that is charged at 20 USD per month.
- One time sale: Use this plan to create and offer a one-off sale for your products. For example, a one time purchase of two bags of coffee.
For information on the plans resource, see Plans.
For information on plan pricing, see Pricing formulas.
Retrieves a list of 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.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/plans
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/plans
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/plans
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'List of plans retrieved.
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.
Name of the plan. This name is displayed on invoices and receipts.
Plain-text description of the plan. This field accepts plain-text only.
Rich-text description of the plan. This field accepts rich text formatting, such as: bold, underline, italic, and hyperlinks.
ID of the related product.
Name-value pairs that specify the product options.
{ "color": "red", "size": "xxl" }
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" }
Number of times the plan is modified. Compare this value with materialized subscription item revision values.
Specifies if a plan is a trial that does not have recurring instructions.
Trial configuration setting. If you do not want to offer a trial, set this value to null.
Use metered billing when an exact quantity is unknown. Report usage during a service period and charge customers afterwards. Metered billing plans must be postpaid.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
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:
- Bill immediately when the service period starts.
- Bill immediately after the service period ends.
- Bill at an interval of time before the service period starts.
- Bill at an interval of time after the service period starts.
- Bill at an interval of time before the service period ends.
- Bill at an interval of time after the service period ends.
[ { "id": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "type": "subscription", "name": "string", "description": "string", "richDescription": "string", "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "productOptions": { … }, "currency": "USD", "currencySign": "string", "pricing": { … }, "setup": { … }, "customFields": { … }, "isActive": true, "revision": 0, "isTrialOnly": false, "recurringInterval": { … }, "trial": { … }, "meteredBilling": { … }, "invoiceTimeShift": { … }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ] } ]