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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<DiscountCodeInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Code>String</Code>
</DiscountCodeInfoRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DiscountCodeInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Info>
    <Code>String</Code>
    <CodeId>0</CodeId>
    <CodeTypeIsValid>false</CodeTypeIsValid>
    <DiscountCodeType>0</DiscountCodeType>
    <DiscountCodeTypeId>0</DiscountCodeTypeId>
    <EventId>0</EventId>
    <EventOwnerId>0</EventOwnerId>
    <EventSeriesOwnerTicketType>0</EventSeriesOwnerTicketType>
    <FixedAmount>0</FixedAmount>
    <FullPhoneNumber>String</FullPhoneNumber>
    <IsFixedAmount>false</IsFixedAmount>
    <IsForEventId>false</IsForEventId>
    <IsForPhoneNumberOnly>false</IsForPhoneNumberOnly>
    <IsForTicketType>false</IsForTicketType>
    <IsMultiUse>false</IsMultiUse>
    <IsPercent>false</IsPercent>
    <IsSingleUse>false</IsSingleUse>
    <IsUsed>false</IsUsed>
    <IsValid>false</IsValid>
    <MaxTickets>0</MaxTickets>
    <Name>String</Name>
    <Percent>0</Percent>
    <TicketTypeId>0</TicketTypeId>
    <TicketTypeIsValid>false</TicketTypeIsValid>
    <ValidTicketTypeId>0</ValidTicketTypeId>
  </Info>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
  <Success>false</Success>
</DiscountCodeInfoResult>