| Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Required permissions: | Tickets.Add, Tickets.Add |
| GET PUT POST | /ownerEventTicketPrice | Change Tickets prices for Event | Id only when changing (PUT). isOwnerTicket is false if the Ticket is default ticket for series |
|---|
export class EventTicketPrice
{
public id?: number;
public name?: string;
public price?: number;
public ticketTypeId?: number;
public ticketOwnerTypeId?: number;
public eventId?: number;
public hidden?: boolean;
public isActive?: boolean;
public maxTickets?: number;
public currency?: string;
public constructor(init?: Partial<EventTicketPrice>) { (Object as any).assign(this, init); }
}
export class OwnerEventTicketPriceResult
{
public ticketPrice?: EventTicketPrice;
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<OwnerEventTicketPriceResult>) { (Object as any).assign(this, init); }
}
export class OwnerEventTicketPriceRequest
{
public id?: number;
public isOwnerTicket?: boolean;
public eventId?: number;
public ticketId?: number;
public eventOwnerId?: number;
public seriesId?: number;
public price?: number;
public hide?: boolean;
public active?: boolean;
public maxTickets?: number;
public constructor(init?: Partial<OwnerEventTicketPriceRequest>) { (Object as any).assign(this, init); }
}
TypeScript OwnerEventTicketPriceRequest 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 /ownerEventTicketPrice HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
isOwnerTicket: False,
eventId: 0,
ticketId: 0,
eventOwnerId: 0,
seriesId: 0,
price: 0,
hide: False,
active: False,
maxTickets: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ticketPrice:
{
id: 0,
name: String,
price: 0,
ticketTypeId: 0,
ticketOwnerTypeId: 0,
eventId: 0,
hidden: False,
isActive: False,
maxTickets: 0,
currency: String
},
statusCode: 0,
message: String
}