Add New Inventory
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
POST
/api/v1/inventories
Last modified:2025-05-08 17:32:44
Key | Value | Description |
---|---|---|
apikey | 5f28583f26a1a | API key for authentication; contact support to obtain. Required |
apiconnection | appmobile | Connection type; contact support to obtain. Required |
secure-business-key | 140356399db2b2c32f0.25237063 | Business-specific key; contact support for valid values. Required |
lang | ar or en | Language preference: ar for Arabic, en for English. |
Key | Value | Description |
---|---|---|
name | Test Inventory 18eff | Inventory name. |
category_id | 8 | Category ID for the inventory. Required |
type | 1 | Type: 1 (Master) or 2 (Branch). Required |
country_id | 55 | Country ID for location. |
city_id | 55 | City ID for location. |
address | HFQM+872, Shaibet... | Full address of the inventory. |
longitude | 30.5882724 | Longitude coordinate. |
latitude | 31.4831525 | Latitude coordinate. |
keeper_id[0] | 671 | ID of the first keeper. Required |
keeper_id[1] | 672 | ID of the second keeper. Required |
product_type[0] | raw material | Product type (e.g., raw material , shop ). |
product_type[1] | representative | Additional product type. |
pos_category_id | 1 | Point of sale category ID. |
width | 50 | Width of the inventory space. |
length | 50 | Length of the inventory space. |
height | 50 | Height of the inventory space. |
stock_check | 1 | Stock check flag: 0 or 1 . |
parent_id | 6 | Parent inventory ID (optional). Required |
vendor_id | (empty) | Vendor ID (optional). |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.testecommerce.vodoerp.com/api/v1/inventories' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 140356399db2b2c32f0.25237063' \
--header 'Accept-Language: ar' \
--form 'name="Test Inventory 18eff"' \
--form 'category_id="8"' \
--form 'type="1"' \
--form 'country_id="55"' \
--form 'city_id="55"' \
--form 'address="HFQM+872, Shaibet an Nakareyah, Zagazig 2, Al-Sharqia Governorate 7120001, Egypt"' \
--form 'longitude="30.5882724"' \
--form 'latitude="31.4831525"' \
--form 'keeper_id[0]="671"' \
--form 'keeper_id[1]="672"' \
--form 'product_type[0]="raw material"' \
--form 'product_type[1]="representative"' \
--form 'pos_category_id="1"' \
--form 'width="50"' \
--form 'length="50"' \
--form 'height="50"' \
--form 'stock_check="1"' \
--form 'parent_id="6"' \
--form 'vendor_id=""' \
--form 'inv_pos="1"'
Response Response Example
{}
Request
Header Params
apikey
stringÂ
required
Example:
5f28583f26a1a
apiconnection
stringÂ
required
Example:
appmobile
secure-business-key
stringÂ
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
140356399db2b2c32f0.25237063
Accept-Language
stringÂ
required
Example:
ar
Body Params multipart/form-data
name
stringÂ
required
Example:
Test Inventory 18eff
category_id
stringÂ
optional
Example:
8
type
stringÂ
required
Example:
1
country_id
stringÂ
required
Example:
55
city_id
stringÂ
required
Example:
55
address
stringÂ
required
Example:
HFQM+872, Shaibet an Nakareyah, Zagazig 2, Al-Sharqia Governorate 7120001, Egypt
longitude
stringÂ
required
Example:
30.5882724
latitude
stringÂ
required
Example:
31.4831525
keeper_id[0]
stringÂ
optional
Example:
671
keeper_id[1]
stringÂ
optional
Example:
672
product_type[0]
stringÂ
required
Example:
raw material
product_type[1]
stringÂ
required
Example:
representative
pos_category_id
stringÂ
optional
Example:
1
width
stringÂ
required
Example:
50
length
stringÂ
required
Example:
50
height
stringÂ
required
Example:
50
stock_check
stringÂ
optional
Example:
1
parent_id
stringÂ
optional
Example:
6
vendor_id
stringÂ
required
inv_pos
stringÂ
required
Example:
1