POST api/Orders/Post

Request Information

URI Parameters

None.

Body Parameters

OrderNewViewModel
NameDescriptionTypeAdditional information
CustomSubject

string

None.

EssayTypeId

integer

Required

SubjectId

integer

Required

CitationTypeId

integer

Required

Title

string

Required

Description

string

Required

Data type: MultilineText

String length: inclusive between 10 and 100000

Citations

integer

Required

Range: inclusive between 0 and 2147483647

IsAbstract

boolean

None.

IsPlagiarismReport

boolean

None.

IsDiscount

boolean

None.

Discount

string

None.

AdditionalMaterialId

integer

None.

ServiceTypeId

integer

Required

AcademicLevelId

integer

Required

IsVip

boolean

None.

Pages

integer

Required

Range: inclusive between 0 and 2147483647

Slides

integer

Required

Range: inclusive between 0 and 2147483647

UserId

string

None.

LineSpacingId

integer

Required

DeadlineId

integer

Required

LevelId

integer

Required

WriterAccountId

integer

None.

PaymentOptionId

integer

Required

SiteId

integer

None.

IsPurchaseSources

boolean

None.

IsToc

boolean

None.

Price

decimal number

Required

Range: inclusive between 0 and 1.79769313486232E+308

IsAgree

boolean

Required

IsBonus

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomSubject": "sample string 1",
  "EssayTypeId": 2,
  "SubjectId": 3,
  "CitationTypeId": 4,
  "Title": "sample string 5",
  "Description": "sample string 6",
  "Citations": 7,
  "IsAbstract": true,
  "IsPlagiarismReport": true,
  "IsDiscount": true,
  "Discount": "sample string 11",
  "AdditionalMaterialId": 12,
  "ServiceTypeId": 13,
  "AcademicLevelId": 14,
  "IsVip": true,
  "Pages": 16,
  "Slides": 17,
  "UserId": "sample string 18",
  "LineSpacingId": 19,
  "DeadlineId": 20,
  "LevelId": 21,
  "WriterAccountId": 22,
  "PaymentOptionId": 23,
  "SiteId": 24,
  "IsPurchaseSources": true,
  "IsToc": true,
  "Price": 27.0,
  "IsAgree": true,
  "IsBonus": true
}

text/xml

Sample:
<OrderNewViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EssayMaestros.Models">
  <AcademicLevelId>14</AcademicLevelId>
  <AdditionalMaterialId>12</AdditionalMaterialId>
  <CitationTypeId>4</CitationTypeId>
  <Citations>7</Citations>
  <CustomSubject>sample string 1</CustomSubject>
  <DeadlineId>20</DeadlineId>
  <Description>sample string 6</Description>
  <Discount>sample string 11</Discount>
  <EssayTypeId>2</EssayTypeId>
  <IsAbstract>true</IsAbstract>
  <IsAgree>true</IsAgree>
  <IsBonus>true</IsBonus>
  <IsDiscount>true</IsDiscount>
  <IsPlagiarismReport>true</IsPlagiarismReport>
  <IsPurchaseSources>true</IsPurchaseSources>
  <IsToc>true</IsToc>
  <IsVip>true</IsVip>
  <LevelId>21</LevelId>
  <LineSpacingId>19</LineSpacingId>
  <Pages>16</Pages>
  <PaymentOptionId>23</PaymentOptionId>
  <Price>27</Price>
  <ServiceTypeId>13</ServiceTypeId>
  <SiteId>24</SiteId>
  <Slides>17</Slides>
  <SubjectId>3</SubjectId>
  <Title>sample string 5</Title>
  <UserId>sample string 18</UserId>
  <WriterAccountId>22</WriterAccountId>
</OrderNewViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.