TicketUserServices

<back to all web services

DiscountCodeInfoRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ticketOrder/getDiscountCodeInfo
DiscountCodeInfoRequest Parameters:
NameParameterData TypeRequiredDescription
CodebodystringNo
DiscountCodeInfoResult Parameters:
NameParameterData TypeRequiredDescription
InfoformDiscountCodeInfoNo
StatusCodeformintNo
SuccessformboolNo
MessageformstringNo
DiscountCodeInfo Parameters:
NameParameterData TypeRequiredDescription
CodeIdformintNo
DiscountCodeTypeformintNo
CodeformstringNo
IsMultiUseformbool?No
MaxTicketsformint?No
IsSingleUseformbool?No
IsForPhoneNumberOnlyformbool?No
FullPhoneNumberformstringNo
IsUsedformbool?No
CodeTypeIsValidformbool?No
NameformstringNo
IsForEventIdformbool?No
EventIdformint?No
EventOwnerIdformint?No
IsForTicketTypeformbool?No
TicketTypeIdformint?No
IsFixedAmountformbool?No
FixedAmountformdecimal?No
IsPercentformbool?No
Percentformdecimal?No
IsValidformbool?No
ValidTicketTypeIdformintNo
DiscountCodeTypeIdformintNo
EventSeriesOwnerTicketTypeformintNo
TicketTypeIsValidformbool?No

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 /ticketOrder/getDiscountCodeInfo HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	code: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	info: 
	{
		codeId: 0,
		discountCodeType: 0,
		code: String,
		isMultiUse: False,
		maxTickets: 0,
		isSingleUse: False,
		isForPhoneNumberOnly: False,
		fullPhoneNumber: String,
		isUsed: False,
		codeTypeIsValid: False,
		name: String,
		isForEventId: False,
		eventId: 0,
		eventOwnerId: 0,
		isForTicketType: False,
		ticketTypeId: 0,
		isFixedAmount: False,
		fixedAmount: 0,
		isPercent: False,
		percent: 0,
		isValid: False,
		validTicketTypeId: 0,
		discountCodeTypeId: 0,
		eventSeriesOwnerTicketType: 0,
		ticketTypeIsValid: False
	},
	statusCode: 0,
	success: False,
	message: String
}