| 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 .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"code":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}