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

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 .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"}