POST api/products
Request Information
URI Parameters
None.
Body Parameters
input_data| Name | Description | Type | Additional information |
|---|---|---|---|
| product_id | integer |
None. |
|
| id | integer |
None. |
|
| code | integer |
None. |
|
| OrderStatus | integer |
None. |
|
| lang_id | integer |
None. |
|
| c | integer |
None. |
|
| user_id | integer |
None. |
|
| main_category | integer |
None. |
|
| sub_category | integer |
None. |
|
| country_id | integer |
None. |
|
| city_id | integer |
None. |
|
| idorder | integer |
None. |
|
| Move_Side | integer |
None. |
|
| media_type | integer |
None. |
|
| site_id | integer |
None. |
|
| token | string |
None. |
|
| accid | string |
None. |
|
| message | string |
None. |
|
| shortname | string |
None. |
|
| barcode | string |
None. |
|
| phon | string |
None. |
|
| address | string |
None. |
|
| ordernumber | string |
None. |
|
| companye | string |
None. |
|
| aname | string |
None. |
|
| user_name | string |
None. |
|
| father_name | string |
None. |
|
| page_number | integer |
None. |
|
| page_count_row | integer |
None. |
|
| father | integer |
None. |
|
| status | integer |
None. |
|
| category_type | integer |
None. |
|
| pro_type | integer |
None. |
|
| start_date | date |
None. |
|
| end_date | date |
None. |
|
| discount | decimal number |
None. |
|
| shipping | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"product_id": 1,
"id": 2,
"code": 3,
"OrderStatus": 4,
"lang_id": 5,
"c": 6,
"user_id": 7,
"main_category": 8,
"sub_category": 9,
"country_id": 10,
"city_id": 11,
"idorder": 12,
"Move_Side": 13,
"media_type": 14,
"site_id": 15,
"token": "sample string 16",
"accid": "sample string 17",
"message": "sample string 18",
"shortname": "sample string 19",
"barcode": "sample string 20",
"phon": "sample string 21",
"address": "sample string 22",
"ordernumber": "sample string 23",
"companye": "sample string 24",
"aname": "sample string 25",
"user_name": "sample string 26",
"father_name": "sample string 27",
"page_number": 28,
"page_count_row": 29,
"father": 30,
"status": 31,
"category_type": 32,
"pro_type": 33,
"start_date": "2025-12-06T07:19:38.3356869+03:00",
"end_date": "2025-12-06T07:19:38.3356869+03:00",
"discount": 36.1,
"shipping": 37.1
}
text/xml
Sample:
<input_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smart_weber"> <Move_Side>13</Move_Side> <OrderStatus>4</OrderStatus> <accid>sample string 17</accid> <address>sample string 22</address> <aname>sample string 25</aname> <barcode>sample string 20</barcode> <c>6</c> <category_type>32</category_type> <city_id>11</city_id> <code>3</code> <companye>sample string 24</companye> <country_id>10</country_id> <discount>36.1</discount> <end_date>2025-12-06T07:19:38.3356869+03:00</end_date> <father>30</father> <father_name>sample string 27</father_name> <id>2</id> <idorder>12</idorder> <lang_id>5</lang_id> <main_category>8</main_category> <media_type>14</media_type> <message>sample string 18</message> <ordernumber>sample string 23</ordernumber> <page_count_row>29</page_count_row> <page_number>28</page_number> <phon>sample string 21</phon> <pro_type>33</pro_type> <product_id>1</product_id> <shipping>37.1</shipping> <shortname>sample string 19</shortname> <site_id>15</site_id> <start_date>2025-12-06T07:19:38.3356869+03:00</start_date> <status>31</status> <sub_category>9</sub_category> <token>sample string 16</token> <user_id>7</user_id> <user_name>sample string 26</user_name> </input_data>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
outdata| Name | Description | Type | Additional information |
|---|---|---|---|
| data | DataTable |
None. |
|
| rowcount |
if get data then return count row else return the id row affected |
integer |
None. |
| status | boolean |
None. |
|
| msg_error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": null,
"rowcount": 1,
"status": true,
"msg_error": "sample string 3"
}
text/xml
Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smart_weber"> <data i:nil="true" /> <msg_error>sample string 3</msg_error> <rowcount>1</rowcount> <status>true</status> </outdata>