POST api/Orders?user={user}&pass={pass}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
user | string |
Default value is |
|
pass | string |
Default value is |
Body Parameters
OrdersClassName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
id_client | integer |
None. |
|
client_name | string |
None. |
|
id_client_address | integer |
None. |
|
client_address | string |
None. |
|
address1 | string |
None. |
|
exchange_rate | decimal number |
None. |
|
subtotal | decimal number |
None. |
|
discount | decimal number |
None. |
|
tax | decimal number |
None. |
|
delivery | decimal number |
None. |
|
total | decimal number |
None. |
|
order_state | integer |
None. |
|
str_order_state | string |
None. |
|
id_saler | integer |
None. |
|
id_saler_branch | integer |
None. |
|
saler | string |
None. |
|
id_server | string |
None. |
|
dt_created | date |
None. |
|
dt_confirmed | date |
None. |
|
dt_delivered | date |
None. |
|
dt_sended | date |
None. |
|
OrdersDetails | Collection of OrdersDetailsClass |
None. |
|
Address | ClientAddress |
None. |
|
Client | Clients |
None. |
|
ChangeState | boolean |
None. |
|
id_credit_card_transaction | integer |
None. |
|
str_comment | string |
None. |
|
int_payment_type | integer |
None. |
|
int_order_type | integer |
None. |
|
dt_pickup | date |
None. |
|
id_transport | integer |
None. |
|
order_cash | decimal number |
None. |
|
Complements | Collection of ComplementsClass |
None. |
Request Formats
application/json, text/json
Sample:
{ "Complements": [ { "id": 1, "id_cat_complement": 2, "str_name": "sample string 3", "price": 4.1, "price_with_tax": 5.1, "id_server": 6, "id_server_cat": 7, "id_server_inventory": 8 }, { "id": 1, "id_cat_complement": 2, "str_name": "sample string 3", "price": 4.1, "price_with_tax": 5.1, "id_server": 6, "id_server_cat": 7, "id_server_inventory": 8 } ], "id": 1, "id_client": 2, "client_name": "sample string 3", "id_client_address": 4, "client_address": "sample string 5", "address1": "sample string 6", "exchange_rate": 7.1, "subtotal": 8.1, "discount": 9.1, "tax": 10.1, "delivery": 11.1, "total": 12.1, "order_state": 13, "str_order_state": "sample string 14", "id_saler": 15, "id_saler_branch": 16, "saler": "sample string 17", "id_server": "sample string 18", "dt_created": "2024-12-22T16:26:40.9654479-06:00", "dt_confirmed": "2024-12-22T16:26:40.9654479-06:00", "dt_delivered": "2024-12-22T16:26:40.9654479-06:00", "dt_sended": "2024-12-22T16:26:40.9654479-06:00", "OrdersDetails": [ { "Complements": [ { "id": 1, "id_cat_complement": 2, "str_name": "sample string 3", "price": 4.1, "price_with_tax": 5.1, "id_server": 6, "id_server_cat": 7, "id_server_inventory": 8 }, { "id": 1, "id_cat_complement": 2, "str_name": "sample string 3", "price": 4.1, "price_with_tax": 5.1, "id_server": 6, "id_server_cat": 7, "id_server_inventory": 8 } ], "id": 1, "id_order": 2, "id_inventory": 3, "name": "sample string 4", "code": "sample string 5", "unit": 6, "id_property": 7, "unit_name": "sample string 8", "image_str": "sample string 9", "qty": 10.1, "total": 11.1, "discount_price": 12.1, "regular_price": 13.1, "price_with_tax": 14.1, "complements_price": 15.1, "complements_price_With_tax": 16.1, "main_image": "sample string 17", "id_server": 18, "comments": "sample string 19" }, { "Complements": [ { "id": 1, "id_cat_complement": 2, "str_name": "sample string 3", "price": 4.1, "price_with_tax": 5.1, "id_server": 6, "id_server_cat": 7, "id_server_inventory": 8 }, { "id": 1, "id_cat_complement": 2, "str_name": "sample string 3", "price": 4.1, "price_with_tax": 5.1, "id_server": 6, "id_server_cat": 7, "id_server_inventory": 8 } ], "id": 1, "id_order": 2, "id_inventory": 3, "name": "sample string 4", "code": "sample string 5", "unit": 6, "id_property": 7, "unit_name": "sample string 8", "image_str": "sample string 9", "qty": 10.1, "total": 11.1, "discount_price": 12.1, "regular_price": 13.1, "price_with_tax": 14.1, "complements_price": 15.1, "complements_price_With_tax": 16.1, "main_image": "sample string 17", "id_server": 18, "comments": "sample string 19" } ], "Address": { "id": 1, "id_client": 2, "address1": "sample string 3", "address2": "sample string 4", "client_name": "sample string 5", "client_phone": "sample string 6", "client_govid": "sample string 7", "latitude": 8.1, "longitude": 9.1, "principal": true, "description": "sample string 11", "region": "sample string 12", "distance": 13.1, "country": "sample string 14", "country_state": "sample string 15" }, "Client": { "Address": [ { "id": 1, "id_client": 2, "address1": "sample string 3", "address2": "sample string 4", "client_name": "sample string 5", "client_phone": "sample string 6", "client_govid": "sample string 7", "latitude": 8.1, "longitude": 9.1, "principal": true, "description": "sample string 11", "region": "sample string 12", "distance": 13.1, "country": "sample string 14", "country_state": "sample string 15" }, { "id": 1, "id_client": 2, "address1": "sample string 3", "address2": "sample string 4", "client_name": "sample string 5", "client_phone": "sample string 6", "client_govid": "sample string 7", "latitude": 8.1, "longitude": 9.1, "principal": true, "description": "sample string 11", "region": "sample string 12", "distance": 13.1, "country": "sample string 14", "country_state": "sample string 15" } ], "main": { "version": "sample string 1", "deviceId": "sample string 2" }, "id": 1, "name": "sample string 2", "last_name": "sample string 3", "email": "sample string 4", "username": "sample string 5", "phone": "sample string 6", "userpass": "sample string 7", "isverified": true, "ChangePassword": true, "ForgotPassword": true, "id_price_list": 11, "dt_created": "2024-12-22T16:26:40.9654479-06:00", "dt_last_buy": "2024-12-22T16:26:40.9810742-06:00", "unique_code": "sample string 13", "is_driver": true, "bird_date": "2024-12-22T16:26:40.9810742-06:00", "gov_id": "sample string 16", "business_name": "sample string 17" }, "ChangeState": true, "id_credit_card_transaction": 21, "str_comment": "sample string 22", "int_payment_type": 23, "int_order_type": 24, "dt_pickup": "2024-12-22T16:26:40.9810742-06:00", "id_transport": 26, "order_cash": 27.1 }
application/xml, text/xml
Sample:
<OrdersClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models"> <Address> <address1>sample string 3</address1> <address2>sample string 4</address2> <client_govid>sample string 7</client_govid> <client_name>sample string 5</client_name> <client_phone>sample string 6</client_phone> <country>sample string 14</country> <country_state>sample string 15</country_state> <description>sample string 11</description> <distance>13.1</distance> <id>1</id> <id_client>2</id_client> <latitude>8.1</latitude> <longitude>9.1</longitude> <principal>true</principal> <region>sample string 12</region> </Address> <ChangeState>true</ChangeState> <Client> <Address> <ClientAddress> <address1>sample string 3</address1> <address2>sample string 4</address2> <client_govid>sample string 7</client_govid> <client_name>sample string 5</client_name> <client_phone>sample string 6</client_phone> <country>sample string 14</country> <country_state>sample string 15</country_state> <description>sample string 11</description> <distance>13.1</distance> <id>1</id> <id_client>2</id_client> <latitude>8.1</latitude> <longitude>9.1</longitude> <principal>true</principal> <region>sample string 12</region> </ClientAddress> <ClientAddress> <address1>sample string 3</address1> <address2>sample string 4</address2> <client_govid>sample string 7</client_govid> <client_name>sample string 5</client_name> <client_phone>sample string 6</client_phone> <country>sample string 14</country> <country_state>sample string 15</country_state> <description>sample string 11</description> <distance>13.1</distance> <id>1</id> <id_client>2</id_client> <latitude>8.1</latitude> <longitude>9.1</longitude> <principal>true</principal> <region>sample string 12</region> </ClientAddress> </Address> <ChangePassword>true</ChangePassword> <ForgotPassword>true</ForgotPassword> <bird_date>2024-12-22T16:26:40.9810742-06:00</bird_date> <business_name>sample string 17</business_name> <dt_created>2024-12-22T16:26:40.9654479-06:00</dt_created> <dt_last_buy>2024-12-22T16:26:40.9810742-06:00</dt_last_buy> <email>sample string 4</email> <gov_id>sample string 16</gov_id> <id>1</id> <id_price_list>11</id_price_list> <is_driver>true</is_driver> <isverified>true</isverified> <last_name>sample string 3</last_name> <main> <deviceId>sample string 2</deviceId> <version>sample string 1</version> </main> <name>sample string 2</name> <phone>sample string 6</phone> <unique_code>sample string 13</unique_code> <username>sample string 5</username> <userpass>sample string 7</userpass> </Client> <Complements> <ComplementsClass> <id>1</id> <id_cat_complement>2</id_cat_complement> <id_server>6</id_server> <id_server_cat>7</id_server_cat> <id_server_inventory>8</id_server_inventory> <price>4.1</price> <price_with_tax>5.1</price_with_tax> <str_name>sample string 3</str_name> </ComplementsClass> <ComplementsClass> <id>1</id> <id_cat_complement>2</id_cat_complement> <id_server>6</id_server> <id_server_cat>7</id_server_cat> <id_server_inventory>8</id_server_inventory> <price>4.1</price> <price_with_tax>5.1</price_with_tax> <str_name>sample string 3</str_name> </ComplementsClass> </Complements> <OrdersDetails> <OrdersDetailsClass> <Complements> <ComplementsClass> <id>1</id> <id_cat_complement>2</id_cat_complement> <id_server>6</id_server> <id_server_cat>7</id_server_cat> <id_server_inventory>8</id_server_inventory> <price>4.1</price> <price_with_tax>5.1</price_with_tax> <str_name>sample string 3</str_name> </ComplementsClass> <ComplementsClass> <id>1</id> <id_cat_complement>2</id_cat_complement> <id_server>6</id_server> <id_server_cat>7</id_server_cat> <id_server_inventory>8</id_server_inventory> <price>4.1</price> <price_with_tax>5.1</price_with_tax> <str_name>sample string 3</str_name> </ComplementsClass> </Complements> <code>sample string 5</code> <comments>sample string 19</comments> <complements_price>15.1</complements_price> <complements_price_With_tax>16.1</complements_price_With_tax> <discount_price>12.1</discount_price> <id>1</id> <id_inventory>3</id_inventory> <id_order>2</id_order> <id_property>7</id_property> <id_server>18</id_server> <image_str>sample string 9</image_str> <main_image>sample string 17</main_image> <name>sample string 4</name> <price_with_tax>14.1</price_with_tax> <qty>10.1</qty> <regular_price>13.1</regular_price> <total>11.1</total> <unit>6</unit> <unit_name>sample string 8</unit_name> </OrdersDetailsClass> <OrdersDetailsClass> <Complements> <ComplementsClass> <id>1</id> <id_cat_complement>2</id_cat_complement> <id_server>6</id_server> <id_server_cat>7</id_server_cat> <id_server_inventory>8</id_server_inventory> <price>4.1</price> <price_with_tax>5.1</price_with_tax> <str_name>sample string 3</str_name> </ComplementsClass> <ComplementsClass> <id>1</id> <id_cat_complement>2</id_cat_complement> <id_server>6</id_server> <id_server_cat>7</id_server_cat> <id_server_inventory>8</id_server_inventory> <price>4.1</price> <price_with_tax>5.1</price_with_tax> <str_name>sample string 3</str_name> </ComplementsClass> </Complements> <code>sample string 5</code> <comments>sample string 19</comments> <complements_price>15.1</complements_price> <complements_price_With_tax>16.1</complements_price_With_tax> <discount_price>12.1</discount_price> <id>1</id> <id_inventory>3</id_inventory> <id_order>2</id_order> <id_property>7</id_property> <id_server>18</id_server> <image_str>sample string 9</image_str> <main_image>sample string 17</main_image> <name>sample string 4</name> <price_with_tax>14.1</price_with_tax> <qty>10.1</qty> <regular_price>13.1</regular_price> <total>11.1</total> <unit>6</unit> <unit_name>sample string 8</unit_name> </OrdersDetailsClass> </OrdersDetails> <address1>sample string 6</address1> <client_address>sample string 5</client_address> <client_name>sample string 3</client_name> <delivery>11.1</delivery> <discount>9.1</discount> <dt_confirmed>2024-12-22T16:26:40.9654479-06:00</dt_confirmed> <dt_created>2024-12-22T16:26:40.9654479-06:00</dt_created> <dt_delivered>2024-12-22T16:26:40.9654479-06:00</dt_delivered> <dt_pickup>2024-12-22T16:26:40.9810742-06:00</dt_pickup> <dt_sended>2024-12-22T16:26:40.9654479-06:00</dt_sended> <exchange_rate>7.1</exchange_rate> <id>1</id> <id_client>2</id_client> <id_client_address>4</id_client_address> <id_credit_card_transaction>21</id_credit_card_transaction> <id_saler>15</id_saler> <id_saler_branch>16</id_saler_branch> <id_server>sample string 18</id_server> <id_transport>26</id_transport> <int_order_type>24</int_order_type> <int_payment_type>23</int_payment_type> <order_cash>27.1</order_cash> <order_state>13</order_state> <saler>sample string 17</saler> <str_comment>sample string 22</str_comment> <str_order_state>sample string 14</str_order_state> <subtotal>8.1</subtotal> <tax>10.1</tax> <total>12.1</total> </OrdersClass>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |