POST api/WxOrder/CreatePayment

Request Information

URI Parameters

None.

Body Parameters

WxPayUnifiedOrderRequest
NameDescriptionTypeAdditional information
taskId

integer

None.

totalFee

decimal number

None.

body

string

None.

spbillCreateIp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "taskId": 1,
  "totalFee": 2.1,
  "body": "sample string 3",
  "spbillCreateIp": "sample string 4"
}

application/xml, text/xml

Sample:
<WxPayUnifiedOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TasksApi.Models">
  <Body>sample string 3</Body>
  <SpbillCreateIp>sample string 4</SpbillCreateIp>
  <TaskId>1</TaskId>
  <TotalFee>2.1</TotalFee>
</WxPayUnifiedOrderRequest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.