Skip to main content
POST
Upsert offers group

Authorizations

Authorization
string
header
required

Opaque Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

application/json

The group to create or update: its id, its offers, its dates and the minimum of active offers.

A group of offers to create or update.

groupId
string
required

Unique ID for the group

Required string length: 1 - 100
campaignIds
string[]
required

List of all offer IDs available in the group. All offer dates should intersect, but not necessarily overlap group dates. All offers should have the same type, and should be published

validFrom
string<date-time>
required

Date from which tickets within the group can be turned into a coupon.

validTo
string<date-time>
required

Date from which tickets within the group can no longer be turned into a coupon.

minimumActiveCampaignsRequired
integer<int32> | null

How many of the group's offers must be active, with coupons left, for a ticket to be assigned to the group. Checked at every ticket assignment. With a minimum of 2, a group with one offer, or with two offers of which one has expired or has no coupons left, takes no tickets.

Response

The group as stored, with its offers.

A group of offers of one type that a ticket holder picks one coupon from.

groupId
string
required

Unique ID for the group

Required string length: 1 - 100
type
string
required

The offer's type, which determines how its coupons reach customers and where they are used will be used. Types used so far: game, appCoupon, gift, preferredStore, memberOffer, stampCard, stickersCampaign. All offers within the group have the same type

Required string length: 1 - 255
campaigns
object[]
required

All offers that are assigned to the group. Includes offers that have no coupons left or already expired.

minimumActiveCampaignsRequired
integer<int32>

How many of the group's offers must be active, with coupons left, for a ticket to be assigned to the group. Checked at every ticket assignment. With a minimum of 2, a group with one offer, or with two offers of which one has expired or has no coupons left, takes no tickets.

validFrom
string<date-time>

Date from which tickets within the group can be turned into a coupon.

validTo
string<date-time>

Date from which tickets within the group can no longer be turned into a coupon.

assignedTickets
integer<int32>

Amount of tickets reserved or assigned in the group, that are not yet turned into coupons.

Last modified on August 10, 2026