SKU Object
SKU Structure
SKU Example
SKU Types
For subscriptions, SKUs will have a type of eitherSUBSCRIPTION represented by type: 5 or SUBSCRIPTION_GROUP represented by type:6. For any current implementations, you will want to use the SKU defined by type: 5. A SUBSCRIPTION_GROUP is automatically created for each SUBSCRIPTION SKU and are not used at this time.
SKU Flags
For subscriptions, there are two types of access levels you can offer to users:- Guild Subscriptions: A subscription purchased by a user and applied to a single server. Everyone in that server gets your premium benefits.
- User Subscriptions: A subscription purchased by a user for themselves. They get access to your premium benefits in every server.
flags field can be used to differentiate user and server subscriptions with a bitwise & operator.
List SKUs
GET/applications/{application.id}/skus
Returns all SKUs for a given application.
Because of how our SKU and subscription systems work, you will see two SKUs for your subscription offering. For integration and testing entitlements for Subscriptions, you should use the SKU with
type: 5.