Returns a subscription plan with its features and prices

GET
/billing/api/v1/subscriptions/plans/{plan_id}

Path Parameters

plan_idstringrequired

Plan ID


Responses

200
OK

Response Fields:

  • description (string)

  • features (object[])

  • id (string)

  • name (string)

  • position (integer)

  • prices (object[])

Example:

{
  "description": "string",
  "features": [
    {
      "key": "string",
      "type": "string",
      "value": "string"
    }
  ],
  "id": "string",
  "name": "string",
  "position": 0,
  "prices": [
    {
      "amount": 0,
      "currency": "string",
      "id": "string",
      "interval": "string",
      "is_default": true
    }
  ]
}
400
Bad Request

Example:

{
  "key": "value"
}
404
Not Found

Example:

{
  "key": "value"
}