POST api/saveProducts
save products
Request Information
URI Parameters
None.
Body Parameters
{products}
Products| Name | Description | Type | Additional information |
|---|---|---|---|
| id_pro | integer |
None. |
|
| shortname | string |
None. |
|
| Barcode | string |
None. |
|
| vendorcode1 | string |
None. |
|
| vendorcode2 | string |
None. |
|
| vendorcode3 | string |
None. |
|
| vendor_store_code | string |
None. |
|
| made_in | string |
None. |
|
| short_description | string |
None. |
|
| tags | string |
None. |
|
| price | decimal number |
None. |
|
| low_price | decimal number |
None. |
|
| minimem_qty | integer |
None. |
|
| quantity_step | integer |
None. |
|
| currency_id | integer |
None. |
|
| exchang | decimal number |
None. |
|
| tax | integer |
None. |
|
| tax_included_prices | integer |
None. |
|
| total_allowed_quantity | integer |
None. |
|
| main_category | integer |
None. |
|
| size | decimal number |
None. |
|
| sub_category | integer |
None. |
|
| volume_CL | decimal number |
None. |
|
| volume_ozn | decimal number |
None. |
|
| psc_box | decimal number |
None. |
|
| box_weight | decimal number |
None. |
|
| box_pallet | decimal number |
None. |
|
| box_long | decimal number |
None. |
|
| box_high | decimal number |
None. |
|
| box_width | decimal number |
None. |
|
| Led_time | integer |
None. |
|
| delivery_note | string |
None. |
|
| website | string |
None. |
|
| video_link | string |
None. |
|
| guarantee_period | integer |
None. |
|
| warranty_period | integer |
None. |
|
| main_image | string |
None. |
|
| user_id | integer |
None. |
|
| date_in | date |
None. |
|
| date_update | date |
None. |
|
| lan1_shortname | string |
None. |
|
| lan2_shortname | string |
None. |
|
| lan3_shortname | string |
None. |
|
| lan4_shortname | string |
None. |
|
| lan5_shortname | string |
None. |
|
| lan1_description | string |
None. |
|
| lan2_description | string |
None. |
|
| lan3_description | string |
None. |
|
| lan4_description | string |
None. |
|
| lan5_description | string |
None. |
|
| is_offer | integer |
None. |
|
| price_offer | integer |
None. |
|
| father | integer |
None. |
|
| brand | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id_pro": 1,
"shortname": "sample string 2",
"Barcode": "sample string 3",
"vendorcode1": "sample string 4",
"vendorcode2": "sample string 5",
"vendorcode3": "sample string 6",
"vendor_store_code": "sample string 7",
"made_in": "sample string 8",
"short_description": "sample string 9",
"tags": "sample string 10",
"price": 11.1,
"low_price": 12.1,
"minimem_qty": 13,
"quantity_step": 14,
"currency_id": 15,
"exchang": 16.1,
"tax": 17,
"tax_included_prices": 18,
"total_allowed_quantity": 19,
"main_category": 20,
"size": 21.1,
"sub_category": 22,
"volume_CL": 23.1,
"volume_ozn": 24.1,
"psc_box": 25.1,
"box_weight": 26.1,
"box_pallet": 27.1,
"box_long": 28.1,
"box_high": 29.1,
"box_width": 30.1,
"Led_time": 31,
"delivery_note": "sample string 32",
"website": "sample string 33",
"video_link": "sample string 34",
"guarantee_period": 35,
"warranty_period": 36,
"main_image": "sample string 37",
"user_id": 38,
"date_in": "2025-12-16T07:15:01.3321769+03:00",
"date_update": "2025-12-16T07:15:01.3321769+03:00",
"lan1_shortname": "sample string 41",
"lan2_shortname": "sample string 42",
"lan3_shortname": "sample string 43",
"lan4_shortname": "sample string 44",
"lan5_shortname": "sample string 45",
"lan1_description": "sample string 46",
"lan2_description": "sample string 47",
"lan3_description": "sample string 48",
"lan4_description": "sample string 49",
"lan5_description": "sample string 50",
"is_offer": 51,
"price_offer": 52,
"father": 53,
"brand": 54
}
text/xml
Sample:
<Products xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zad_api"> <Barcode>sample string 3</Barcode> <Led_time>31</Led_time> <box_high>29.1</box_high> <box_long>28.1</box_long> <box_pallet>27.1</box_pallet> <box_weight>26.1</box_weight> <box_width>30.1</box_width> <brand>54</brand> <currency_id>15</currency_id> <date_in>2025-12-16T07:15:01.3321769+03:00</date_in> <date_update>2025-12-16T07:15:01.3321769+03:00</date_update> <delivery_note>sample string 32</delivery_note> <exchang>16.1</exchang> <father>53</father> <guarantee_period>35</guarantee_period> <id_pro>1</id_pro> <is_offer>51</is_offer> <lan1_description>sample string 46</lan1_description> <lan1_shortname>sample string 41</lan1_shortname> <lan2_description>sample string 47</lan2_description> <lan2_shortname>sample string 42</lan2_shortname> <lan3_description>sample string 48</lan3_description> <lan3_shortname>sample string 43</lan3_shortname> <lan4_description>sample string 49</lan4_description> <lan4_shortname>sample string 44</lan4_shortname> <lan5_description>sample string 50</lan5_description> <lan5_shortname>sample string 45</lan5_shortname> <low_price>12.1</low_price> <made_in>sample string 8</made_in> <main_category>20</main_category> <main_image>sample string 37</main_image> <minimem_qty>13</minimem_qty> <price>11.1</price> <price_offer>52</price_offer> <psc_box>25.1</psc_box> <quantity_step>14</quantity_step> <short_description>sample string 9</short_description> <shortname>sample string 2</shortname> <size>21.1</size> <sub_category>22</sub_category> <tags>sample string 10</tags> <tax>17</tax> <tax_included_prices>18</tax_included_prices> <total_allowed_quantity>19</total_allowed_quantity> <user_id>38</user_id> <vendor_store_code>sample string 7</vendor_store_code> <vendorcode1>sample string 4</vendorcode1> <vendorcode2>sample string 5</vendorcode2> <vendorcode3>sample string 6</vendorcode3> <video_link>sample string 34</video_link> <volume_CL>23.1</volume_CL> <volume_ozn>24.1</volume_ozn> <warranty_period>36</warranty_period> <website>sample string 33</website> </Products>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
{"data" [],"rowcount": 1,"status": true,"msg_error": ""}
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/Zad_api"> <data i:nil="true" /> <msg_error>sample string 3</msg_error> <rowcount>1</rowcount> <status>true</status> </outdata>