POST api/Order/CreateOrder
Request Information
URI Parameters
None.
Body Parameters
OrderDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Code | string |
None. |
|
| MemberID | integer |
None. |
|
| CompanyID | integer |
None. |
|
| CreateDate | date |
None. |
|
| AddressID | integer |
None. |
|
| ShopID | integer |
None. |
|
| ShopName | string |
None. |
|
| ArticleMoney | decimal number |
None. |
|
| Freight | decimal number |
None. |
|
| FreeMoney | decimal number |
None. |
|
| TotalMoney | decimal number |
None. |
|
| CouponMoney | decimal number |
None. |
|
| State | string |
None. |
|
| PaymentType | string |
None. |
|
| PaymentTime | string |
None. |
|
| HasTrans | boolean |
None. |
|
| DistType | string |
None. |
|
| PickupCode | string |
None. |
|
| Rearmk | string |
None. |
|
| Address | OrderAddress |
None. |
|
| Lines | Collection of OrderLineDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"Code": "sample string 2",
"MemberID": 3,
"CompanyID": 4,
"CreateDate": "2026-05-01T12:57:35.8571623+08:00",
"AddressID": 6,
"ShopID": 7,
"ShopName": "sample string 8",
"ArticleMoney": 9.0,
"Freight": 10.0,
"FreeMoney": 11.0,
"TotalMoney": 12.0,
"CouponMoney": 13.0,
"State": "sample string 14",
"PaymentType": "sample string 15",
"PaymentTime": "sample string 16",
"HasTrans": true,
"DistType": "sample string 18",
"PickupCode": "sample string 19",
"Rearmk": "sample string 20",
"Address": {
"ID": 1,
"OrderID": 2,
"Area": "sample string 3",
"DetailInfo": "sample string 4",
"UserName": "sample string 5",
"TelNumber": "sample string 6"
},
"Lines": [
{
"ID": 1,
"RowIndex": 2,
"ArticleID": 3,
"ArticleName": "sample string 4",
"Spec": "sample string 5",
"ArticleLogo": "sample string 6",
"Quantity": 7.0,
"Price": 8.0,
"Money": 9.0,
"Referee": 10,
"CartID": 11
},
{
"ID": 1,
"RowIndex": 2,
"ArticleID": 3,
"ArticleName": "sample string 4",
"Spec": "sample string 5",
"ArticleLogo": "sample string 6",
"Quantity": 7.0,
"Price": 8.0,
"Money": 9.0,
"Referee": 10,
"CartID": 11
}
]
}
application/xml, text/xml
Sample:
<OrderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProTech.Member.Entity">
<Address>
<Area>sample string 3</Area>
<DetailInfo>sample string 4</DetailInfo>
<ID>1</ID>
<OrderID>2</OrderID>
<TelNumber>sample string 6</TelNumber>
<UserName>sample string 5</UserName>
</Address>
<AddressID>6</AddressID>
<ArticleMoney>9</ArticleMoney>
<Code>sample string 2</Code>
<CompanyID>4</CompanyID>
<CouponMoney>13</CouponMoney>
<CreateDate>2026-05-01T12:57:35.8571623+08:00</CreateDate>
<DistType>sample string 18</DistType>
<FreeMoney>11</FreeMoney>
<Freight>10</Freight>
<HasTrans>true</HasTrans>
<ID>1</ID>
<Lines>
<OrderLineDto>
<ArticleID>3</ArticleID>
<ArticleLogo>sample string 6</ArticleLogo>
<ArticleName>sample string 4</ArticleName>
<CartID>11</CartID>
<ID>1</ID>
<Money>9</Money>
<Price>8</Price>
<Quantity>7</Quantity>
<Referee>10</Referee>
<RowIndex>2</RowIndex>
<Spec>sample string 5</Spec>
</OrderLineDto>
<OrderLineDto>
<ArticleID>3</ArticleID>
<ArticleLogo>sample string 6</ArticleLogo>
<ArticleName>sample string 4</ArticleName>
<CartID>11</CartID>
<ID>1</ID>
<Money>9</Money>
<Price>8</Price>
<Quantity>7</Quantity>
<Referee>10</Referee>
<RowIndex>2</RowIndex>
<Spec>sample string 5</Spec>
</OrderLineDto>
</Lines>
<MemberID>3</MemberID>
<PaymentTime>sample string 16</PaymentTime>
<PaymentType>sample string 15</PaymentType>
<PickupCode>sample string 19</PickupCode>
<Rearmk>sample string 20</Rearmk>
<ShopID>7</ShopID>
<ShopName>sample string 8</ShopName>
<State>sample string 14</State>
<TotalMoney>12</TotalMoney>
</OrderDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrderDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Code | string |
None. |
|
| MemberID | integer |
None. |
|
| CompanyID | integer |
None. |
|
| CreateDate | date |
None. |
|
| AddressID | integer |
None. |
|
| ShopID | integer |
None. |
|
| ShopName | string |
None. |
|
| ArticleMoney | decimal number |
None. |
|
| Freight | decimal number |
None. |
|
| FreeMoney | decimal number |
None. |
|
| TotalMoney | decimal number |
None. |
|
| CouponMoney | decimal number |
None. |
|
| State | string |
None. |
|
| PaymentType | string |
None. |
|
| PaymentTime | string |
None. |
|
| HasTrans | boolean |
None. |
|
| DistType | string |
None. |
|
| PickupCode | string |
None. |
|
| Rearmk | string |
None. |
|
| Address | OrderAddress |
None. |
|
| Lines | Collection of OrderLineDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 1,
"Code": "sample string 2",
"MemberID": 3,
"CompanyID": 4,
"CreateDate": "2026-05-01T12:57:35.8581326+08:00",
"AddressID": 6,
"ShopID": 7,
"ShopName": "sample string 8",
"ArticleMoney": 9.0,
"Freight": 10.0,
"FreeMoney": 11.0,
"TotalMoney": 12.0,
"CouponMoney": 13.0,
"State": "sample string 14",
"PaymentType": "sample string 15",
"PaymentTime": "sample string 16",
"HasTrans": true,
"DistType": "sample string 18",
"PickupCode": "sample string 19",
"Rearmk": "sample string 20",
"Address": {
"ID": 1,
"OrderID": 2,
"Area": "sample string 3",
"DetailInfo": "sample string 4",
"UserName": "sample string 5",
"TelNumber": "sample string 6"
},
"Lines": [
{
"ID": 1,
"RowIndex": 2,
"ArticleID": 3,
"ArticleName": "sample string 4",
"Spec": "sample string 5",
"ArticleLogo": "sample string 6",
"Quantity": 7.0,
"Price": 8.0,
"Money": 9.0,
"Referee": 10,
"CartID": 11
},
{
"ID": 1,
"RowIndex": 2,
"ArticleID": 3,
"ArticleName": "sample string 4",
"Spec": "sample string 5",
"ArticleLogo": "sample string 6",
"Quantity": 7.0,
"Price": 8.0,
"Money": 9.0,
"Referee": 10,
"CartID": 11
}
]
}
application/xml, text/xml
Sample:
<OrderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProTech.Member.Entity">
<Address>
<Area>sample string 3</Area>
<DetailInfo>sample string 4</DetailInfo>
<ID>1</ID>
<OrderID>2</OrderID>
<TelNumber>sample string 6</TelNumber>
<UserName>sample string 5</UserName>
</Address>
<AddressID>6</AddressID>
<ArticleMoney>9</ArticleMoney>
<Code>sample string 2</Code>
<CompanyID>4</CompanyID>
<CouponMoney>13</CouponMoney>
<CreateDate>2026-05-01T12:57:35.8581326+08:00</CreateDate>
<DistType>sample string 18</DistType>
<FreeMoney>11</FreeMoney>
<Freight>10</Freight>
<HasTrans>true</HasTrans>
<ID>1</ID>
<Lines>
<OrderLineDto>
<ArticleID>3</ArticleID>
<ArticleLogo>sample string 6</ArticleLogo>
<ArticleName>sample string 4</ArticleName>
<CartID>11</CartID>
<ID>1</ID>
<Money>9</Money>
<Price>8</Price>
<Quantity>7</Quantity>
<Referee>10</Referee>
<RowIndex>2</RowIndex>
<Spec>sample string 5</Spec>
</OrderLineDto>
<OrderLineDto>
<ArticleID>3</ArticleID>
<ArticleLogo>sample string 6</ArticleLogo>
<ArticleName>sample string 4</ArticleName>
<CartID>11</CartID>
<ID>1</ID>
<Money>9</Money>
<Price>8</Price>
<Quantity>7</Quantity>
<Referee>10</Referee>
<RowIndex>2</RowIndex>
<Spec>sample string 5</Spec>
</OrderLineDto>
</Lines>
<MemberID>3</MemberID>
<PaymentTime>sample string 16</PaymentTime>
<PaymentType>sample string 15</PaymentType>
<PickupCode>sample string 19</PickupCode>
<Rearmk>sample string 20</Rearmk>
<ShopID>7</ShopID>
<ShopName>sample string 8</ShopName>
<State>sample string 14</State>
<TotalMoney>12</TotalMoney>
</OrderDto>