Turuq Onboarding

Create Normal Orders

Request

Method: POST

Endpoint: orders/integration

Content-Type: application/json

Request Body

Field NameRequiredTypeDescription
customerYesobjectAn object containing the customer's details as per the Customer Details table.
productsYesarray of objectsAn array of product objects, each structured as per the Product Details table.
notesNostringAny additional notes or special instructions for the order.
totalYesnumberThe total price to be collected for the order (including shipping) - COD.
integratorIdNonumberYour own reference number for this order (a positive whole number). It's returned in order listings and printed on the waybill as "Reference ID". Must be unique across all of your integration orders, including orders imported from Shopify; a reused number is rejected with 409 Conflict.

For prepaid orders, send a total of 0.

Customer Details

Field NameRequiredTypeDescription
first_nameYesstringThe customer's first name.
last_nameYesstringThe customer's last name.
phoneYesstringThe customer's phone number.
addressYesstringThe customer's full address.
governorateYesstringThe customer's governorate (check Governorate Details list).

Valid Governorate Syntaxes

The following values are valid governorate strings in the system:

  • 6th of October
  • Alexandria
  • Aswan
  • Asyut
  • Beheira
  • Beni Suef
  • Cairo
  • Dakahlia
  • Damietta
  • Fayed
  • Fayoum
  • Gharbeya
  • Giza
  • Helwan
  • Ismailia
  • Kafr El Sheikh
  • Luxor
  • Matrouh
  • Menoufia
  • Minya
  • New Valley
  • North Sinai
  • Port Said
  • Qalyubia
  • Qena
  • Red Sea
  • Sharkeya
  • Sohag
  • South Sinai
  • Suez

Product Details

Field NameRequiredTypeDescription
idYesstringThe unique identifier for the product.
nameYesstringThe name of the product.
quantityYesnumberThe quantity of the product ordered (must be at least 1).
priceYesstringThe price of a single unit of the product in EGP.
discountNostringThe discount applied to the product, if any, in EGP.
variantYesstringThe specific variant of the product (e.g., color and/or size).
variant_idNostringThe unique identifier for the product variant.
weightYesnumberThe weight of a single unit of the product, in KG.
propertiesNostring[]An array of additional properties for the product.

Example Payload

{
  "customer": {
    "first_name": "Ahmed",
    "last_name": "Kamal",
    "phone": "01012345678",
    "address": "15 El-Nasr St., Maadi",
    "governorate": "Cairo"
  },
  "products": [
    {
      "id": "prod_abc123",
      "name": "Smartwatch X Pro",
      "quantity": 1,
      "price": "2500.00",
      "discount": "100.00",
      "variant": "Black",
      "variant_id": "var_xyz789",
      "weight": 0.25,
      "properties": ["Water Resistant", "Heart Rate Monitor"]
    },
    {
      "id": "prod_def456",
      "name": "Wireless Earbuds",
      "quantity": 2,
      "price": "750.00",
      "variant": "White",
      "weight": 0.1,
      "properties": []
    }
  ],
  "notes": "Please ensure safe packaging. Customer prefers evening delivery.",
  "total": 3300.00,
  "integratorId": 1042
}

Response

✅ 201 Created

The order was successfully created.

Response Body

{
  "OID": "1002540015842"
}

❌ 400 Bad Request

The request was invalid (e.g., missing required fields).

Example Error (Validation)

{
  "error": "Provided order doesn't satisfy the order schema",
  "issues": [ /* array of validation issue objects */ ]
}

Example Error (Invalid integratorId)

A value that isn't a positive whole number (for example "1042" as text, 10.5, 0 or -3) fails schema validation.

{
  "error": "Provided order doesn't satisfy the order schema",
  "issues": [ /* array of validation issue objects */ ]
}

Example Error (Client Not Found)

{
  "error": "Client not found"
}

Example Error (Creation Failure)

{
  "error": "Failed to create new order"
}

❌ 409 Conflict

This integratorId is already used by one of your integration orders (including orders imported from Shopify). No new order was created.

{
  "error": "An order with this integratorId already exists."
}

❌ 500 Internal Server Error

{
  "error": "Internal Server Error"
}