TicketUserServices

<back to all web services

EventTicketSalesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Sales.Total
The following routes are available for this service:
GET POST/ticketSales
GET POST/ticketSales/event/{EventId}
GET POST/ticketSales/team/{EventOwnerId}
GET POST/ticketSales/event/ksi/{KsiEventId}
GET POST/ticketSales/team/ksi/{EventOwnerKsiId}
EventTicketSalesRequest Parameters:
NameParameterData TypeRequiredDescription
EventIdpathint?No
KsiEventIdpathstringNo
EventOwnerIdpathint?No
EventOwnerKsiIdpathstringNo
EventTicketSalesResult Parameters:
NameParameterData TypeRequiredDescription
EventSalesformList<EventTicketDetails>No
StatusCodeformintNo
MessageformstringNo
EventTicketDetails Parameters:
NameParameterData TypeRequiredDescription
TicketPriceformdecimal?No
TotalPriceformdecimal?No
Countformint?No
TimestampBoughtformDateTime?No
TimestampActivatedformDateTime?No
PaymentMethodIdformstringNo
TicketStatusformstringNo
DeildformstringNo
LocationformstringNo
EventformstringNo
TimeOfEventformDateTime?No
EventSeriesOwnerTicketTypeformint?No
EventSeriesTicketTypeformint?No
EventIdformint?No
ExternalReferenceformstringNo
EventOwnerIdformint?No
EventSeriesIdformint?No
ksiCompetitionIdformstringNo
EventOwnerNameformstringNo
EventOwnerKsiIDformstringNo
TeamPassIdformint?No
TicketNameformstringNo
PaymentReferenceformstringNo
PaymentIdformstringNo
TicketTeamPassIdformint?No
TicketIdformint?No
PhoneVerificationNumberformstringNo
PaymentPhoneNumberformstringNo
HolderIdformstringNo
HolderNameformstringNo
HolderFullPhoneNumberformstringNo
SeatNameformstringNo
RowNameformstringNo
SectionNameformstringNo
SeatDisplayStringformstringNo
IsSpecialTicketformbool?No
SpecialTicketIdformstringNo
ImageUrlformstringNo
DetailedDescriptionformstringNo
TicketTokenIdformstringNo
TimeOfEventUTCformDateTime?No
EndOfEventformDateTime?No
EndOfEventUTCformDateTime?No
DeviceIdformstringNo
TicketHasExpiredformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ticketSales HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	ksiEventId: String,
	eventOwnerId: 0,
	eventOwnerKsiId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	eventSales: 
	[
		{
			ticketPrice: 0,
			totalPrice: 0,
			count: 0,
			timestampBought: 0001-01-01,
			timestampActivated: 0001-01-01,
			paymentMethodId: String,
			ticketStatus: String,
			deild: String,
			location: String,
			event: String,
			timeOfEvent: 0001-01-01,
			eventSeriesOwnerTicketType: 0,
			eventSeriesTicketType: 0,
			eventId: 0,
			externalReference: String,
			eventOwnerId: 0,
			eventSeriesId: 0,
			ksiCompetitionId: String,
			eventOwnerName: String,
			eventOwnerKsiID: String,
			teamPassId: 0,
			ticketName: String,
			paymentReference: String,
			paymentId: String,
			ticketTeamPassId: 0,
			ticketId: 0,
			phoneVerificationNumber: String,
			paymentPhoneNumber: String,
			holderId: String,
			holderName: String,
			holderFullPhoneNumber: String,
			seatName: String,
			rowName: String,
			sectionName: String,
			seatDisplayString: String,
			isSpecialTicket: False,
			specialTicketId: String,
			imageUrl: String,
			detailedDescription: String,
			ticketTokenId: String,
			timeOfEventUTC: 0001-01-01,
			endOfEvent: 0001-01-01,
			endOfEventUTC: 0001-01-01,
			deviceId: String,
			ticketHasExpired: False
		}
	],
	statusCode: 0,
	message: String
}