Passa al contenuto principale

Monetization

Look up and manage the bot's SKUs, entitlements and subscriptions.

Fetch application SKUs​

Fetches all SKUs for the bot's application.

Outputs

NameTypeDetails
SKUsList of SKUAll SKUs of the application.

Fetch SKU by ID​

Fetches a single SKU by ID.

Inputs

NameTypeRequiredDetails
IDDiscord IDYesThe Discord ID of the SKU.

Outputs

NameTypeDetails
SKUSKUThe SKU, or empty if not found. May be empty.

Fetch application entitlements​

Fetches entitlements for the application, optionally filtered by user, SKU, or server.

Inputs

NameTypeRequiredDetails
User IDDiscord IDNoOnly return entitlements owned by this user.
SKU IDsList of Discord IDNoOnly return entitlements for these SKUs.
Server IDDiscord IDNoOnly return entitlements owned by this server.
Exclude EndedYes/NoYesWhether to omit entitlements that have already ended. Default: No.
Exclude DeletedYes/NoYesWhether to omit deleted entitlements. Default: Yes.
LimitWhole numberYesMaximum number of entitlements to return (1-100). Value: 1 to 100. Default: 100.

Outputs

NameTypeDetails
EntitlementsList of EntitlementThe matched entitlements.

Fetch entitlement by ID​

Fetches a single entitlement by its Discord ID.

Inputs

NameTypeRequiredDetails
IDDiscord IDYesThe ID of the entitlement to fetch.

Outputs

NameTypeDetails
EntitlementEntitlementThe entitlement, or empty if not found. May be empty.

Create test entitlement​

Creates a test entitlement for an SKU, useful when testing premium features in development.

Inputs

NameTypeRequiredDetails
SKU IDDiscord IDYesID of the SKU to grant the entitlement for.
Owner TypeEntitlement owner typeYesWhether the entitlement is owned by a user or a server.
Owner IDDiscord IDYesID of the owning user or server.

Outputs

NameTypeDetails
EntitlementEntitlementThe newly created test entitlement.

Delete test entitlement​

Deletes a test entitlement previously created via the test endpoint.

Inputs

NameTypeRequiredDetails
EntitlementEntitlementYesThe test entitlement to delete.

Consume entitlement​

Marks a one-time consumable entitlement as consumed.

Inputs

NameTypeRequiredDetails
EntitlementEntitlementYesThe consumable entitlement to consume.

Fetch SKU subscriptions​

Fetches subscriptions for an SKU, optionally filtered by user and paginated.

Inputs

NameTypeRequiredDetails
SKU IDDiscord IDYesThe SKU whose subscriptions should be fetched.
User IDDiscord IDNoOnly return subscriptions of this user.
BeforeDiscord IDNoReturn subscriptions whose IDs come before this Discord ID.
AfterDiscord IDNoReturn subscriptions whose IDs come after this Discord ID.
LimitWhole numberYesMaximum number of subscriptions to return (1-100). Value: 1 to 100. Default: 50.

Outputs

NameTypeDetails
SubscriptionsList of SubscriptionThe matched subscriptions.

Fetch SKU subscription by ID​

Fetches a single subscription for an SKU by its ID.

Inputs

NameTypeRequiredDetails
SKU IDDiscord IDYesThe SKU the subscription belongs to.
Subscription IDDiscord IDYesThe ID of the subscription.

Outputs

NameTypeDetails
SubscriptionSubscriptionThe subscription, or empty if not found. May be empty.
Need more help?
Can't find what you're looking for? Our team is happy to help.