TicketUserServices

<back to all web services

FanSnapshotOwnerRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin
The following routes are available for this service:
POST/FanSnapshot/Owner

export class FanSegmentFigure
{
    public segment?: string;
    public fans?: number;
    public orders?: number;
    public spendIsk?: number;

    public constructor(init?: Partial<FanSegmentFigure>) { (Object as any).assign(this, init); }
}

export class FanSnapshotPoint
{
    public date?: string;
    public new?: number;
    public active?: number;
    public atRisk?: number;
    public dropoff?: number;
    public lost?: number;
    public neverBought?: number;
    public all?: number;

    public constructor(init?: Partial<FanSnapshotPoint>) { (Object as any).assign(this, init); }
}

export class FanSnapshotOwnerResult
{
    public eventOwnerId?: number;
    public clubEventOwnerId?: number;
    public definitionVersion?: number;
    public asOf?: string;
    public current?: FanSegmentFigure[];
    public extras?: FanSegmentFigure[];
    public compareDate?: string;
    public compare?: FanSegmentFigure[];
    public compareExtras?: FanSegmentFigure[];
    public series?: FanSnapshotPoint[];
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<FanSnapshotOwnerResult>) { (Object as any).assign(this, init); }
}

export class FanSnapshotOwnerRequest
{
    public eventOwnerId?: number;
    public days?: number;
    public definitionVersion?: number;

    public constructor(init?: Partial<FanSnapshotOwnerRequest>) { (Object as any).assign(this, init); }
}

TypeScript FanSnapshotOwnerRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /FanSnapshot/Owner HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventOwnerId: 0,
	days: 0,
	definitionVersion: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	eventOwnerId: 0,
	clubEventOwnerId: 0,
	definitionVersion: 0,
	asOf: String,
	current: 
	[
		{
			segment: String,
			fans: 0,
			orders: 0,
			spendIsk: 0
		}
	],
	extras: 
	[
		{
			segment: String,
			fans: 0,
			orders: 0,
			spendIsk: 0
		}
	],
	compareDate: String,
	compare: 
	[
		{
			segment: String,
			fans: 0,
			orders: 0,
			spendIsk: 0
		}
	],
	compareExtras: 
	[
		{
			segment: String,
			fans: 0,
			orders: 0,
			spendIsk: 0
		}
	],
	series: 
	[
		{
			date: String,
			new: 0,
			active: 0,
			atRisk: 0,
			dropoff: 0,
			lost: 0,
			neverBought: 0,
			all: 0
		}
	],
	statusCode: 0,
	message: String
}