Create Normal Orders
Request
Method: POST
Endpoint: orders/integration
Content-Type: application/json
Request Body
| Field Name | Required | Type | Description |
|---|---|---|---|
customer | Yes | object | An object containing the customer's details as per the Customer Details table. |
products | Yes | array of objects | An array of product objects, each structured as per the Product Details table. |
notes | No | string | Any additional notes or special instructions for the order. |
total | Yes | number | The total price to be collected for the order (including shipping) - COD. |
For prepaid orders, send a total of 0.
Customer Details
| Field Name | Required | Type | Description |
|---|---|---|---|
first_name | Yes | string | The customer's first name. |
last_name | Yes | string | The customer's last name. |
phone | Yes | string | The customer's phone number. |
address | Yes | string | The customer's full address. |
governorate | Yes | string | The customer's governorate (check Governorate Details list). |
Valid Governorate Syntaxes
The following values are valid governorate strings in the system:
6th of OctoberAlexandriaAswanAsyutBeheiraBeni SuefCairoDakahliaDamiettaFayedFayoumGharbeyaGizaHelwanIsmailiaKafr El SheikhLuxorMatrouhMenoufiaMinyaNew ValleyNorth SinaiPort SaidQalyubiaQenaRed SeaSharkeyaSohagSouth SinaiSuez
Product Details
| Field Name | Required | Type | Description |
|---|---|---|---|
id | Yes | string | The unique identifier for the product. |
name | Yes | string | The name of the product. |
quantity | Yes | number | The quantity of the product ordered (must be at least 1). |
price | Yes | string | The price of a single unit of the product in EGP. |
discount | No | string | The discount applied to the product, if any, in EGP. |
variant | Yes | string | The specific variant of the product (e.g., color and/or size). |
variant_id | No | string | The unique identifier for the product variant. |
weight | Yes | number | The weight of a single unit of the product, in KG. |
properties | No | string[] | An array of additional properties for the product. |
Example Payload
Response
✅ 201 Created
The order was successfully created.
Response Body
❌ 400 Bad Request
The request was invalid (e.g., missing required fields).
