Request
Curl
Response
Success
Parameters
from optional
: integer The Unix timestamp from when plans are to be fetched.
to optional
: integer The Unix timestamp till when plans are to be fetched.
count optional
: integer The number of plans to be fetched. Default value is 10. Maximum value is 100. This can be used for pagination in combination with skip.
skip optional
: integer The number of plans to be skipped. Default value is 0. This can be used for pagination in combination with count.
Parameters
id
: string The unique identifier linked to a plan. For example, plan_00000000000001. This ID is used when creating a subscription for a customer.
entity
: string The entity being created. Here, it is plan.
interval
: integer Used together with period to define how often the customer should be charged.
period
: string Used together with interval to define how often the customer should be charged. Possible values:
dailyweeklymonthlyyearly
item
: array Details of the plan.
id
: string The unique identifier linked to an item. For example, item_00000000000001.
name
: string Name of the plan. For example, Test Plan.
amount
: integer Amount for the plan. When you use this plan to create a subscription, the customer will be charged this amount periodically.
currency
: string Currency for the payment. You can accept payment in any of the supported currencies.
description
: string Description for the plan. For example, Description for the test plan.
notes
: object Notes you can enter of the contact for future reference. This is a key-value pair. You can enter a maximum of 15 key-value pairs. For example, "note_key": "Monthly Gym".
created_at
: integer The Unix timestamp at which the plan was created.
Errors
The API key/secret provided is invalid.- code: 4xx
- description: This error occurs due to a mismatch between the API credentials passed in the API call and those generated on the Dashboard.
- solution: Ensure that the API keys are active and correctly entered, with no whitespaces before or after the keys.