POST api/webfi/ticket/post

Request Information

URI Parameters

None.

Body Parameters

TicketPostRequest
NameDescriptionTypeAdditional information
TicketId

integer

None.

EventId

integer

None.

SponsorId

integer

None.

TicketName

string

None.

TicketDescription

string

None.

TicketPrice

decimal number

None.

QuantityAvailable

integer

None.

MaxPurchaseQuantity

integer

None.

StartSellDate

date

None.

EndSellDate

date

None.

FreeTicket

boolean

None.

EventVenueId

integer

None.

FeesPaidByPurchaser

boolean

None.

FeesOption

integer

None.

InstanceId

integer

None.

packageModel

string

None.

packageSelect

boolean

None.

ticketPromotion

integer

None.

Attractions

string

None.

Request Formats

[application/json, { "TicketId": 1, "EventId": 2, "SponsorId": 3, "TicketName": "sample string 4", "TicketDescription": "sample string 5", "TicketPrice": 1.0, "QuantityAvailable": 6, "MaxPurchaseQuantity": 1, "StartSellDate": "2024-05-19T01:35:14.6569477+00:00", "EndSellDate": "2024-05-19T01:35:14.6569477+00:00", "FreeTicket": true, "EventVenueId": 8, "FeesPaidByPurchaser": true, "FeesOption": 10, "InstanceId": 1, "packageModel": "sample string 11", "packageSelect": true, "ticketPromotion": 13, "Attractions": "sample string 14" }][text/json, { "TicketId": 1, "EventId": 2, "SponsorId": 3, "TicketName": "sample string 4", "TicketDescription": "sample string 5", "TicketPrice": 1.0, "QuantityAvailable": 6, "MaxPurchaseQuantity": 1, "StartSellDate": "2024-05-19T01:35:14.6569477+00:00", "EndSellDate": "2024-05-19T01:35:14.6569477+00:00", "FreeTicket": true, "EventVenueId": 8, "FeesPaidByPurchaser": true, "FeesOption": 10, "InstanceId": 1, "packageModel": "sample string 11", "packageSelect": true, "ticketPromotion": 13, "Attractions": "sample string 14" }][application/xml, <TicketPostRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rebelity.Tickets.Model"> <Attractions>sample string 14</Attractions> <EndSellDate>2024-05-19T01:35:14.6569477+00:00</EndSellDate> <EventId>2</EventId> <EventVenueId>8</EventVenueId> <FeesOption>10</FeesOption> <FeesPaidByPurchaser>true</FeesPaidByPurchaser> <FreeTicket>true</FreeTicket> <InstanceId>1</InstanceId> <MaxPurchaseQuantity>1</MaxPurchaseQuantity> <QuantityAvailable>6</QuantityAvailable> <SponsorId>3</SponsorId> <StartSellDate>2024-05-19T01:35:14.6569477+00:00</StartSellDate> <TicketDescription>sample string 5</TicketDescription> <TicketId>1</TicketId> <TicketName>sample string 4</TicketName> <TicketPrice>1</TicketPrice> <packageModel>sample string 11</packageModel> <packageSelect>true</packageSelect> <ticketPromotion>13</ticketPromotion> </TicketPostRequest>][text/xml, <TicketPostRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rebelity.Tickets.Model"> <Attractions>sample string 14</Attractions> <EndSellDate>2024-05-19T01:35:14.6569477+00:00</EndSellDate> <EventId>2</EventId> <EventVenueId>8</EventVenueId> <FeesOption>10</FeesOption> <FeesPaidByPurchaser>true</FeesPaidByPurchaser> <FreeTicket>true</FreeTicket> <InstanceId>1</InstanceId> <MaxPurchaseQuantity>1</MaxPurchaseQuantity> <QuantityAvailable>6</QuantityAvailable> <SponsorId>3</SponsorId> <StartSellDate>2024-05-19T01:35:14.6569477+00:00</StartSellDate> <TicketDescription>sample string 5</TicketDescription> <TicketId>1</TicketId> <TicketName>sample string 4</TicketName> <TicketPrice>1</TicketPrice> <packageModel>sample string 11</packageModel> <packageSelect>true</packageSelect> <ticketPromotion>13</ticketPromotion> </TicketPostRequest>][application/x-www-form-urlencoded, Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TicketPostRequest'.]

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

[application/json, ][text/json, ][application/xml, ][text/xml, ]