Create New Order V2
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
POST
/api/v2/create_new_order_v2
Last modified:2025-04-13 23:17:33
Key | Value | Description | Type |
---|---|---|---|
Accept-Language | en | Language preference: ar or en . | string |
apikey | 5f28583f26a1a | API key for authentication; contact support to obtain. Required | string |
apiconnection | appmobile | Connection type; contact support to obtain. Required | string |
secure-business-key | 4765066450c0bd66325.48403130 | Business-specific key; contact support for valid values. Required | string |
userToken | 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9 | User token from authentication API. Required (Get user token from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login ) | string |
Key | Value | Description | Type |
---|---|---|---|
user_id | 10 | User ID from authentication API. Required | integer |
items | [{...}, {...}] | Array of item objects. Required | array[object] |
items[0].id | 22363 | Product ID for first item. Required | integer |
items[0].unit_id | 45 | Unit ID for first item. | integer |
items[0].price | 50 | Price for first item. Required | integer |
items[0].qty | 2 | Quantity for first item. Required | integer |
items[0].tax | 5 | Tax for first item. | integer |
items[0].sort | 10 | Sort order for first item. | integer |
items[0].description | This is description | Description for first item. | string |
items[1].id | 22359 | Product ID for second item. Required | integer |
items[1].unit_id | 50 | Unit ID for second item. | integer |
items[1].price | 30 | Price for second item. Required | integer |
items[1].qty | 1 | Quantity for second item. Required | integer |
delivery_date | 2025-02-10 | Delivery date for the order. | string |
user_email | test@example.com | User’s email. | string |
user_phone | 123456789 | User’s phone number. | string |
user_first_name | John | User’s first name. | string |
user_last_name | Doe | User’s last name. | string |
comment | Please deliver fast. | Optional order comment. | string |
description | This is description. | Optional order description. | string |
address | 123 Main St | Delivery address. Required | string |
longitude | 24.774265 | Longitude for delivery location. | string |
latitude | 46.738586 | Latitude for delivery location. | string |
country | 7 | Country ID. | integer |
city | 6 | City ID. | integer |
district | 5 | District ID. | integer |
status | 1 | Order status ID. | integer |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.testecommerce.vodoerp.com/api/v2/create_new_order_v2' \
--header 'Accept-Language: en' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 4765066450c0bd66325.48403130' \
--header 'userToken: 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": 10, // Get user id from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login
"items": [
{ "id": 22363, "unit_id": 45, "price": 50, "qty": 2, "tax": 5, "sort": 10, "description": "This is description"},
{ "id": 22359, "unit_id": 50, "price": 30, "qty": 1 }
], // Get products from https://www.testecommerce.vodoerp.com/api/v1/ecomm_products or https://www.ecommerce.vodoglobal.com/api/v1/ecomm_products
"delivery_date": "2025-02-10",
"user_email": "test@example.com",
"user_phone": "123456789",
"user_first_name": "John",
"user_last_name": "Doe",
"comment": "Please deliver fast.",
"description": "This is description.",
"address": "123 Main St",
"longitude": "24.774265",
"latitude": "46.738586",
"country": 7,
"city": 6,
"district": 5,
"status": 1
}'
Response Response Example
{}
Request
Header Params
Accept-Language
string
required
Example:
en
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:
4765066450c0bd66325.48403130
userToken
string
required
https://testaccounts.vodoerp.com/api/login
or
https://accounts.vodoerp.com/api/login
Example:
09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9
Body Params application/json