TicketUserServices

<back to all web services

SelfServiceAvailableSeatsRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/availableSeatsSeats a buyer may pick for a seated exchange, grouped by section and row
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;

namespace TicketUserServices.ServiceModel
{
    public partial class SelfServiceAvailableSeatsRequest
    {
        public virtual string TicketTokenId { get; set; }
        public virtual string BuyerPhone { get; set; }
        public virtual int ToEventId { get; set; }
        public virtual int? ToOwnerTicketTypeId { get; set; }
        public virtual int? ToSeriesTicketTypeId { get; set; }
    }

    public partial class SelfServiceAvailableSeatsResult
        : SelfServiceTransferResultBase
    {
        public SelfServiceAvailableSeatsResult()
        {
            Sections = new List<SelfServiceSeatSection>{};
        }

        public virtual int ToEventId { get; set; }
        public virtual string ToTicketTypeName { get; set; }
        public virtual int? AssignedSeatId { get; set; }
        public virtual string AssignedSeatLabel { get; set; }
        public virtual List<SelfServiceSeatSection> Sections { get; set; }
        public virtual int TotalSeats { get; set; }
        public virtual int SelectableSeats { get; set; }
        public virtual bool Truncated { get; set; }
    }

    public partial class SelfServiceSeatOption
    {
        public virtual int SeatId { get; set; }
        public virtual string SeatName { get; set; }
        public virtual string Label { get; set; }
        public virtual string Status { get; set; }
        public virtual bool IsSeat { get; set; }
        public virtual bool Selectable { get; set; }
        public virtual decimal? PositionX { get; set; }
        public virtual decimal? PositionY { get; set; }
        public virtual decimal? Rotation { get; set; }
        public virtual decimal? SortOrder { get; set; }
        public virtual int? RowId { get; set; }
        public virtual string RowName { get; set; }
    }

    public partial class SelfServiceSeatSection
    {
        public SelfServiceSeatSection()
        {
            Seats = new List<SelfServiceSeatOption>{};
        }

        public virtual int? SectionId { get; set; }
        public virtual string SectionName { get; set; }
        public virtual decimal? PositionX { get; set; }
        public virtual decimal? PositionY { get; set; }
        public virtual decimal? Rotation { get; set; }
        public virtual string ViewType { get; set; }
        public virtual List<SelfServiceSeatOption> Seats { get; set; }
    }

    public partial class SelfServiceTransferResultBase
    {
        public virtual bool Ok { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Code { get; set; }
        public virtual string Message { get; set; }
    }

}

C# SelfServiceAvailableSeatsRequest 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 /selfService/transferTicket/availableSeats HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ticketTokenId: String,
	buyerPhone: String,
	toEventId: 0,
	toOwnerTicketTypeId: 0,
	toSeriesTicketTypeId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	toEventId: 0,
	toTicketTypeName: String,
	assignedSeatId: 0,
	assignedSeatLabel: String,
	sections: 
	[
		{
			sectionId: 0,
			sectionName: String,
			positionX: 0,
			positionY: 0,
			rotation: 0,
			viewType: String,
			seats: 
			[
				{
					seatId: 0,
					seatName: String,
					label: String,
					status: String,
					isSeat: False,
					selectable: False,
					positionX: 0,
					positionY: 0,
					rotation: 0,
					sortOrder: 0,
					rowId: 0,
					rowName: String
				}
			]
		}
	],
	totalSeats: 0,
	selectableSeats: 0,
	truncated: False,
	ok: False,
	statusCode: 0,
	code: String,
	message: String
}