POST api/Customer/Create

Request Information

URI Parameters

None.

Body Parameters

CreateCustomerValidatedDto
NameDescriptionTypeAdditional information
EventId

integer

Range: inclusive between 0 and 2147483647

DeviceUid

string

None.

FirstName

string

None.

LastName

string

None.

FirstNameRomanized

string

None.

LastNameRomanized

string

None.

EmailAddress

string

None.

WantToRecieveEmail

boolean

None.

IsForeigner

boolean

None.

Country

string

None.

DobDay

integer

None.

DobMonth

integer

None.

DobYear

integer

None.

AcceptedTerms

boolean

None.

Gender

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "DeviceUid": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "FirstNameRomanized": "sample string 5",
  "LastNameRomanized": "sample string 6",
  "EmailAddress": "sample string 7",
  "WantToRecieveEmail": true,
  "IsForeigner": true,
  "Country": "sample string 10",
  "DobDay": 1,
  "DobMonth": 1,
  "DobYear": 1,
  "AcceptedTerms": true,
  "Gender": 1
}

application/xml, text/xml

Sample:
<CreateCustomerValidatedDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.Models.DTOs">
  <AcceptedTerms xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">true</AcceptedTerms>
  <Country xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 10</Country>
  <DeviceUid xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 2</DeviceUid>
  <DobDay xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">1</DobDay>
  <DobMonth xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">1</DobMonth>
  <DobYear xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">1</DobYear>
  <EmailAddress xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 7</EmailAddress>
  <EventId xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">1</EventId>
  <FirstName xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 3</FirstName>
  <FirstNameRomanized xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 5</FirstNameRomanized>
  <Gender xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">1</Gender>
  <IsForeigner xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">true</IsForeigner>
  <LastName xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 4</LastName>
  <LastNameRomanized xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 6</LastNameRomanized>
  <WantToRecieveEmail xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">true</WantToRecieveEmail>
</CreateCustomerValidatedDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.