Get a subscription plan

GET https://api.cryptohopper.com/v1/subscription/plans/{plan_id}

Returns one subscription plan and whether the user has an active subscription on it (subscribed is 1 or 0).

Needs a valid access token, but no specific scope. Some internal plans return 404.

Example request

curl "https://api.cryptohopper.com/v1/subscription/plans/PLAN_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
plan_id string Required ID of the plan, as returned by Get subscription plans.

Response

Example response (illustrative values)

{
    "data": {
        "plan_id": "2",
        "name": "Adventurer",
        "description": "For traders who want more positions and faster checks.",
        "price_month": "69.00",
        "price_year": "690.00",
        "subscribed": 0
    }
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.