TicketUserServices

<back to all web services

TicketsForSaleAtEventAddRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
All Verbs/TicketsForSaleAtEvent/Add
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class TicketsForSaleAtEventAddRequest
    {
        public TicketsForSaleAtEvent ticket = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public TicketsForSaleAtEvent getTicket() { return ticket; }
        public TicketsForSaleAtEventAddRequest setTicket(TicketsForSaleAtEvent value) { this.ticket = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public TicketsForSaleAtEventAddRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public TicketsForSaleAtEventAddRequest setSignature(RequestSignature value) { this.signature = value; return this; }
    }

    public static class TicketsForSaleAtEvent
    {
        public Integer id = null;
        public Integer eventId = null;
        public Integer ticketType = null;
        public Integer maxTickets = null;
        public Integer displayOrderValue = null;
        
        public Integer getId() { return id; }
        public TicketsForSaleAtEvent setId(Integer value) { this.id = value; return this; }
        public Integer getEventId() { return eventId; }
        public TicketsForSaleAtEvent setEventId(Integer value) { this.eventId = value; return this; }
        public Integer getTicketType() { return ticketType; }
        public TicketsForSaleAtEvent setTicketType(Integer value) { this.ticketType = value; return this; }
        public Integer getMaxTickets() { return maxTickets; }
        public TicketsForSaleAtEvent setMaxTickets(Integer value) { this.maxTickets = value; return this; }
        public Integer getDisplayOrderValue() { return displayOrderValue; }
        public TicketsForSaleAtEvent setDisplayOrderValue(Integer value) { this.displayOrderValue = value; return this; }
    }

    public static class RequestSignature
    {
        public String systemId = null;
        public String systemSecret = null;
        public String signature = null;
        
        public String getSystemId() { return systemId; }
        public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
        public String getSystemSecret() { return systemSecret; }
        public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
        public String getSignature() { return signature; }
        public RequestSignature setSignature(String value) { this.signature = value; return this; }
    }

    public static class TicketsForSaleAtEventSingleResult
    {
        public TicketsForSaleAtEvent ticket = null;
        public Integer statusCode = null;
        public String message = null;
        
        public TicketsForSaleAtEvent getTicket() { return ticket; }
        public TicketsForSaleAtEventSingleResult setTicket(TicketsForSaleAtEvent value) { this.ticket = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public TicketsForSaleAtEventSingleResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public TicketsForSaleAtEventSingleResult setMessage(String value) { this.message = value; return this; }
    }

}

Java TicketsForSaleAtEventAddRequest 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 /TicketsForSaleAtEvent/Add HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ticket":{"id":0,"eventId":0,"ticketType":0,"maxTickets":0,"displayOrderValue":0},"requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ticket":{"id":0,"eventId":0,"ticketType":0,"maxTickets":0,"displayOrderValue":0},"statusCode":0,"message":"String"}