Coupons
Coupon codes, discounts, and promotional offers.
CODEtrue2024-01-01T00:00:00Z2024-12-31T23:59:59ZSearches coupons by creator name. Matches users first, then filters coupons by matching creator IDs. Returns empty if no users match.
johndescPossible values: ["BOOKING","EVENT_OPEN_PLAY"]["SINGLE_USE","LIMITED"]["les","w37"]qReturns a CouponCollection
GET /apis/v2/coupons?page=1&ipp=1 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Returns a CouponCollection
{
"items": [
{
"id": "text",
"status": "DRAFT",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"ticketsApplied": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"createdDate": "2026-01-01T00:00:00.000Z",
"creator": {
"id": "text",
"user": {
"id": "text"
},
"type": "REGULAR",
"firstName": "text",
"lastName": "text",
"gender": "text",
"birthday": "2026-01-01T00:00:00.000Z",
"initials": "text",
"description": "text",
"picture": {},
"usattRating": 1,
"duprProfileUrl": "text",
"memberSince": "2026-01-01T00:00:00.000Z",
"membershipEnrollment": {},
"kids": {},
"_links": {}
},
"_links": {}
}
],
"_pagination": {
"page": 1,
"ipp": 1,
"count": 1,
"total": 1
},
"_links": {
"self": {
"href": "text"
}
}
}Deprecated: Use eligibleTypes array instead
Array of eligible event types. Use "EVENT_SUBTYPE" for category (e.g., EVENT_ADULT_CLASS matches all adult classes). Use "EVENT_SUBTYPE:customType" for specific type (e.g., EVENT_ADULT_CLASS:Podfit).
["BOOKING","EVENT_ADULT_CLASS","EVENT_OPEN_PLAY:Ranch Play"]Returns a Coupon
Deprecated: Use eligibleTypes array instead
Array of eligible event types. Use "EVENT_SUBTYPE" for category (e.g., EVENT_ADULT_CLASS matches all adult classes). Use "EVENT_SUBTYPE:customType" for specific type (e.g., EVENT_ADULT_CLASS:Podfit).
["BOOKING","EVENT_ADULT_CLASS","EVENT_OPEN_PLAY:Ranch Play"]Returns an error
Returns an ErrorDto in case of validation errors or failures.
Possible error codes are:C001: (couponCode) => The promo code ${couponCode} is not valid.C002: Please add the limit countC003: A promo code can't be used multiple times and be first game onlyC004: The promo code already existsC005: The start date must be before the end dateC006: One or more eligible users are not valid
POST /apis/v2/coupons HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 506
{
"id": "text",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"_links": {}
}{
"id": "text",
"status": "DRAFT",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"ticketsApplied": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"createdDate": "2026-01-01T00:00:00.000Z",
"creator": {
"id": "text",
"user": {
"id": "text"
},
"type": "REGULAR",
"firstName": "text",
"lastName": "text",
"gender": "text",
"birthday": "2026-01-01T00:00:00.000Z",
"initials": "text",
"description": "text",
"picture": {},
"usattRating": 1,
"duprProfileUrl": "text",
"memberSince": "2026-01-01T00:00:00.000Z",
"membershipEnrollment": {},
"kids": {},
"_links": {}
},
"_links": {}
}f94e8bf8-454f-4f78-b358-1543ccc05d15["_links.allowedAreas","_links.eligibleUsers"]Returns a Coupon
Deprecated: Use eligibleTypes array instead
Array of eligible event types. Use "EVENT_SUBTYPE" for category (e.g., EVENT_ADULT_CLASS matches all adult classes). Use "EVENT_SUBTYPE:customType" for specific type (e.g., EVENT_ADULT_CLASS:Podfit).
["BOOKING","EVENT_ADULT_CLASS","EVENT_OPEN_PLAY:Ranch Play"]GET /apis/v2/coupons/{couponId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Returns a Coupon
{
"id": "text",
"status": "DRAFT",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"ticketsApplied": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"createdDate": "2026-01-01T00:00:00.000Z",
"creator": {
"id": "text",
"user": {
"id": "text"
},
"type": "REGULAR",
"firstName": "text",
"lastName": "text",
"gender": "text",
"birthday": "2026-01-01T00:00:00.000Z",
"initials": "text",
"description": "text",
"picture": {},
"usattRating": 1,
"duprProfileUrl": "text",
"memberSince": "2026-01-01T00:00:00.000Z",
"membershipEnrollment": {},
"kids": {},
"_links": {}
},
"_links": {}
}Deletes a Coupon
Deprecated: Use eligibleTypes array instead
Array of eligible event types. Use "EVENT_SUBTYPE" for category (e.g., EVENT_ADULT_CLASS matches all adult classes). Use "EVENT_SUBTYPE:customType" for specific type (e.g., EVENT_ADULT_CLASS:Podfit).
["BOOKING","EVENT_ADULT_CLASS","EVENT_OPEN_PLAY:Ranch Play"]DELETE /apis/v2/coupons/{couponId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Deletes a Coupon
{
"id": "text",
"status": "DRAFT",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"ticketsApplied": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"createdDate": "2026-01-01T00:00:00.000Z",
"creator": {
"id": "text",
"user": {
"id": "text"
},
"type": "REGULAR",
"firstName": "text",
"lastName": "text",
"gender": "text",
"birthday": "2026-01-01T00:00:00.000Z",
"initials": "text",
"description": "text",
"picture": {},
"usattRating": 1,
"duprProfileUrl": "text",
"memberSince": "2026-01-01T00:00:00.000Z",
"membershipEnrollment": {},
"kids": {},
"_links": {}
},
"_links": {}
}Deprecated: Use eligibleTypes array instead
Array of eligible event types. Use "EVENT_SUBTYPE" for category (e.g., EVENT_ADULT_CLASS matches all adult classes). Use "EVENT_SUBTYPE:customType" for specific type (e.g., EVENT_ADULT_CLASS:Podfit).
["BOOKING","EVENT_ADULT_CLASS","EVENT_OPEN_PLAY:Ranch Play"]Returns a Coupon
Deprecated: Use eligibleTypes array instead
Array of eligible event types. Use "EVENT_SUBTYPE" for category (e.g., EVENT_ADULT_CLASS matches all adult classes). Use "EVENT_SUBTYPE:customType" for specific type (e.g., EVENT_ADULT_CLASS:Podfit).
["BOOKING","EVENT_ADULT_CLASS","EVENT_OPEN_PLAY:Ranch Play"]Returns an error
PATCH /apis/v2/coupons/{couponId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 506
{
"id": "text",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"_links": {}
}{
"id": "text",
"status": "DRAFT",
"code": "text",
"description": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"ticketsLeft": 1,
"ticketsApplied": 1,
"active": true,
"startDate": "2026-01-01T00:00:00.000Z",
"endDate": "2026-01-01T00:00:00.000Z",
"daysOfWeek": [
1
],
"eligibleTypes": [
"BOOKING",
"EVENT_ADULT_CLASS",
"EVENT_OPEN_PLAY:Ranch Play"
],
"eligibleUsers": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"eligibleDomains": [
"text"
],
"tags": [
"SINGLE_USE"
],
"allowedAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"createdDate": "2026-01-01T00:00:00.000Z",
"creator": {
"id": "text",
"user": {
"id": "text"
},
"type": "REGULAR",
"firstName": "text",
"lastName": "text",
"gender": "text",
"birthday": "2026-01-01T00:00:00.000Z",
"initials": "text",
"description": "text",
"picture": {},
"usattRating": 1,
"duprProfileUrl": "text",
"memberSince": "2026-01-01T00:00:00.000Z",
"membershipEnrollment": {},
"kids": {},
"_links": {}
},
"_links": {}
}f94e8bf8-454f-4f78-b358-1543ccc05d15Returns a UserCollection
GET /apis/v2/coupons/{couponId}/eligible-users HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Returns a UserCollection
{
"items": [
{
"id": "text",
"email": "name@gmail.com",
"firstName": "text",
"lastName": "text",
"description": "text",
"notes": {
"id": "text"
},
"phoneNumberPreview": "text",
"phoneNumber": {
"id": "text"
},
"roles": [
"ADMIN"
],
"rolesAreas": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"flags": [
"NEW"
],
"paymentMethod": {
"id": "text"
},
"paymentElements": {
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"freeQuickReplays": 1,
"picture": {
"id": "text"
},
"gender": "text",
"birthday": "2026-01-01T00:00:00.000Z",
"favoriteReplays": {},
"profile": {
"id": "text"
},
"coachProfile": {
"id": "text"
},
"qrCode": {
"id": "text"
},
"membershipEnrollment": {
"id": "text"
},
"ratings": {
"_total": 1
},
"securityPicture": {
"id": "text"
},
"chat": {
"id": "text"
},
"segmentation": {
"id": "text"
},
"_links": {}
}
],
"_pagination": {
"page": 1,
"ipp": 1,
"count": 1,
"total": 1
},
"_links": {
"self": {
"href": "text"
}
}
}Returns a collection of BaseCollectionDto<UserDto>
PATCH /apis/v2/coupons/{couponId}/eligible-users HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"file": "binary"
}Returns a collection of BaseCollectionDto<UserDto>
{
"items": [
"text"
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
}f94e8bf8-454f-4f78-b358-1543ccc05d15Returns a CouponSummary
GET /apis/v2/coupons/{couponId}/summary HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Returns a CouponSummary
{
"id": "text",
"code": "text",
"discountType": "AMOUNT_OFF",
"value": 1,
"_links": {
"self": {
"href": "text"
}
}
}Last updated
Was this helpful?

