Create New Order
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
POST
/api/v2/create_new_order
Last modified:2025-04-13 15:12:46
Key | Value | Description | Type |
---|---|---|---|
secure-business-key | 140356399db2b2c32f0.25237063 | Business-specific key; contact support for valid values. Required | string |
lang | ar | Language preference: ar for Arabic, en for English. | string |
Key | Value | Description | Type |
---|---|---|---|
calendar | (empty) | Optional flag for calendar-related orders. | string |
kiosk | (empty) | Optional flag for kiosk orders. | string |
order_meals | (empty) | Optional flag for meal-specific orders. | string |
Key | Value | Description | Type |
---|---|---|---|
user_id | 40762 | User ID from authentication API. Required | integer |
product_id | [3245] | Array of product IDs from ecommerce API. Required | array[integer] |
employee_id | [587] | Array of employee IDs. | array[integer] |
item_qty | [6] | Array of quantities for products. | array[integer] |
check_in_date | 2025-12-01 | Check-in date for the order. | string |
check_out_date | 2025-12-05 | Check-out date for the order. | string |
first_meal_date | 2025-12-03 | First meal date for the order. | string |
user_email | abdelrahman.elazizy.1999@gmail.com | User’s email. | string |
user_phone | 010610645418 | User’s phone number. | string |
user_first_name | Abdoo | User’s first name. Required | string |
user_last_name | Ahmed | User’s last name. Required | string |
delivey_date | 2025-12-01 | Delivery date for the order. | string |
comment | Order for mosque event | Optional comment for the order. | string |
address | 123 Mosque St. | Delivery address. | string |
longitude | 25.276987 | Longitude for delivery location. | string |
latitude | 55.296249 | Latitude for delivery location. | string |
number_of_guests | 20 | Number of guests for the order. | integer |
nationality_of_guests | 21 | Nationality ID of guests. | integer |
mosque_id | 1 | Mosque ID for the order. | integer |
first_day_meals | [22280] | Array of meal IDs for the first day. | array[integer] |
last_day_meals | [22280] | Array of meal IDs for the last day. | array[integer] |
price_filters.attributes | 121 | Attribute ID for price filtering. | integer |
order_type | 121 | Order type ID. | integer |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.testecommerce.vodoerp.com/api/v2/create_new_order?calendar=&kiosk=&order_meals=' \
--header 'secure-business-key: 140356399db2b2c32f0.25237063' \
--header 'lang: ar' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": 40762, // Get user id from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login
"product_id": [3245], // Get products from https://www.testecommerce.vodoerp.com/api/v1/ecomm_products or https://www.ecommerce.vodoglobal.com/api/v1/ecomm_products
// "item_qty": [6],
"employee_id": [587]
// "check_in_date": "2025-12-01",
// "check_out_date": "2025-12-05",
// "first_meal_date": "2025-12-03",
// "user_email": "abdelrahman.elazizy.1999@gmail.com",
// "user_phone": "010610645418",
// "user_first_name": "Abdoo",
// "user_last_name": "Ahmed",
// "delivey_date": "2025-12-01",
// "comment": "Order for mosque event",
// "address": "123 Mosque St.",
// "longitude": 25.276987,
// "latitude": 55.296249,
// "number_of_guests": 20,
// "nationality_of_guests": 21,
// "mosque_id": 1,
// "first_day_meals": [22280],
// "last_day_meals": [22280],
// "price_filters": {
// "attributes": 121
// },
// "order_type": 121
}'
Response Response Example
{}
Request
Query Params
calendar
string
optional
kiosk
string
optional
order_meals
string
optional
Header Params
secure-business-key
string
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
140356399db2b2c32f0.25237063
lang
string
required
Example:
ar
Body Params application/json