POST api/CreateOrder
创建订单
Request Information
URI Parameters
None.
Body Parameters
CreateOrderParams| Name | Description | Type | Additional information |
|---|---|---|---|
| SendCompanyID |
终端id |
integer |
None. |
| OrderJson |
物料列表字符串 |
string |
None. |
| OrderAddressID |
收货地址id |
integer |
None. |
| InvoiceSendID |
寄票地址id |
integer |
None. |
| OrderType |
订单类型 默认为0 |
integer |
None. |
| ExpectedDeliveryDate |
期望到货日期 |
string |
None. |
| SimsSectionID |
科室id |
string |
None. |
| SimsSectionName |
科室名称 |
string |
None. |
| Remark |
备注 |
string |
None. |
| OrderSource |
订单来源 默认 14 (saas 下单 50-小程序;51-安卓;52-IOS |
integer |
None. |
| OrderTerminal |
订单终端 |
string |
None. |
| ApprovalFileList | Collection of ApprovalFileInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"SendCompanyID": 1,
"OrderJson": "sample string 2",
"OrderAddressID": 3,
"InvoiceSendID": 4,
"OrderType": 5,
"ExpectedDeliveryDate": "sample string 6",
"SimsSectionID": "sample string 7",
"SimsSectionName": "sample string 8",
"Remark": "sample string 9",
"OrderSource": 10,
"OrderTerminal": "sample string 11",
"ApprovalFileList": [
{
"FileName": "sample string 1",
"Path": "sample string 2"
},
{
"FileName": "sample string 1",
"Path": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<CreateOrderParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JR.SAAS.Web.API.Models">
<ApprovalFileList xmlns:d2p1="http://schemas.datacontract.org/2004/07/JR.SAAS.Models.Order">
<d2p1:ApprovalFileInfo>
<d2p1:FileName>sample string 1</d2p1:FileName>
<d2p1:Path>sample string 2</d2p1:Path>
</d2p1:ApprovalFileInfo>
<d2p1:ApprovalFileInfo>
<d2p1:FileName>sample string 1</d2p1:FileName>
<d2p1:Path>sample string 2</d2p1:Path>
</d2p1:ApprovalFileInfo>
</ApprovalFileList>
<ExpectedDeliveryDate>sample string 6</ExpectedDeliveryDate>
<InvoiceSendID>4</InvoiceSendID>
<OrderAddressID>3</OrderAddressID>
<OrderJson>sample string 2</OrderJson>
<OrderSource>10</OrderSource>
<OrderTerminal>sample string 11</OrderTerminal>
<OrderType>5</OrderType>
<Remark>sample string 9</Remark>
<SendCompanyID>1</SendCompanyID>
<SimsSectionID>sample string 7</SimsSectionID>
<SimsSectionName>sample string 8</SimsSectionName>
</CreateOrderParams>
Response Information
Resource Description
创建订单
ApiRet| Name | Description | Type | Additional information |
|---|---|---|---|
| RetCode |
状态码 |
string |
None. |
| RetMsg |
状态描述 |
string |
None. |
| Message |
数据实体 |
Object |
None. |
| Total |
查询结果所有页的总条数 |
integer |
None. |
| TotalPage |
总页数 |
integer |
None. |
| Redirect |
需重定向的地址 |
string |
None. |
| FieldStr |
列表字段管理 |
Object |
None. |
| CurrentTime |
当前时间 |
date |
None. |
| IDX |
主键 |
integer |
None. |
| DelFlag |
删除标识 0未删除 1:已删除 |
integer |
None. |
| PageIndex |
列表请求参数 |
integer |
None. |
| PageSize |
列表请求参数 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"RetCode": "sample string 1",
"RetMsg": "sample string 2",
"Message": {},
"Total": 4,
"TotalPage": 5,
"Redirect": "sample string 6",
"FieldStr": {},
"CurrentTime": "2026-04-05 22:29:47",
"IDX": 9,
"DelFlag": 10,
"PageIndex": 11,
"PageSize": 12
}
application/xml, text/xml
Sample:
<ApiRet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JR.SAAS.Models.Common"> <_x003C_DelFlag_x003E_k__BackingField>10</_x003C_DelFlag_x003E_k__BackingField> <_x003C_IDX_x003E_k__BackingField>9</_x003C_IDX_x003E_k__BackingField> <_x003C_PageIndex_x003E_k__BackingField>11</_x003C_PageIndex_x003E_k__BackingField> <_x003C_PageSize_x003E_k__BackingField>12</_x003C_PageSize_x003E_k__BackingField> <CurrentTime>2026-04-05T22:29:47.6217894+08:00</CurrentTime> <FieldStr /> <Message /> <Redirect>sample string 6</Redirect> <RetCode>sample string 1</RetCode> <RetMsg>sample string 2</RetMsg> <Total>4</Total> <TotalPage>5</TotalPage> </ApiRet>