Entitlement object
Entitlement structure
ID of the entitlement.
ID of the SKU.
ID of the parent application.
ID of the user that is granted access to the entitlement’s SKU. Optional field.
Whether the entitlement was deleted.
Start date at which the entitlement is valid.
null for test entitlements.Date at which the entitlement is no longer valid.
null for test entitlements.ID of the guild that is granted access to the entitlement’s SKU. Optional field.
For consumable items, whether the entitlement has been consumed. Optional field.
Entitlement example
Entitlement types
| Type | Value | Description |
|---|---|---|
| PURCHASE | 1 | Entitlement was purchased by user |
| PREMIUM_SUBSCRIPTION | 2 | Entitlement for Discord Nitro subscription |
| DEVELOPER_GIFT | 3 | Entitlement was gifted by developer |
| TEST_MODE_PURCHASE | 4 | Entitlement was purchased by a dev in application test mode |
| FREE_PURCHASE | 5 | Entitlement was granted when the SKU was free |
| USER_GIFT | 6 | Entitlement was gifted by another user |
| PREMIUM_PURCHASE | 7 | Entitlement was claimed by user for free as a Nitro Subscriber |
| APPLICATION_SUBSCRIPTION | 8 | Entitlement was purchased as an app subscription |
List entitlements
GET /applications/{application.id}/entitlementsQuery string params
User ID to look up entitlements for.
Optional list of SKU IDs to check entitlements for.
Retrieve entitlements before this entitlement ID.
Retrieve entitlements after this entitlement ID.
Number of entitlements to return (1–100).
Guild ID to look up entitlements for.
Whether to omit ended entitlements. Defaults to
false — ended entitlements are included by default.Whether to omit deleted entitlements. Defaults to
true — deleted entitlements are not included by default.Response example
Get entitlement
GET /applications/{application.id}/entitlements/{entitlement.id}Consume an entitlement
POST /applications/{application.id}/entitlements/{entitlement.id}/consumeconsumed: true when using List Entitlements.
Returns 204 No Content on success.
Create test entitlement
POST /applications/{application.id}/entitlementssubscription_id, starts_at, or ends_at, as it’s valid in perpetuity.
After creating a test entitlement, reload your Discord client. Your server or user will then have premium access.
JSON params
ID of the SKU to grant the entitlement to.
ID of the guild or user to grant the entitlement to.
1 for a guild subscription, 2 for a user subscription.Request example
Delete test entitlement
DELETE /applications/{application.id}/entitlements/{entitlement.id}204 No Content on success.