Dynamic Pricing API
The Dynamic Pricing API allows to create Prices overriding the default price of a ticket type. A common use case is an external revenue optimization engine which needs to override the price for a given ticket type in a given event.
Creating a Price won't edit the ticket type price on the Event Object directly but will affect the calculation within the Event Info Object.
Prices can be created for all Events except ROOT
event types. If you want to dynamically price a Recurring Event you can create prices against the RECURRENCE
event directly.
Endpoints
Create a price
Payload
eventId
Required
string
price
Required
number double
ticketTypeId
Required
string
Optional Attributes
Collapse allseatingGroupId
Optional
string
Responses
201
Price created
post
/api/pricing/prices
{"eventId": "string","price": 1,"seatingGroupId": "string","ticketTypeId": "string"}
Response
application/json
{"_id": "string","createdAt": "2030-01-23T23:00:00.123Z","eventId": "string","price": 1,"seatingGroupId": "string","sellerId": "string","ticketTypeId": "string","updatedAt": "2030-01-23T23:00:00.123Z"}
Get Prices
Query
ticketTypeId
Optional
string
top
Optional
integer int64
eventId
Optional
string
skip
Optional
integer int64
Responses
200
Prices
get
/api/pricing/prices
Response
application/json
{"docs": [{"_id": "string","createdAt": "2030-01-23T23:00:00.123Z","eventId": "string","price": 1,"seatingGroupId": "string","sellerId": "string","ticketTypeId": "string","updatedAt": "2030-01-23T23:00:00.123Z"}],"total": 1}
get
/api/pricing/prices/overrides
Response
application/json
{"_id": "string","createdAt": "2030-01-23T23:00:00.123Z","eventId": "string","price": 1,"seatingGroupId": "string","sellerId": "string","ticketTypeId": "string","updatedAt": "2030-01-23T23:00:00.123Z"}