POST api/WxOrder/CreateTask

Request Information

URI Parameters

None.

Body Parameters

ApiTaskRequest
NameDescriptionTypeAdditional information
categoryId

integer

None.

volumeTier

byte

None.

difficultyLevel

byte

None.

basePrice

decimal number

None.

discountRate

decimal number

None.

actualPrice

decimal number

None.

usedDiscountCoupon

byte

None.

discountCouponId

integer

None.

couponDiscountAmount

decimal number

None.

finalPayAmount

decimal number

None.

priority

byte

None.

wordCountCoefficient

decimal number

None.

priceAfterWordCoeff

decimal number

None.

specialTaskType

byte

None.

reservedPhone

string

None.

reservedEmail

string

None.

taskMaterialType

byte

None.

cloudDrivePath

string

None.

receivingEmailAddress

string

None.

sendingEmailAddress

string

None.

description

string

None.

orderno

string

None.

filepath

string

None.

quantity

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "categoryId": 1,
  "volumeTier": 64,
  "difficultyLevel": 64,
  "basePrice": 4.0,
  "discountRate": 5.0,
  "actualPrice": 6.0,
  "usedDiscountCoupon": 64,
  "discountCouponId": 1,
  "couponDiscountAmount": 1.0,
  "finalPayAmount": 8.0,
  "priority": 64,
  "wordCountCoefficient": 10.0,
  "priceAfterWordCoeff": 11.0,
  "specialTaskType": 64,
  "reservedPhone": "sample string 13",
  "reservedEmail": "sample string 14",
  "taskMaterialType": 64,
  "cloudDrivePath": "sample string 16",
  "receivingEmailAddress": "sample string 17",
  "sendingEmailAddress": "sample string 18",
  "description": "sample string 19",
  "orderno": "sample string 20",
  "filepath": "sample string 21",
  "quantity": 22
}

application/xml, text/xml

Sample:
<ApiTaskRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TasksApi.Models">
  <ActualPrice>6</ActualPrice>
  <BasePrice>4</BasePrice>
  <CategoryId>1</CategoryId>
  <CloudDrivePath>sample string 16</CloudDrivePath>
  <CouponDiscountAmount>1</CouponDiscountAmount>
  <Description>sample string 19</Description>
  <DifficultyLevel>64</DifficultyLevel>
  <DiscountCouponId>1</DiscountCouponId>
  <DiscountRate>5</DiscountRate>
  <FinalPayAmount>8</FinalPayAmount>
  <PriceAfterWordCoeff>11</PriceAfterWordCoeff>
  <Priority>64</Priority>
  <Quantity>22</Quantity>
  <ReceivingEmailAddress>sample string 17</ReceivingEmailAddress>
  <ReservedEmail>sample string 14</ReservedEmail>
  <ReservedPhone>sample string 13</ReservedPhone>
  <SendingEmailAddress>sample string 18</SendingEmailAddress>
  <SpecialTaskType>64</SpecialTaskType>
  <TaskMaterialType>64</TaskMaterialType>
  <UsedDiscountCoupon>64</UsedDiscountCoupon>
  <VolumeTier>64</VolumeTier>
  <WordCountCoefficient>10</WordCountCoefficient>
  <filePath>sample string 21</filePath>
  <orderNo>sample string 20</orderNo>
</ApiTaskRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.