POST api/mktevents/payment

Request Information

URI Parameters

None.

Body Parameters

EventParticipantRequest
NameDescriptionTypeAdditional information
EventId

integer

Range: inclusive between 1 and 2147483647

Plate

string

Required

String length: inclusive between 0 and 20

ClientName

string

Required

String length: inclusive between 0 and 250

ClientPhone

string

Required

ClientEmail

string

Required

Participants

Collection of EventRegistrationParticipantRequest

Required

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "Plate": "sample string 2",
  "ClientName": "sample string 3",
  "ClientPhone": "sample string 4",
  "ClientEmail": "sample string 5",
  "Participants": [
    {
      "Type": "sample string 1",
      "Quantity": 2,
      "Age": 1
    },
    {
      "Type": "sample string 1",
      "Quantity": 2,
      "Age": 1
    }
  ]
}

application/xml, text/xml

Sample:
<EventParticipantRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <ClientEmail>sample string 5</ClientEmail>
  <ClientName>sample string 3</ClientName>
  <ClientPhone>sample string 4</ClientPhone>
  <EventId>1</EventId>
  <Participants>
    <EventRegistrationParticipantRequest>
      <Age>1</Age>
      <Quantity>2</Quantity>
      <Type>sample string 1</Type>
    </EventRegistrationParticipantRequest>
    <EventRegistrationParticipantRequest>
      <Age>1</Age>
      <Quantity>2</Quantity>
      <Type>sample string 1</Type>
    </EventRegistrationParticipantRequest>
  </Participants>
  <Plate>sample string 2</Plate>
</EventParticipantRequest>

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 'EventParticipantRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.