TicketUserServices

<back to all web services

SharedTicketLinkSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/SharedTicketLink/Search
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 SharedTicketLinkSearchRequest
    {
        public virtual int? EventOwnerId { get; set; }
        public virtual int? EventId { get; set; }
        public virtual string Status { get; set; }
    }

    public partial class SharedTicketLinkSearchResult
    {
        public SharedTicketLinkSearchResult()
        {
            Items = new List<SharedTicketLinkSummary>{};
        }

        public virtual List<SharedTicketLinkSummary> Items { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

    public partial class SharedTicketLinkSeatInfo
    {
        public virtual int SeatId { get; set; }
        public virtual string SectionName { get; set; }
        public virtual string RowName { get; set; }
        public virtual string SeatName { get; set; }
    }

    public partial class SharedTicketLinkSummary
    {
        public SharedTicketLinkSummary()
        {
            Seats = new List<SharedTicketLinkSeatInfo>{};
        }

        public virtual int ID { get; set; }
        public virtual string Token { get; set; }
        public virtual string Url { get; set; }
        public virtual int EventId { get; set; }
        public virtual int EventOwnerId { get; set; }
        public virtual int TicketOwnerTypeId { get; set; }
        public virtual int Count { get; set; }
        public virtual int? SectionId { get; set; }
        public virtual string Status { get; set; }
        public virtual DateTime ValidTo { get; set; }
        public virtual DateTime CreatedAt { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual string RecipientEmail { get; set; }
        public virtual string RecipientPhone { get; set; }
        public virtual int? SoldTicketOrderId { get; set; }
        public virtual DateTime? SoldAt { get; set; }
        public virtual List<SharedTicketLinkSeatInfo> Seats { get; set; }
    }

}

C# SharedTicketLinkSearchRequest 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 /SharedTicketLink/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventOwnerId: 0,
	eventId: 0,
	status: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			token: String,
			url: String,
			eventId: 0,
			eventOwnerId: 0,
			ticketOwnerTypeId: 0,
			count: 0,
			sectionId: 0,
			status: String,
			validTo: 0001-01-01,
			createdAt: 0001-01-01,
			createdBy: String,
			recipientEmail: String,
			recipientPhone: String,
			soldTicketOrderId: 0,
			soldAt: 0001-01-01,
			seats: 
			[
				{
					seatId: 0,
					sectionName: String,
					rowName: String,
					seatName: String
				}
			]
		}
	],
	statusCode: 0,
	message: String
}