Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Headers

Idempotency-Key
string

A unique key (up to 255 printable ASCII characters). The same key from your app within 24 hours answers the first result again, with Idempotent-Replayed: true, instead of creating twice.

Maximum string length: 255

Body

application/json
full_name
string
required
Maximum string length: 255
phone
string
required

7 to 15 digits.

address
string
required
Maximum string length: 1000
payment_method
string
required

The payment method's key, e.g. cod.

Pattern: ^[a-z0-9_-]{2,50}$
items
object[]
required
Required array length: 1 - 100 elements
phone_alt
string
email
string<email>
country
string
Maximum string length: 255
city
string

The governorate.

Maximum string length: 255
sa_national_address
string
Maximum string length: 255
shipping_cost
number

The store's shipping cost when left out.

Required range: 0 <= x <= 100000000
total_cost
number

The order's total. Cannot be sent with coupon_codes.

Required range: 0 <= x <= 100000000
coupon_codes
string[]
Maximum array length: 10
Maximum string length: 64
note
string
Maximum string length: 2000
ref
string
Maximum string length: 255
utm_source
string
Maximum string length: 255
utm_campaign
string
Maximum string length: 255
metadata
object

Up to 4096 bytes. Reserved keys are refused.

Response

The order created.

order
object
required