POST api/Tickets/Post

Request Information

URI Parameters

None.

Body Parameters

Collection of Tickets
NameDescriptionTypeAdditional information
EventID

integer

None.

productID

string

None.

TicketID

string

None.

EventTitle

string

None.

EventsLocation

string

None.

WooCommerceEventsStatus

string

None.

WooCommerceStartEventsDate

string

None.

WooCommerceEndEventsDate

string

None.

WooCommerceEventsDateTimestamp

string

None.

WooCommerceEventsTicketID

string

None.

WooCommerceEventsTicketHash

string

None.

barcodeimgurl

string

None.

WooCommerceEventsTicketType

string

None.

WooCommerceEventsAttendeeName

string

None.

WooCommerceEventsWelcomedrink

string

None.

WooCommerceEventsAttendeeEmail

string

None.

WooCommerceEventsPurchaserEmail

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "EventID": 1,
    "productID": "sample string 2",
    "TicketID": "sample string 3",
    "EventTitle": "sample string 4",
    "EventsLocation": "sample string 5",
    "WooCommerceEventsStatus": "sample string 6",
    "WooCommerceStartEventsDate": "sample string 7",
    "WooCommerceEndEventsDate": "sample string 8",
    "WooCommerceEventsDateTimestamp": "sample string 9",
    "WooCommerceEventsTicketID": "sample string 10",
    "WooCommerceEventsTicketHash": "sample string 11",
    "barcodeimgurl": "sample string 12",
    "WooCommerceEventsTicketType": "sample string 13",
    "WooCommerceEventsAttendeeName": "sample string 14",
    "WooCommerceEventsWelcomedrink": "sample string 15",
    "WooCommerceEventsAttendeeEmail": "sample string 16",
    "WooCommerceEventsPurchaserEmail": "sample string 17"
  },
  {
    "EventID": 1,
    "productID": "sample string 2",
    "TicketID": "sample string 3",
    "EventTitle": "sample string 4",
    "EventsLocation": "sample string 5",
    "WooCommerceEventsStatus": "sample string 6",
    "WooCommerceStartEventsDate": "sample string 7",
    "WooCommerceEndEventsDate": "sample string 8",
    "WooCommerceEventsDateTimestamp": "sample string 9",
    "WooCommerceEventsTicketID": "sample string 10",
    "WooCommerceEventsTicketHash": "sample string 11",
    "barcodeimgurl": "sample string 12",
    "WooCommerceEventsTicketType": "sample string 13",
    "WooCommerceEventsAttendeeName": "sample string 14",
    "WooCommerceEventsWelcomedrink": "sample string 15",
    "WooCommerceEventsAttendeeEmail": "sample string 16",
    "WooCommerceEventsPurchaserEmail": "sample string 17"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTickets xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BSGEWeb.Models">
  <Tickets>
    <EventID>1</EventID>
    <EventTitle>sample string 4</EventTitle>
    <EventsLocation>sample string 5</EventsLocation>
    <TicketID>sample string 3</TicketID>
    <WooCommerceEndEventsDate>sample string 8</WooCommerceEndEventsDate>
    <WooCommerceEventsAttendeeEmail>sample string 16</WooCommerceEventsAttendeeEmail>
    <WooCommerceEventsAttendeeName>sample string 14</WooCommerceEventsAttendeeName>
    <WooCommerceEventsDateTimestamp>sample string 9</WooCommerceEventsDateTimestamp>
    <WooCommerceEventsPurchaserEmail>sample string 17</WooCommerceEventsPurchaserEmail>
    <WooCommerceEventsStatus>sample string 6</WooCommerceEventsStatus>
    <WooCommerceEventsTicketHash>sample string 11</WooCommerceEventsTicketHash>
    <WooCommerceEventsTicketID>sample string 10</WooCommerceEventsTicketID>
    <WooCommerceEventsTicketType>sample string 13</WooCommerceEventsTicketType>
    <WooCommerceEventsWelcomedrink>sample string 15</WooCommerceEventsWelcomedrink>
    <WooCommerceStartEventsDate>sample string 7</WooCommerceStartEventsDate>
    <barcodeimgurl>sample string 12</barcodeimgurl>
    <productID>sample string 2</productID>
  </Tickets>
  <Tickets>
    <EventID>1</EventID>
    <EventTitle>sample string 4</EventTitle>
    <EventsLocation>sample string 5</EventsLocation>
    <TicketID>sample string 3</TicketID>
    <WooCommerceEndEventsDate>sample string 8</WooCommerceEndEventsDate>
    <WooCommerceEventsAttendeeEmail>sample string 16</WooCommerceEventsAttendeeEmail>
    <WooCommerceEventsAttendeeName>sample string 14</WooCommerceEventsAttendeeName>
    <WooCommerceEventsDateTimestamp>sample string 9</WooCommerceEventsDateTimestamp>
    <WooCommerceEventsPurchaserEmail>sample string 17</WooCommerceEventsPurchaserEmail>
    <WooCommerceEventsStatus>sample string 6</WooCommerceEventsStatus>
    <WooCommerceEventsTicketHash>sample string 11</WooCommerceEventsTicketHash>
    <WooCommerceEventsTicketID>sample string 10</WooCommerceEventsTicketID>
    <WooCommerceEventsTicketType>sample string 13</WooCommerceEventsTicketType>
    <WooCommerceEventsWelcomedrink>sample string 15</WooCommerceEventsWelcomedrink>
    <WooCommerceStartEventsDate>sample string 7</WooCommerceStartEventsDate>
    <barcodeimgurl>sample string 12</barcodeimgurl>
    <productID>sample string 2</productID>
  </Tickets>
</ArrayOfTickets>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.