Skip to main content
GET
/
v1
/
customer
/
{customerId}
/
getEntitlements
get minimal entitlements
curl --request GET \
  --url https://api.unprice.dev/v1/customer/{customerId}/getEntitlements \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "featureSlug": "<string>",
    "effectiveAt": 123,
    "expiresAt": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerId
string
required

The customer ID

Example:

"cus_1H7KQFLr7RepUyQBKdnvY"

Response

The result of the get minimal entitlements

id
string
required
Maximum string length: 36
featureSlug
string
required
Maximum string length: 64
effectiveAt
number
required
expiresAt
number | null
required