User Offers

User offers represent trials, discounts, partner perks, rewards, and reactivation incentives available to a user.

User Offers Object

Represents trial and discount offers available to the current user.

User Offers Structure
FieldTypeDescription
trialarray[user trial offer object]Trial offers available to the user
discountarray[user discount offer object]Discount offers available to the user

Partner Perk Activation Status Object

Represents the activation state of a partner perk.

Partner Perk Activation Status Structure
FieldTypeDescription
perkintegerThe partner perk
stateintegerThe activation state
entitlement_id?snowflakeThe ID of the entitlement granted for the perk
redirect?stringThe URL used to continue partner-side activation
Partner Perk Type
ValueNameDescription
1XGPPXbox Game Pass perk
Partner Perk State
ValueNameDescription
1INITIALActivation has started
2AWAITING_ACTIVATIONActivation is awaiting partner action
3ACTIVATEDThe perk is active
4FAILEDActivation failed
5EXPIREDThe activation expired
6CANCELLATION_PENDINGCancellation is pending
Example Partner Perk Activation Status
{
"perk": 1,
"state": 3,
"entitlement_id": "1422548914485198869",
"redirect": null
}

Program Rewards Object

Contains rewards granted through Discord reward programs.

Program Rewards Structure
FieldTypeDescription
rewardsarray[program reward object]The user's program rewards
Program Reward Structure
FieldTypeDescription
reward_programintegerThe program through which the reward was granted

Endpoints

List User Offer IDs

GET/user-offer-ids

Returns the IDs of offers available to the current user.

The response is an array of snowflakes.

List User Offers

GET/user-offers

Returns a user offers object.

List Program Rewards

GET/users/@me/program-rewards

Returns a program rewards object.

Redeem Reactivation Offer

POST/users/@me/billing/subscriptions/{subscription.id}/reactivation-offers/{reactivation-offer.id}/redeem

Redeems a subscription reactivation offer. Returns the updated subscription object on success.

Activate Partner Perk

POST/users/@me/partner-perks/{partner-perk.id}

Activates a partner perk. Returns a partner perk activation status object on success.

List Partner Perk Activation Status

GET/users/@me/partner-perks/{partner-perk.id}/activation-status

Returns a partner perk activation status object.

Create Reverse Trial

POST/user-offers/reverse-trial

Creates a reverse trial.

JSON Params
FieldTypeDescription
ends_atISO8601 timestampWhen the reverse trial ends

Modify User Offer

PATCH/user-offers/{offer_type}/{offer.id}

Modifies user offer.

JSON Params
FieldTypeDescription
expires_atISO8601 timestampWhen the offer expires