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
namespace TicketUserServices.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type SelfServiceTransferResultBase() = 
        member val Ok:Boolean = new Boolean() with get,set
        member val StatusCode:Int32 = new Int32() with get,set
        member val Code:String = null with get,set
        member val Message:String = null with get,set

    [<AllowNullLiteral>]
    type SelfServiceSeatOption() = 
        member val SeatId:Int32 = new Int32() with get,set
        member val SeatName:String = null with get,set
        member val Label:String = null with get,set
        member val Status:String = null with get,set
        member val IsSeat:Boolean = new Boolean() with get,set
        member val Selectable:Boolean = new Boolean() with get,set
        member val PositionX:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val PositionY:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val Rotation:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val SortOrder:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val RowId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val RowName:String = null with get,set

    [<AllowNullLiteral>]
    type SelfServiceSeatSection() = 
        member val SectionId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val SectionName:String = null with get,set
        member val PositionX:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val PositionY:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val Rotation:Nullable<Decimal> = new Nullable<Decimal>() with get,set
        member val ViewType:String = null with get,set
        member val Seats:ResizeArray<SelfServiceSeatOption> = new ResizeArray<SelfServiceSeatOption>() with get,set

    [<AllowNullLiteral>]
    type SelfServiceAvailableSeatsResult() = 
        inherit SelfServiceTransferResultBase()
        member val ToEventId:Int32 = new Int32() with get,set
        member val ToTicketTypeName:String = null with get,set
        member val AssignedSeatId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val AssignedSeatLabel:String = null with get,set
        member val Sections:ResizeArray<SelfServiceSeatSection> = new ResizeArray<SelfServiceSeatSection>() with get,set
        member val TotalSeats:Int32 = new Int32() with get,set
        member val SelectableSeats:Int32 = new Int32() with get,set
        member val Truncated:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type SelfServiceAvailableSeatsRequest() = 
        member val TicketTokenId:String = null with get,set
        member val BuyerPhone:String = null with get,set
        member val ToEventId:Int32 = new Int32() with get,set
        member val ToOwnerTicketTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val ToSeriesTicketTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set

F# SelfServiceAvailableSeatsRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"ticketTokenId":"String","buyerPhone":"String","toEventId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0}
HTTP/1.1 200 OK
Content-Type: application/json
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"}