POST api/OEOrder/CreateApplyCourseOrder
创建申请订单
Request Information
URI Parameters
None.
Body Parameters
订单参数
CourseApplyOrderBindingModels| Name | Description | Type | Additional information |
|---|---|---|---|
| TrueName |
申请人姓名 |
string |
None. |
| MobilePhone |
申请人电话 |
string |
None. |
| ValidDocumentCode |
申请人证件号 |
string |
None. |
| ServiceMobilePhone |
助教手机号 |
string |
None. |
| InviterMobilePhone |
推荐人手机号 |
string |
None. |
| Type |
订单类型 |
integer |
None. |
| CourseID |
课程ID |
string |
None. |
| ClassAccountManageIDs |
上课人ID |
string |
None. |
| Price |
打赏金额 |
decimal number |
None. |
| HotelID |
酒店ID |
string |
None. |
| RoomAmount |
酒店房间数 |
integer |
None. |
| InvoiceType |
发票类型 |
integer |
None. |
| TaxType |
抬头类型 |
integer |
None. |
| TaxTitle |
抬头名称 |
string |
None. |
| TaxNumber |
税号 |
string |
None. |
| MealCount |
用餐人数 |
integer |
None. |
| ACID |
优惠券Id |
string |
None. |
| Id |
Id |
string |
None. |
| AccountId |
用户Id |
string |
None. |
| ShopId |
商城Id |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"TrueName": "sample string 1",
"MobilePhone": "sample string 2",
"ValidDocumentCode": "sample string 3",
"ServiceMobilePhone": "sample string 4",
"InviterMobilePhone": "sample string 5",
"Type": 6,
"CourseID": "sample string 7",
"ClassAccountManageIDs": "sample string 8",
"Price": 9.0,
"HotelID": "sample string 10",
"RoomAmount": 11,
"InvoiceType": 12,
"TaxType": 13,
"TaxTitle": "sample string 14",
"TaxNumber": "sample string 15",
"MealCount": 16,
"ACID": "sample string 17",
"Id": "sample string 18",
"AccountId": "sample string 19",
"ShopId": 20
}
application/xml, text/xml
Sample:
<CourseApplyOrderBindingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Areas.OnlineEducation.Models"> <AccountId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 19</AccountId> <Id xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 18</Id> <ShopId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">20</ShopId> <ACID>sample string 17</ACID> <ClassAccountManageIDs>sample string 8</ClassAccountManageIDs> <CourseID>sample string 7</CourseID> <HotelID>sample string 10</HotelID> <InvoiceType>12</InvoiceType> <MealCount>16</MealCount> <Price>9</Price> <RoomAmount>11</RoomAmount> <TaxNumber>sample string 15</TaxNumber> <TaxTitle>sample string 14</TaxTitle> <TaxType>13</TaxType> <Type>6</Type> <InviterMobilePhone>sample string 5</InviterMobilePhone> <MobilePhone>sample string 2</MobilePhone> <ServiceMobilePhone>sample string 4</ServiceMobilePhone> <TrueName>sample string 1</TrueName> <ValidDocumentCode>sample string 3</ValidDocumentCode> </CourseApplyOrderBindingModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PaymentResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
返回Code(-1请求失败,0请求成功,1调用支付) |
integer |
None. |
| errmsg |
返回提示消息 |
string |
None. |
| url |
返回Url |
string |
None. |
| data |
返回数据 |
string |
None. |
| dataObj |
返回数据1 |
Object |
None. |
| timeStamp | string |
None. |
|
| nonceStr | string |
None. |
|
| package | string |
None. |
|
| paySign | string |
None. |
|
| signType | string |
None. |
|
| dealId | string |
None. |
|
| appKey | string |
None. |
|
| totalAmount | string |
None. |
|
| tpOrderId | string |
None. |
|
| dealTitle | string |
None. |
|
| bizInfo | string |
None. |
|
| appId | string |
None. |
|
| orderInfo | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"timeStamp": "sample string 1",
"nonceStr": "sample string 2",
"package": "sample string 3",
"paySign": "sample string 4",
"signType": "sample string 5",
"dealId": "sample string 6",
"appKey": "sample string 7",
"totalAmount": "sample string 8",
"tpOrderId": "sample string 9",
"dealTitle": "sample string 10",
"bizInfo": "sample string 11",
"appId": "sample string 12",
"orderInfo": "sample string 13",
"errcode": 1,
"errmsg": "sample string 2",
"url": "sample string 3",
"data": "sample string 4",
"dataObj": {}
}
application/xml, text/xml
Sample:
<PaymentResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models"> <data>sample string 4</data> <dataObj /> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <url>sample string 3</url> <appId>sample string 12</appId> <appKey>sample string 7</appKey> <bizInfo>sample string 11</bizInfo> <dealId>sample string 6</dealId> <dealTitle>sample string 10</dealTitle> <nonceStr>sample string 2</nonceStr> <orderInfo>sample string 13</orderInfo> <package>sample string 3</package> <paySign>sample string 4</paySign> <signType>sample string 5</signType> <timeStamp>sample string 1</timeStamp> <totalAmount>sample string 8</totalAmount> <tpOrderId>sample string 9</tpOrderId> </PaymentResult>