Coupons
By issuing coupons you can allow ticket buyers to receive a discount on their transaction by applying a randomly generated or custom-defined code to their cart.
Endpoints
The Coupon Object
Attributes
couponSeries
The ID of the coupon series.
Optional Attributes
Collapse all{"couponType": "couponSeries","couponSeriesId": "string","_id": "string","code": "string","sellerId": "string","customer": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z","__v": 1}
Create a Coupon
Payload
couponSeries
The ID of the coupon series.
Optional Attributes
Collapse all{"couponType": "couponSeries","couponSeriesId": "string","code": "string","sellerId": "string","customer": "string"}
{"couponType": "couponSeries","couponSeriesId": "string","_id": "string","code": "string","sellerId": "string","customer": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z","__v": 1}
Get a Coupon
Query
{"couponType": "couponSeries","couponSeriesId": "string","_id": "string","code": "string","sellerId": "string","customer": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z","__v": 1}
Update a Coupon
Payload
couponSeries
The ID of the coupon series.
Optional Attributes
Collapse all{"couponType": "couponSeries","couponSeriesId": "string","_id": "string","code": "string","sellerId": "string","customer": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z","__v": 1}
{"couponType": "couponSeries","couponSeriesId": "string","_id": "string","code": "string","sellerId": "string","customer": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z","__v": 1}
Get all Coupons
Query
A limit on the number of objects to be returned. Can range between 1 and 1000.
The number of objects to skip for the requested result
Filter coupons by name
Filter coupons by code
Filter coupons by eventId
Filter coupons by couponSeriesId
Filter coupons by active
{"rows": [{"couponType": "couponSeries","couponSeriesId": "string","_id": "string","code": "string","sellerId": "string","customer": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z","__v": 1}],"total": 1}
Get Coupon or Voucher by code
This endpoint provides information on both coupons and vouchers. To receive a coupon, you need to pass an eventId
, even if the coupon
can be used across all events. If there is a coupon and a voucher with the same code, and you pass an eventId
, the coupon will be preferred.
Without passing an eventId
, only vouchers will be considered.
Query
The ID of the seller
The ID of the event to check the coupon/voucher against.
{"message": "notYetValid","coupon": {"code": "string","couponId": "string","name": "string","canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllTickets": true,"allowedTickets": ["string"],"allowAllEvents": true,"limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"maxTickets": 10.5,"revealAllowedTickets": true},"voucher": {"_id": "string","code": "string","balance": 10.5},"type": "voucher"}
The Coupon Series Object
The Coupon Series feature allows for the generation of multiple coupon codes with a single configuration. This is beneficial for creating promotions where each coupon code shares identical settings or restrictions, all managed with a single coupon series.
Attributes
The Name for the coupon. Visible to public.
The ID of the coupon series.
The ID of the seller.
Optional Attributes
Collapse all{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"_id": "string","sellerId": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Create coupon series
Payload
The Name for the coupon. Visible to public.
The ID of the seller.
Optional Attributes
Collapse all{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"sellerId": "string"}
{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"_id": "string","sellerId": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Get all coupon series
Query
A limit on the number of objects to be returned. Can range between 1 and 1000.
The number of objects to skip for the requested result
Filter coupon series by name
[{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"_id": "string","sellerId": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}]
Get a coupon series
Query
{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"_id": "string","sellerId": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
Update coupon series
Payload
The Name for the coupon. Visible to public.
The ID of the coupon series.
The ID of the seller.
Optional Attributes
Collapse all{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"_id": "string","sellerId": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}
{"name": "string","singleUsage": true,"active": true,"maxUsage": 1,"maxUsagePerEvent": 10.5,"maxTickets": 10.5,"canBeCombined": true,"discountType": "fix","discountValue": 10.5,"discountMaxValue": 10.5,"allowAllEvents": true,"allowedEvents": ["string"],"allowAllTickets": true,"allowedTickets": ["string"],"taggingEnabled": true,"tags": ["string"],"validFrom": "2030-01-23T23:00:00.123Z","validUntil": "2030-01-23T23:00:00.123Z","limitMaxTicketsInCart": true,"maxTicketsInCart": 10.5,"note": "string","revealAllowedTickets": true,"unlocks": [{"target": "underShop","eventId": "string","underShopId": "string"}],"_id": "string","sellerId": "string","createdAt": "2030-01-23T23:00:00.123Z","updatedAt": "2030-01-23T23:00:00.123Z"}