Skip to main content

Create Order

POST /api/v1/orders

Create an order and send a WhatsApp confirmation message to the customer.

Request Body

{
"externalOrderId": "EO-12345",
"customerName": "Ahmed Mohamed",
"customerPhone": "201234567890",
"customerAddress": "15 Tahrir St, Cairo",
"subtotal": 150,
"shippingCost": 25,
"totalCost": 175,
"currency": "EGP",
"note": "Gift wrap",
"items": [
{
"productName": "iPhone Case",
"variantName": "Black / Large",
"quantity": 2,
"unitPrice": 75,
"totalPrice": 150
}
]
}

Body Parameters

FieldTypeRequiredDescription
externalOrderIdstringYesYour unique order identifier
customerNamestringYesCustomer's full name
customerPhonestringYesCustomer's phone number (with country code, no +)
customerAddressstringNoDelivery address
subtotalnumberYesSubtotal before shipping
shippingCostnumberYesShipping cost
totalCostnumberYesTotal order cost
currencystringYesCurrency code (e.g., EGP)
notestringNoAdditional notes
itemsarrayYesOrder items (see below)

Item Fields

FieldTypeRequiredDescription
productNamestringYesProduct name
variantNamestringNoVariant description
quantitynumberYesQuantity ordered
unitPricenumberYesPrice per unit
totalPricenumberYesTotal price for this item

Headers

HeaderRequiredDescription
X-API-KeyYesYour API key (starts with ek_)
Content-TypeYesapplication/json
Accept-LanguageNoen (default) or ar

Response

201 — Order created and WhatsApp confirmation sent

{
"id": "ord_abc123",
"externalOrderId": "EO-12345",
"customerName": "Ahmed Mohamed",
"customerPhone": "201234567890",
"customerAddress": "15 Tahrir St, Cairo",
"subtotal": 150,
"shippingCost": 25,
"totalCost": 175,
"currency": "EGP",
"status": "pending",
"customerAction": "approved",
"deliveryStatus": "sent",
"items": [
{
"id": "item_xyz789",
"productName": "iPhone Case",
"variantName": "Black / Large",
"quantity": 2,
"unitPrice": 75,
"totalPrice": 150
}
],
"createdAt": "2026-04-20T10:23:52.772Z",
"updatedAt": "2026-04-20T10:23:52.772Z"
}

Try It

POSThttps://api.easyconfirm.net/api/v1/orders

Example

curl -X POST https://api.easyconfirm.net/api/v1/orders \
-H "Content-Type: application/json" \
-H "X-API-Key: ek_your_api_key_here" \
-d '{
"externalOrderId": "EO-12345",
"customerName": "Ahmed Mohamed",
"customerPhone": "201234567890",
"customerAddress": "15 Tahrir St, Cairo",
"subtotal": 150,
"shippingCost": 25,
"totalCost": 175,
"currency": "EGP",
"items": [
{
"productName": "iPhone Case",
"variantName": "Black / Large",
"quantity": 2,
"unitPrice": 75,
"totalPrice": 150
}
]
}'