You can use this endpoint to list a customer's entitlements and calculate a subscription's length. You can fetch entitlements for two types of offer: subscriptions and passes only. (For more information on offers, see What is a Cleeng offer?).
If there are two or more subscriptions or passes for the same offer and the same customer, there will be as many entitlements returned as there are subscriptions / passes.
Note
Granting entitlements is based on subscription status, not its expiration date.
Even if the
expiresAt
date is in the past, a subscription status can still beactive
. This may occur for example during a Grace period, where access is allowed to continue for a set time after the expiration date is reached, therefore the subscription is terminated only after the grace period ends.