| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /transferTicket/targetTicketTypes | List all ticket types available on the target event with price diff vs source |
|---|
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 TransferTargetTicketTypeOption
{
public virtual int? OwnerTicketTypeId { get; set; }
public virtual int? SeriesTicketTypeId { get; set; }
public virtual string Name { get; set; }
public virtual decimal Price { get; set; }
public virtual string Direction { get; set; }
public virtual decimal PriceDifference { get; set; }
public virtual bool NameMatchesSource { get; set; }
public virtual bool BlockTransfer { get; set; }
public virtual bool Hidden { get; set; }
public virtual int? MaxTickets { get; set; }
public virtual int? TicketsSold { get; set; }
public virtual int? TicketsLeft { get; set; }
}
public partial class TransferTargetTicketTypesRequest
{
public virtual string TicketTokenId { get; set; }
public virtual int ToEventId { get; set; }
public virtual int? SectionId { get; set; }
}
public partial class TransferTargetTicketTypesResult
{
public TransferTargetTicketTypesResult()
{
Options = new List<TransferTargetTicketTypeOption>{};
}
public virtual bool Ok { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Code { get; set; }
public virtual string Message { get; set; }
public virtual decimal SourceTicketPrice { get; set; }
public virtual string SourceTicketTypeName { get; set; }
public virtual List<TransferTargetTicketTypeOption> Options { get; set; }
}
}
C# TransferTargetTicketTypesRequest 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/targetTicketTypes HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ticketTokenId":"String","toEventId":0,"sectionId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ok":false,"statusCode":0,"code":"String","message":"String","sourceTicketPrice":0,"sourceTicketTypeName":"String","options":[{"ownerTicketTypeId":0,"seriesTicketTypeId":0,"name":"String","price":0,"direction":"String","priceDifference":0,"nameMatchesSource":false,"blockTransfer":false,"hidden":false,"maxTickets":0,"ticketsSold":0,"ticketsLeft":0}]}