| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| 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 .jsv suffix or ?format=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
}