POST api/Values/Add_Shop_Order
Request Information
URI Parameters
None.
Body Parameters
Order_Post| Name | Description | Type | Additional information |
|---|---|---|---|
| objH | Shop_Order_H |
None. |
|
| lstD | Collection of Shop_Order_D |
None. |
Request Formats
application/json, text/json
Sample:
{
"objH": {
"OrderID": 1,
"ClientID": 2,
"ShopID": 3,
"OrderNo": "sample string 4",
"OrderDate": "2026-08-03T01:33:15.5338971+08:00",
"StatusID": 6,
"DeliveryDate": "2026-08-03T01:33:15.5338971+08:00",
"OrderType": 8,
"ClientAddressID": 9,
"ClientPaymentID": 10,
"Notes": "sample string 11",
"TransUserID": 12,
"TransUserName": "sample string 13",
"OrderAmount": 14.0,
"OrderTax": 15.0,
"OrderFees": 16.0,
"OrderFeesTaxPerc": 17.0,
"PromoID": 18,
"PromoDiscount": 19.0,
"VoucherID": 20,
"VoucherDiscount": 21.0,
"App_Net_Amt": 22.0,
"DriverID": 23,
"DeliveryStatusID": 24,
"PaymentID": 25,
"Fees_Amt": 26.0,
"Delivery_Fees_Amt": 27.0,
"Net_Amt": 28.0,
"PaymentTs": "2026-08-03T01:33:15.5338971+08:00",
"PaymentType": 30,
"StatusDate": "2026-08-03T01:33:15.5338971+08:00",
"IsPosted": true
},
"lstD": [
{
"OrderDID": 1,
"OrderID": 2,
"ShopID": 3,
"ItemID": 4,
"UnitPrice": 5.0,
"Qty": 6,
"WithoutTaxPrice": 7.0,
"NetPrice": 8.0,
"TaxValue": 9.0,
"TaxAmt": 10.0,
"Note": "sample string 11",
"OptionID": 12,
"SizeID": 13,
"ColorID": 14,
"GiftWrap": true
},
{
"OrderDID": 1,
"OrderID": 2,
"ShopID": 3,
"ItemID": 4,
"UnitPrice": 5.0,
"Qty": 6,
"WithoutTaxPrice": 7.0,
"NetPrice": 8.0,
"TaxValue": 9.0,
"TaxAmt": 10.0,
"Note": "sample string 11",
"OptionID": 12,
"SizeID": 13,
"ColorID": 14,
"GiftWrap": true
}
]
}
text/html
Sample:
{"objH":{"OrderID":1,"ClientID":2,"ShopID":3,"OrderNo":"sample string 4","OrderDate":"2026-08-03T01:33:15.5338971+08:00","StatusID":6,"DeliveryDate":"2026-08-03T01:33:15.5338971+08:00","OrderType":8,"ClientAddressID":9,"ClientPaymentID":10,"Notes":"sample string 11","TransUserID":12,"TransUserName":"sample string 13","OrderAmount":14.0,"OrderTax":15.0,"OrderFees":16.0,"OrderFeesTaxPerc":17.0,"PromoID":18,"PromoDiscount":19.0,"VoucherID":20,"VoucherDiscount":21.0,"App_Net_Amt":22.0,"DriverID":23,"DeliveryStatusID":24,"PaymentID":25,"Fees_Amt":26.0,"Delivery_Fees_Amt":27.0,"Net_Amt":28.0,"PaymentTs":"2026-08-03T01:33:15.5338971+08:00","PaymentType":30,"StatusDate":"2026-08-03T01:33:15.5338971+08:00","IsPosted":true},"lstD":[{"OrderDID":1,"OrderID":2,"ShopID":3,"ItemID":4,"UnitPrice":5.0,"Qty":6,"WithoutTaxPrice":7.0,"NetPrice":8.0,"TaxValue":9.0,"TaxAmt":10.0,"Note":"sample string 11","OptionID":12,"SizeID":13,"ColorID":14,"GiftWrap":true},{"OrderDID":1,"OrderID":2,"ShopID":3,"ItemID":4,"UnitPrice":5.0,"Qty":6,"WithoutTaxPrice":7.0,"NetPrice":8.0,"TaxValue":9.0,"TaxAmt":10.0,"Note":"sample string 11","OptionID":12,"SizeID":13,"ColorID":14,"GiftWrap":true}]}
application/xml, text/xml
Sample:
<Order_Post xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
<lstD>
<Shop_Order_D>
<ColorID>14</ColorID>
<GiftWrap>true</GiftWrap>
<ItemID>4</ItemID>
<NetPrice>8</NetPrice>
<Note>sample string 11</Note>
<OptionID>12</OptionID>
<OrderDID>1</OrderDID>
<OrderID>2</OrderID>
<Qty>6</Qty>
<ShopID>3</ShopID>
<SizeID>13</SizeID>
<TaxAmt>10</TaxAmt>
<TaxValue>9</TaxValue>
<UnitPrice>5</UnitPrice>
<WithoutTaxPrice>7</WithoutTaxPrice>
</Shop_Order_D>
<Shop_Order_D>
<ColorID>14</ColorID>
<GiftWrap>true</GiftWrap>
<ItemID>4</ItemID>
<NetPrice>8</NetPrice>
<Note>sample string 11</Note>
<OptionID>12</OptionID>
<OrderDID>1</OrderDID>
<OrderID>2</OrderID>
<Qty>6</Qty>
<ShopID>3</ShopID>
<SizeID>13</SizeID>
<TaxAmt>10</TaxAmt>
<TaxValue>9</TaxValue>
<UnitPrice>5</UnitPrice>
<WithoutTaxPrice>7</WithoutTaxPrice>
</Shop_Order_D>
</lstD>
<objH>
<App_Net_Amt>22</App_Net_Amt>
<ClientAddressID>9</ClientAddressID>
<ClientID>2</ClientID>
<ClientPaymentID>10</ClientPaymentID>
<DeliveryDate>2026-08-03T01:33:15.5338971+08:00</DeliveryDate>
<DeliveryStatusID>24</DeliveryStatusID>
<Delivery_Fees_Amt>27</Delivery_Fees_Amt>
<DriverID>23</DriverID>
<Fees_Amt>26</Fees_Amt>
<IsPosted>true</IsPosted>
<Net_Amt>28</Net_Amt>
<Notes>sample string 11</Notes>
<OrderAmount>14</OrderAmount>
<OrderDate>2026-08-03T01:33:15.5338971+08:00</OrderDate>
<OrderFees>16</OrderFees>
<OrderFeesTaxPerc>17</OrderFeesTaxPerc>
<OrderID>1</OrderID>
<OrderNo>sample string 4</OrderNo>
<OrderTax>15</OrderTax>
<OrderType>8</OrderType>
<PaymentID>25</PaymentID>
<PaymentTs>2026-08-03T01:33:15.5338971+08:00</PaymentTs>
<PaymentType>30</PaymentType>
<PromoDiscount>19</PromoDiscount>
<PromoID>18</PromoID>
<ShopID>3</ShopID>
<StatusDate>2026-08-03T01:33:15.5338971+08:00</StatusDate>
<StatusID>6</StatusID>
<TransUserID>12</TransUserID>
<TransUserName>sample string 13</TransUserName>
<VoucherDiscount>21</VoucherDiscount>
<VoucherID>20</VoucherID>
</objH>
</Order_Post>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |