| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /EventSeatingFindAndReserve | Find best available seats and reserve them atomically |
|---|
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 EventSeatingFindAndReserveRequest
{
public virtual int EventId { get; set; }
public virtual int Quantity { get; set; }
public virtual int? SectionId { get; set; }
public virtual string ReservationTokenId { get; set; }
public virtual string PhoneVerificationNumber { get; set; }
public virtual int SkipIndex { get; set; }
public virtual string DeviceId { get; set; }
public virtual long RequestUnixUTCTimeStamp { get; set; }
public virtual RequestSignature Signature { get; set; }
}
public partial class EventSeatingFindAndReserveResult
{
public EventSeatingFindAndReserveResult()
{
Seats = new List<FoundSeat>{};
}
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
public virtual string ReservationTokenId { get; set; }
public virtual int TotalCandidates { get; set; }
public virtual List<FoundSeat> Seats { get; set; }
}
public partial class FoundSeat
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual string RowName { get; set; }
public virtual string SectionName { get; set; }
public virtual int SectionId { get; set; }
}
public partial class RequestSignature
{
public virtual string SystemId { get; set; }
public virtual string SystemSecret { get; set; }
public virtual string Signature { get; set; }
}
}
C# EventSeatingFindAndReserveRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventSeatingFindAndReserve HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"eventId":0,"quantity":0,"sectionId":0,"reservationTokenId":"String","phoneVerificationNumber":"String","skipIndex":0,"deviceId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":0,"message":"String","reservationTokenId":"String","totalCandidates":0,"seats":[{"id":0,"name":"String","rowName":"String","sectionName":"String","sectionId":0}]}