Creates a coupon.
Publisher token, as displayed in the Publisher Dashboard.
Coupon name. Can't contain spaces or special characters.
"summer26"
Discount percentage applied by the coupon.
1
Whether the coupon is active.
true
Maximum number of times a customer can redeem this coupon.
2
Expiration date of the coupon.
"2025-04-02T06:54:51.670Z"
Start date of the coupon validity. If not provided, defaults to current date and time.
"2025-02-02T06:54:51.670Z"
List of offer IDs which this coupon applies. Empty array means all offers are supported.
Note: This represents both the offer.sku value in the Create Checkout Session API, and the publisherOfferId in the Offers V2 API.
["bundle1", "rollingoffer3"]Whether the coupon is only valid for first-time purchases.
false
List of player IDs that can redeem this coupon.
Coupon created successfully.
Coupon name.
"summer26"
Whether the coupon is active.
true
Discount percentage applied by the coupon.
1
Maximum number of times a customer can redeem this coupon.
2
Expiration date of the coupon.
"2025-04-02T06:54:51.670Z"
Start date of the coupon validity.
"2025-02-02T06:54:51.670Z"
List of offer external IDs that support this coupon. Empty array means all offers are supported.
["bundle1", "rollingoffer3"]Whether the coupon is only valid for first-time purchases.
false
List of player IDs allowed to use this coupon. Empty array means all players are allowed.
["player123", "player456", "player789"]