| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| GET POST | /ticketOrder/getDiscountCodeInfo |
|---|
export class DiscountCodeInfo
{
public codeId?: number;
public discountCodeType?: number;
public code?: string;
public isMultiUse?: boolean;
public maxTickets?: number;
public isSingleUse?: boolean;
public isForPhoneNumberOnly?: boolean;
public fullPhoneNumber?: string;
public isUsed?: boolean;
public codeTypeIsValid?: boolean;
public name?: string;
public isForEventId?: boolean;
public eventId?: number;
public eventOwnerId?: number;
public isForTicketType?: boolean;
public ticketTypeId?: number;
public isFixedAmount?: boolean;
public fixedAmount?: number;
public isPercent?: boolean;
public percent?: number;
public isValid?: boolean;
public validTicketTypeId?: number;
public discountCodeTypeId?: number;
public eventSeriesOwnerTicketType?: number;
public ticketTypeIsValid?: boolean;
public constructor(init?: Partial<DiscountCodeInfo>) { (Object as any).assign(this, init); }
}
export class DiscountCodeInfoResult
{
public info?: DiscountCodeInfo;
public statusCode?: number;
public success?: boolean;
public message?: string;
public constructor(init?: Partial<DiscountCodeInfoResult>) { (Object as any).assign(this, init); }
}
export class DiscountCodeInfoRequest
{
public code?: string;
public constructor(init?: Partial<DiscountCodeInfoRequest>) { (Object as any).assign(this, init); }
}
TypeScript 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
}