POST api/Inventory?qty={qty}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
qty | boolean |
Default value is False |
Body Parameters
Collection of InventoryName | Description | Type | Additional information |
---|---|---|---|
main | Main |
None. |
|
id | integer |
None. |
|
id_inventory_category | integer |
None. |
|
code | string |
None. |
|
name | string |
None. |
|
description | string |
None. |
|
description_html | string |
None. |
|
rating | decimal number |
None. |
|
exchange_rate | decimal number |
None. |
|
main_image | string |
None. |
|
proportion_sec_pri | decimal number |
None. |
|
proportion_ter_pri | decimal number |
None. |
|
tags | string |
None. |
|
id_server | integer |
None. |
|
locked | boolean |
None. |
|
active | boolean |
None. |
|
is_promo | boolean |
None. |
|
allways_available | boolean |
None. |
|
multi_property | boolean |
None. |
|
allow_price_cero | boolean |
None. |
|
imagesList | Collection of InventoryImages |
None. |
|
inventoryQtyPriceList | Collection of InventoryQty |
None. |
|
InventoryPrices | Collection of InventoryPrices |
None. |
|
InventoryFavorites | Collection of FavoritesClass |
None. |
|
InventoryCatComplements | Collection of CatComplementsClass |
None. |
|
InventoryUnits | Collection of inventory_units |
None. |
|
Inventory_atributes | Collection of inventory_attributes |
None. |
Request Formats
application/json, text/json
Sample:
[ { "main": { "version": "sample string 1", "deviceId": "sample string 2" }, "id": 1, "id_inventory_category": 2, "code": "sample string 3", "name": "sample string 4", "description": "sample string 5", "description_html": "sample string 6", "rating": 7.1, "exchange_rate": 8.1, "main_image": "sample string 9", "proportion_sec_pri": 10.1, "proportion_ter_pri": 11.1, "tags": "sample string 12", "id_server": 13, "locked": true, "active": true, "is_promo": true, "allways_available": true, "multi_property": true, "allow_price_cero": true, "imagesList": [ { "id": 1, "image_str": "sample string 2", "id_property": 3, "unit": 4, "id_tabla_origen_1": 5, "id_tabla_origen_2": 6 }, { "id": 1, "image_str": "sample string 2", "id_property": 3, "unit": 4, "id_tabla_origen_1": 5, "id_tabla_origen_2": 6 } ], "inventoryQtyPriceList": [ { "unit": 1, "str_name": "sample string 2", "id_property": 3, "qty": 4.1, "image_str": "sample string 5", "property1": "sample string 6", "property2": "sample string 7", "id_unique": 8, "id_tabla_origen_1": 9, "id_tabla_origen_2": 10 }, { "unit": 1, "str_name": "sample string 2", "id_property": 3, "qty": 4.1, "image_str": "sample string 5", "property1": "sample string 6", "property2": "sample string 7", "id_unique": 8, "id_tabla_origen_1": 9, "id_tabla_origen_2": 10 } ], "InventoryPrices": [ { "id_price_list": 1, "unit": 2, "id_property": 3, "str_name": "sample string 4", "regular_price": 5.1, "regular_price_with_tax": 6.1, "discount_price": 7.1, "price_with_tax": 8.1, "id_sucursal_type": 9 }, { "id_price_list": 1, "unit": 2, "id_property": 3, "str_name": "sample string 4", "regular_price": 5.1, "regular_price_with_tax": 6.1, "discount_price": 7.1, "price_with_tax": 8.1, "id_sucursal_type": 9 } ], "InventoryFavorites": [ { "id": 1, "id_client": 2, "id_saler": 3, "id_inventory": 4, "code": "sample string 5", "name": "sample string 6", "unit_name": "sample string 7", "id_property": 8, "unit": 9, "last_price": 10.1 }, { "id": 1, "id_client": 2, "id_saler": 3, "id_inventory": 4, "code": "sample string 5", "name": "sample string 6", "unit_name": "sample string 7", "id_property": 8, "unit": 9, "last_price": 10.1 } ], "InventoryCatComplements": [ { "id": 1, "description": "sample string 2", "max_value": 3, "min_value": 4, "required": true, "id_server": 6, "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, "description": "sample string 2", "max_value": 3, "min_value": 4, "required": true, "id_server": 6, "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 } ] } ], "InventoryUnits": [ { "str_name": "sample string 1", "id_unique": 2, "str_image": "sample string 3", "has_properties": true }, { "str_name": "sample string 1", "id_unique": 2, "str_image": "sample string 3", "has_properties": true } ], "Inventory_atributes": [ { "str_name": "sample string 1", "int_value": 2, "list_name": "sample string 3", "id_list_server": 4, "id_unique": 5, "is_property": true }, { "str_name": "sample string 1", "int_value": 2, "list_name": "sample string 3", "id_list_server": 4, "id_unique": 5, "is_property": true } ] }, { "main": { "version": "sample string 1", "deviceId": "sample string 2" }, "id": 1, "id_inventory_category": 2, "code": "sample string 3", "name": "sample string 4", "description": "sample string 5", "description_html": "sample string 6", "rating": 7.1, "exchange_rate": 8.1, "main_image": "sample string 9", "proportion_sec_pri": 10.1, "proportion_ter_pri": 11.1, "tags": "sample string 12", "id_server": 13, "locked": true, "active": true, "is_promo": true, "allways_available": true, "multi_property": true, "allow_price_cero": true, "imagesList": [ { "id": 1, "image_str": "sample string 2", "id_property": 3, "unit": 4, "id_tabla_origen_1": 5, "id_tabla_origen_2": 6 }, { "id": 1, "image_str": "sample string 2", "id_property": 3, "unit": 4, "id_tabla_origen_1": 5, "id_tabla_origen_2": 6 } ], "inventoryQtyPriceList": [ { "unit": 1, "str_name": "sample string 2", "id_property": 3, "qty": 4.1, "image_str": "sample string 5", "property1": "sample string 6", "property2": "sample string 7", "id_unique": 8, "id_tabla_origen_1": 9, "id_tabla_origen_2": 10 }, { "unit": 1, "str_name": "sample string 2", "id_property": 3, "qty": 4.1, "image_str": "sample string 5", "property1": "sample string 6", "property2": "sample string 7", "id_unique": 8, "id_tabla_origen_1": 9, "id_tabla_origen_2": 10 } ], "InventoryPrices": [ { "id_price_list": 1, "unit": 2, "id_property": 3, "str_name": "sample string 4", "regular_price": 5.1, "regular_price_with_tax": 6.1, "discount_price": 7.1, "price_with_tax": 8.1, "id_sucursal_type": 9 }, { "id_price_list": 1, "unit": 2, "id_property": 3, "str_name": "sample string 4", "regular_price": 5.1, "regular_price_with_tax": 6.1, "discount_price": 7.1, "price_with_tax": 8.1, "id_sucursal_type": 9 } ], "InventoryFavorites": [ { "id": 1, "id_client": 2, "id_saler": 3, "id_inventory": 4, "code": "sample string 5", "name": "sample string 6", "unit_name": "sample string 7", "id_property": 8, "unit": 9, "last_price": 10.1 }, { "id": 1, "id_client": 2, "id_saler": 3, "id_inventory": 4, "code": "sample string 5", "name": "sample string 6", "unit_name": "sample string 7", "id_property": 8, "unit": 9, "last_price": 10.1 } ], "InventoryCatComplements": [ { "id": 1, "description": "sample string 2", "max_value": 3, "min_value": 4, "required": true, "id_server": 6, "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, "description": "sample string 2", "max_value": 3, "min_value": 4, "required": true, "id_server": 6, "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 } ] } ], "InventoryUnits": [ { "str_name": "sample string 1", "id_unique": 2, "str_image": "sample string 3", "has_properties": true }, { "str_name": "sample string 1", "id_unique": 2, "str_image": "sample string 3", "has_properties": true } ], "Inventory_atributes": [ { "str_name": "sample string 1", "int_value": 2, "list_name": "sample string 3", "id_list_server": 4, "id_unique": 5, "is_property": true }, { "str_name": "sample string 1", "int_value": 2, "list_name": "sample string 3", "id_list_server": 4, "id_unique": 5, "is_property": true } ] } ]
application/xml, text/xml
Sample:
<ArrayOfInventory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models"> <Inventory> <InventoryCatComplements> <CatComplementsClass> <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> <description>sample string 2</description> <id>1</id> <id_server>6</id_server> <max_value>3</max_value> <min_value>4</min_value> <required>true</required> </CatComplementsClass> <CatComplementsClass> <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> <description>sample string 2</description> <id>1</id> <id_server>6</id_server> <max_value>3</max_value> <min_value>4</min_value> <required>true</required> </CatComplementsClass> </InventoryCatComplements> <InventoryFavorites> <FavoritesClass> <code>sample string 5</code> <id>1</id> <id_client>2</id_client> <id_inventory>4</id_inventory> <id_property>8</id_property> <id_saler>3</id_saler> <last_price>10.1</last_price> <name>sample string 6</name> <unit>9</unit> <unit_name>sample string 7</unit_name> </FavoritesClass> <FavoritesClass> <code>sample string 5</code> <id>1</id> <id_client>2</id_client> <id_inventory>4</id_inventory> <id_property>8</id_property> <id_saler>3</id_saler> <last_price>10.1</last_price> <name>sample string 6</name> <unit>9</unit> <unit_name>sample string 7</unit_name> </FavoritesClass> </InventoryFavorites> <InventoryPrices> <InventoryPrices> <discount_price>7.1</discount_price> <id_price_list>1</id_price_list> <id_property>3</id_property> <id_sucursal_type>9</id_sucursal_type> <price_with_tax>8.1</price_with_tax> <regular_price>5.1</regular_price> <regular_price_with_tax>6.1</regular_price_with_tax> <str_name>sample string 4</str_name> <unit>2</unit> </InventoryPrices> <InventoryPrices> <discount_price>7.1</discount_price> <id_price_list>1</id_price_list> <id_property>3</id_property> <id_sucursal_type>9</id_sucursal_type> <price_with_tax>8.1</price_with_tax> <regular_price>5.1</regular_price> <regular_price_with_tax>6.1</regular_price_with_tax> <str_name>sample string 4</str_name> <unit>2</unit> </InventoryPrices> </InventoryPrices> <InventoryUnits> <inventory_units> <has_properties>true</has_properties> <id_unique>2</id_unique> <str_image>sample string 3</str_image> <str_name>sample string 1</str_name> </inventory_units> <inventory_units> <has_properties>true</has_properties> <id_unique>2</id_unique> <str_image>sample string 3</str_image> <str_name>sample string 1</str_name> </inventory_units> </InventoryUnits> <Inventory_atributes> <inventory_attributes> <id_list_server>4</id_list_server> <id_unique>5</id_unique> <int_value>2</int_value> <is_property>true</is_property> <list_name>sample string 3</list_name> <str_name>sample string 1</str_name> </inventory_attributes> <inventory_attributes> <id_list_server>4</id_list_server> <id_unique>5</id_unique> <int_value>2</int_value> <is_property>true</is_property> <list_name>sample string 3</list_name> <str_name>sample string 1</str_name> </inventory_attributes> </Inventory_atributes> <active>true</active> <allow_price_cero>true</allow_price_cero> <allways_available>true</allways_available> <code>sample string 3</code> <description>sample string 5</description> <description_html>sample string 6</description_html> <exchange_rate>8.1</exchange_rate> <id>1</id> <id_inventory_category>2</id_inventory_category> <id_server>13</id_server> <imagesList> <InventoryImages> <id>1</id> <id_property>3</id_property> <id_tabla_origen_1>5</id_tabla_origen_1> <id_tabla_origen_2>6</id_tabla_origen_2> <image_str>sample string 2</image_str> <unit>4</unit> </InventoryImages> <InventoryImages> <id>1</id> <id_property>3</id_property> <id_tabla_origen_1>5</id_tabla_origen_1> <id_tabla_origen_2>6</id_tabla_origen_2> <image_str>sample string 2</image_str> <unit>4</unit> </InventoryImages> </imagesList> <inventoryQtyPriceList> <InventoryQty> <id_property>3</id_property> <id_tabla_origen_1>9</id_tabla_origen_1> <id_tabla_origen_2>10</id_tabla_origen_2> <id_unique>8</id_unique> <image_str>sample string 5</image_str> <property1>sample string 6</property1> <property2>sample string 7</property2> <qty>4.1</qty> <str_name>sample string 2</str_name> <unit>1</unit> </InventoryQty> <InventoryQty> <id_property>3</id_property> <id_tabla_origen_1>9</id_tabla_origen_1> <id_tabla_origen_2>10</id_tabla_origen_2> <id_unique>8</id_unique> <image_str>sample string 5</image_str> <property1>sample string 6</property1> <property2>sample string 7</property2> <qty>4.1</qty> <str_name>sample string 2</str_name> <unit>1</unit> </InventoryQty> </inventoryQtyPriceList> <is_promo>true</is_promo> <locked>true</locked> <main> <deviceId>sample string 2</deviceId> <version>sample string 1</version> </main> <main_image>sample string 9</main_image> <multi_property>true</multi_property> <name>sample string 4</name> <proportion_sec_pri>10.1</proportion_sec_pri> <proportion_ter_pri>11.1</proportion_ter_pri> <rating>7.1</rating> <tags>sample string 12</tags> </Inventory> <Inventory> <InventoryCatComplements> <CatComplementsClass> <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> <description>sample string 2</description> <id>1</id> <id_server>6</id_server> <max_value>3</max_value> <min_value>4</min_value> <required>true</required> </CatComplementsClass> <CatComplementsClass> <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> <description>sample string 2</description> <id>1</id> <id_server>6</id_server> <max_value>3</max_value> <min_value>4</min_value> <required>true</required> </CatComplementsClass> </InventoryCatComplements> <InventoryFavorites> <FavoritesClass> <code>sample string 5</code> <id>1</id> <id_client>2</id_client> <id_inventory>4</id_inventory> <id_property>8</id_property> <id_saler>3</id_saler> <last_price>10.1</last_price> <name>sample string 6</name> <unit>9</unit> <unit_name>sample string 7</unit_name> </FavoritesClass> <FavoritesClass> <code>sample string 5</code> <id>1</id> <id_client>2</id_client> <id_inventory>4</id_inventory> <id_property>8</id_property> <id_saler>3</id_saler> <last_price>10.1</last_price> <name>sample string 6</name> <unit>9</unit> <unit_name>sample string 7</unit_name> </FavoritesClass> </InventoryFavorites> <InventoryPrices> <InventoryPrices> <discount_price>7.1</discount_price> <id_price_list>1</id_price_list> <id_property>3</id_property> <id_sucursal_type>9</id_sucursal_type> <price_with_tax>8.1</price_with_tax> <regular_price>5.1</regular_price> <regular_price_with_tax>6.1</regular_price_with_tax> <str_name>sample string 4</str_name> <unit>2</unit> </InventoryPrices> <InventoryPrices> <discount_price>7.1</discount_price> <id_price_list>1</id_price_list> <id_property>3</id_property> <id_sucursal_type>9</id_sucursal_type> <price_with_tax>8.1</price_with_tax> <regular_price>5.1</regular_price> <regular_price_with_tax>6.1</regular_price_with_tax> <str_name>sample string 4</str_name> <unit>2</unit> </InventoryPrices> </InventoryPrices> <InventoryUnits> <inventory_units> <has_properties>true</has_properties> <id_unique>2</id_unique> <str_image>sample string 3</str_image> <str_name>sample string 1</str_name> </inventory_units> <inventory_units> <has_properties>true</has_properties> <id_unique>2</id_unique> <str_image>sample string 3</str_image> <str_name>sample string 1</str_name> </inventory_units> </InventoryUnits> <Inventory_atributes> <inventory_attributes> <id_list_server>4</id_list_server> <id_unique>5</id_unique> <int_value>2</int_value> <is_property>true</is_property> <list_name>sample string 3</list_name> <str_name>sample string 1</str_name> </inventory_attributes> <inventory_attributes> <id_list_server>4</id_list_server> <id_unique>5</id_unique> <int_value>2</int_value> <is_property>true</is_property> <list_name>sample string 3</list_name> <str_name>sample string 1</str_name> </inventory_attributes> </Inventory_atributes> <active>true</active> <allow_price_cero>true</allow_price_cero> <allways_available>true</allways_available> <code>sample string 3</code> <description>sample string 5</description> <description_html>sample string 6</description_html> <exchange_rate>8.1</exchange_rate> <id>1</id> <id_inventory_category>2</id_inventory_category> <id_server>13</id_server> <imagesList> <InventoryImages> <id>1</id> <id_property>3</id_property> <id_tabla_origen_1>5</id_tabla_origen_1> <id_tabla_origen_2>6</id_tabla_origen_2> <image_str>sample string 2</image_str> <unit>4</unit> </InventoryImages> <InventoryImages> <id>1</id> <id_property>3</id_property> <id_tabla_origen_1>5</id_tabla_origen_1> <id_tabla_origen_2>6</id_tabla_origen_2> <image_str>sample string 2</image_str> <unit>4</unit> </InventoryImages> </imagesList> <inventoryQtyPriceList> <InventoryQty> <id_property>3</id_property> <id_tabla_origen_1>9</id_tabla_origen_1> <id_tabla_origen_2>10</id_tabla_origen_2> <id_unique>8</id_unique> <image_str>sample string 5</image_str> <property1>sample string 6</property1> <property2>sample string 7</property2> <qty>4.1</qty> <str_name>sample string 2</str_name> <unit>1</unit> </InventoryQty> <InventoryQty> <id_property>3</id_property> <id_tabla_origen_1>9</id_tabla_origen_1> <id_tabla_origen_2>10</id_tabla_origen_2> <id_unique>8</id_unique> <image_str>sample string 5</image_str> <property1>sample string 6</property1> <property2>sample string 7</property2> <qty>4.1</qty> <str_name>sample string 2</str_name> <unit>1</unit> </InventoryQty> </inventoryQtyPriceList> <is_promo>true</is_promo> <locked>true</locked> <main> <deviceId>sample string 2</deviceId> <version>sample string 1</version> </main> <main_image>sample string 9</main_image> <multi_property>true</multi_property> <name>sample string 4</name> <proportion_sec_pri>10.1</proportion_sec_pri> <proportion_ter_pri>11.1</proportion_ter_pri> <rating>7.1</rating> <tags>sample string 12</tags> </Inventory> </ArrayOfInventory>
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. |