Retrive single plan

You can fetch a single plan

 

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

Example Request & Response


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


 

200 OK

{
    "plan": {
        "id": 8,
        "name": "pro_plan",
        "currency": "usd",
        "amount": 29,
        "interval": "month",
        "trial_duration": 20,
        "trial_duration_unit": "day"
    }
}

 

404 Not Found

{
    "status_code": 404,
    "message": "Plan with id 50 not found"
}