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
import Foundation
import ServiceStack

public class DiscountCodeInfoRequest : Codable
{
    public var code:String?

    required public init(){}
}

public class DiscountCodeInfoResult : Codable
{
    public var info:DiscountCodeInfo?
    public var statusCode:Int?
    public var success:Bool?
    public var message:String?

    required public init(){}
}

public class DiscountCodeInfo : Codable
{
    public var codeId:Int?
    public var discountCodeType:Int?
    public var code:String?
    public var isMultiUse:Bool?
    public var maxTickets:Int?
    public var isSingleUse:Bool?
    public var isForPhoneNumberOnly:Bool?
    public var fullPhoneNumber:String?
    public var isUsed:Bool?
    public var codeTypeIsValid:Bool?
    public var name:String?
    public var isForEventId:Bool?
    public var eventId:Int?
    public var eventOwnerId:Int?
    public var isForTicketType:Bool?
    public var ticketTypeId:Int?
    public var isFixedAmount:Bool?
    public var fixedAmount:Double?
    public var isPercent:Bool?
    public var percent:Double?
    public var isValid:Bool?
    public var validTicketTypeId:Int?
    public var discountCodeTypeId:Int?
    public var eventSeriesOwnerTicketType:Int?
    public var ticketTypeIsValid:Bool?

    required public init(){}
}


Swift DiscountCodeInfoRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

{"code":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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"}