I’ve been working with the API and noticed that in several endpoints where active_entitlements or similar objects are returned in a lightweight format, we only get the internal entitlement_id, like this:
{
"entitlement_id": "entl498b7a7b44",
"expires_at": 1755783769000,
"object": "customer.active_entitlement"
}However, it would be extremely helpful if the lookup_key was included as well in these responses.
For example, in:
GET /v2/projects/{project_id}/customers/{customer_id}
GET /v2/projects/{project_id}/customers/{customer_id}/active_entitlements
We only get the internal ID, and in order to know which entitlement this refers to (e.g. "Pro", "Premium", etc.), we have to make an additional API call to:
GET /v2/projects/{project_id}/entitlements/{entitlement_id}
This adds unnecessary complexity and overhead, especially when managing entitlements for multiple users at scale.
Would it be possible to include the lookup_key directly in all entitlement summaries across the API?
It would make integrations much smoother and reduce the number of API calls needed for basic entitlement resolution.
