| Requires any of the roles: | Admin, TeamAdmin |
| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<FanSnapshotOwnerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Days>0</Days>
<DefinitionVersion>0</DefinitionVersion>
<EventOwnerId>0</EventOwnerId>
</FanSnapshotOwnerRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<FanSnapshotOwnerResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<AsOf>String</AsOf>
<ClubEventOwnerId>0</ClubEventOwnerId>
<Compare>
<FanSegmentFigure>
<Fans>0</Fans>
<Orders>0</Orders>
<Segment>String</Segment>
<SpendIsk>0</SpendIsk>
</FanSegmentFigure>
</Compare>
<CompareDate>String</CompareDate>
<CompareExtras>
<FanSegmentFigure>
<Fans>0</Fans>
<Orders>0</Orders>
<Segment>String</Segment>
<SpendIsk>0</SpendIsk>
</FanSegmentFigure>
</CompareExtras>
<Current>
<FanSegmentFigure>
<Fans>0</Fans>
<Orders>0</Orders>
<Segment>String</Segment>
<SpendIsk>0</SpendIsk>
</FanSegmentFigure>
</Current>
<DefinitionVersion>0</DefinitionVersion>
<EventOwnerId>0</EventOwnerId>
<Extras>
<FanSegmentFigure>
<Fans>0</Fans>
<Orders>0</Orders>
<Segment>String</Segment>
<SpendIsk>0</SpendIsk>
</FanSegmentFigure>
</Extras>
<Message>String</Message>
<Series>
<FanSnapshotPoint>
<Active>0</Active>
<All>0</All>
<AtRisk>0</AtRisk>
<Date>String</Date>
<Dropoff>0</Dropoff>
<Lost>0</Lost>
<NeverBought>0</NeverBought>
<New>0</New>
</FanSnapshotPoint>
</Series>
<StatusCode>0</StatusCode>
</FanSnapshotOwnerResult>