Retrieve single Subscription

You can fetch a single subscription

 

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 subscription

Example Request & Response


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


 

200 OK

{
    "subscription": {
        "id": 6,
        "started_at": null,
        "canceled_at": "2022-04-09T09:09:09Z",
        "plan": 5,
        "company": 38,
        "quantity": 2
    }
}

 

404 Not Found

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