| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /transferTicket/quote | Read-only price-diff lookup for a prospective ticket transfer |
|---|
export class TransferQuoteEventSide
{
public eventId?: number;
public eventName?: string;
public timeOfEvent?: string;
public ticketPrice?: number;
public paymentMethodId?: string;
public paymentReference?: string;
public availableSeats?: number;
public constructor(init?: Partial<TransferQuoteEventSide>) { (Object as any).assign(this, init); }
}
export class TransferTicketQuoteResult
{
public ok?: boolean;
public statusCode?: number;
public code?: string;
public message?: string;
public from?: TransferQuoteEventSide;
public to?: TransferQuoteEventSide;
public priceDifference?: number;
public direction?: string;
public refundableViaBorgun?: boolean;
public afterPayout?: boolean;
public constructor(init?: Partial<TransferTicketQuoteResult>) { (Object as any).assign(this, init); }
}
export class TransferTicketQuoteRequest
{
public ticketTokenId?: string;
public toEventId?: number;
public userId?: number;
public toOwnerTicketTypeId?: number;
public toSeriesTicketTypeId?: number;
public constructor(init?: Partial<TransferTicketQuoteRequest>) { (Object as any).assign(this, init); }
}
TypeScript TransferTicketQuoteRequest 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 /transferTicket/quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ticketTokenId":"String","toEventId":0,"userId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ok":false,"statusCode":0,"code":"String","message":"String","from":{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","ticketPrice":0,"paymentMethodId":"String","paymentReference":"String","availableSeats":0},"to":{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","ticketPrice":0,"paymentMethodId":"String","paymentReference":"String","availableSeats":0},"priceDifference":0,"direction":"String","refundableViaBorgun":false,"afterPayout":false}