Documentation Index
Fetch the complete documentation index at: https://docs.unprice.dev/llms.txt
Use this file to discover all available pages before exploring further.
const { result, error } = await unprice.entitlements.get({
customerId: "cus_1234567890"
});
if (error) {
console.error(error.message);
return;
}
console.log(result);
[
{
"customerId": "cus_1234567890",
"featurePlanVersion": {
"featureType": "usage",
"unitOfMeasure": "tokens"
}
}
]
Request
The customer ID to load entitlements for.
Optional project ID. Only main-project keys can request another project.
Response
Returns an array of active customer entitlements with their feature plan version and grant data.