Skip to content
Console
On this page

Batch check on an entitlement grant

Checks multiple features for one subject in the same entitlement snapshot.

Checks multiple features for one subject in the same entitlement snapshot.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants:batchCheck
  • Scope billing:read
  • Effect read — nothing is written.
  • Collection entitlement_grants

Request

FieldTypeWhat it is
parentstringThe environment to check in. Required.
subjectSubjectThe subject shared by every check. Required.
featuresstring[]Feature keys to check. Duplicate keys are allowed and count toward the cap. Required.

Subject

FieldTypeWhat it is
end_userstringAn end user's id (Sylphx Auth, or the app's own OIDC issuer). One of the kind group.
customer_organizationstringA customer organization's id. One of the kind group.

Response

FieldTypeWhat it is
resultsCheckEntitlementResponse[]One decision per input position, in request order, including duplicates and features with no active grant.

CheckEntitlementResponse

FieldTypeWhat it is
entitledboolWhether the subject holds the feature now.
limitstringFor a limit feature, the largest allowance the subject holds.
entitlement_grantstringThe grant that answers, when entitled.
expire_timetimestampWhen the answering grant ends; unset for no end. A caller may cache the answer until then.
sourcestringThe answering grant's source, for example <checkout session>/line_items/<n>: the grant claim of an offline licence token.
decisionEntitlementDecisionAlways set on success, including when no active grant exists. Missing or unspecified is not an authoritative answer. Output only. One of entitled, not_entitled.
start_timetimestampInclusive effective start of the answering windowed grant. Output only.
subjectSubjectSubject of the answering grant when a windowed term answers. Output only.

Subject

FieldTypeWhat it is
end_userstringAn end user's id (Sylphx Auth, or the app's own OIDC issuer). One of the kind group.
customer_organizationstringA customer organization's id. One of the kind group.

Errors

Every error arrives in the body Errors describes.

Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants:batchCheck" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"features":["…"],"subject":{}}'