Skip to main content
GET
/
subscriptions
/
entitlements
List entitlements
curl --request GET \
  --url https://api.billing.io/v1/subscriptions/entitlements \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "ent_1a2b3c4d5e",
      "org_id": "<string>",
      "plan_id": "<string>",
      "feature_key": "<string>",
      "value_boolean": true,
      "value_numeric": 123,
      "value_string": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}
List entitlements for a plan. The plan_id query parameter is required.
curl "https://api.billing.io/v1/subscriptions/entitlements?plan_id=plan_a1b2c3d4e5f6" \
  -H "Authorization: Bearer $BILLING_API_KEY"

Authorizations

Authorization
string
header
required

Use your secret API key as a Bearer token. Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).

Query Parameters

plan_id
string
required

The plan identifier (required)

Response

Entitlement list

data
object[]
has_more
boolean
next_cursor
string | null