List all plans

You can fetch a list of all plans.

 

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization

Example Request & Response


$ curl https://api.custerem.com/<org_id>/plans/ \
-X GET \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \


 

200 OK


{
    "plans": [
        {
            "id": 8,
            "name": "pro_plan",
            "currency": "usd",
            "amount": 29,
            "interval": "month",
            "trial_duration": 20,
            "trial_duration_unit": "day"
        },
        {
            "id": 5,
            "name": "Business",
            "currency": "usd",
            "amount": 20,
            "interval": "month",
            "trial_duration": 0,
            "trial_duration_unit": "day"
        }
    ]
}