POST api/sendshopcontactform

Request Information

URI Parameters

None.

Body Parameters

ShopContactFormModel
NameDescriptionTypeAdditional information
FirstName

string

Required

LastName

string

Required

Email

string

Required

City

string

None.

Country

string

None.

ConvenientTime

string

None.

BirthPlaceTime

string

None.

PaymentType

string

None.

PaymentAmount

decimal number

None.

SelectedCourse

string

None.

Phone

string

None.

Skype

string

None.

Subscribe

boolean

None.

Comment

string

None.

Subject

string

None.

Page

string

None.

FormName

string

None.

EmailTemplate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Email": "sample string 3",
  "City": "sample string 4",
  "Country": "sample string 5",
  "ConvenientTime": "sample string 6",
  "BirthPlaceTime": "sample string 7",
  "PaymentType": "sample string 8",
  "PaymentAmount": 9.0,
  "SelectedCourse": "sample string 10",
  "Phone": "sample string 11",
  "Skype": "sample string 12",
  "Subscribe": true,
  "Comment": "sample string 14",
  "Subject": "sample string 15",
  "Page": "sample string 16",
  "FormName": "sample string 17",
  "EmailTemplate": "sample string 18"
}

application/xml, text/xml

Sample:
<ShopContactFormModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <BirthPlaceTime>sample string 7</BirthPlaceTime>
  <City>sample string 4</City>
  <Comment>sample string 14</Comment>
  <ConvenientTime>sample string 6</ConvenientTime>
  <Country>sample string 5</Country>
  <Email>sample string 3</Email>
  <EmailTemplate>sample string 18</EmailTemplate>
  <FirstName>sample string 1</FirstName>
  <FormName>sample string 17</FormName>
  <LastName>sample string 2</LastName>
  <Page>sample string 16</Page>
  <PaymentAmount>9</PaymentAmount>
  <PaymentType>sample string 8</PaymentType>
  <Phone>sample string 11</Phone>
  <SelectedCourse>sample string 10</SelectedCourse>
  <Skype>sample string 12</Skype>
  <Subject>sample string 15</Subject>
  <Subscribe>true</Subscribe>
</ShopContactFormModel>

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

Response Information

Resource Description

ContactFormSendResult
NameDescriptionTypeAdditional information
success

boolean

None.

UserMessage

string

None.

FormValidationError

ContactFormValidationError

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "UserMessage": "sample string 2",
  "FormValidationError": 0
}

application/xml, text/xml

Sample:
<ContactFormSendResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models">
  <FormValidationError>NoError</FormValidationError>
  <UserMessage>sample string 2</UserMessage>
  <success>true</success>
</ContactFormSendResult>