cURL
curl -X PUT "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60",
"5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50"
]
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
ids: [
'7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60',
'5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50',
],
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { areas } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"ids": [
"7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60",
"5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50"
]
}`)
req, err := http.NewRequest("PUT", "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var answer map[string]any
if err := json.NewDecoder(res.Body).Decode(&answer); err != nil {
panic(err)
}
if res.StatusCode >= 300 {
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(answer["areas"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60',
'5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50',
],
]),
]);
$answer = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status >= 300) {
throw new RuntimeException($answer['error']['code'] . ': ' . $answer['error']['message']);
}
$areas = $answer['areas'];import os
import requests
response = requests.put(
"https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
json={
"ids": [
"7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60",
"5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50",
],
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
areas = answer["areas"]{
"areas": [
{
"id": "5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50",
"name": "Cairo",
"cost": 65,
"hidden": false,
"custom": false
},
{
"id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c60",
"name": "Giza",
"cost": 65,
"hidden": false,
"custom": false
},
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50",
"name": "New Cairo",
"cost": 70,
"hidden": false,
"custom": true
}
]
}{
"error": {
"code": "invalid_request",
"message": "Invalid JSON body: unknown field"
}
}{
"error": {
"code": "unauthenticated",
"message": "Missing or invalid access token"
}
}{
"error": {
"code": "payment_required",
"message": "The app's subscription on this store is suspended"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This request requires the scope: read_orders",
"details": {
"required_scope": "read_orders"
}
}
}{
"error": {
"code": "validation_failed",
"message": "Validation failed",
"details": {
"fields": [
{
"field": "items[0].quantity",
"rule": "between",
"param": "1,10000"
}
]
}
}
}{
"error": {
"code": "daily_limit_exceeded",
"message": "An app may change a store's shipping 3 times a day (Cairo time): try again after resets_at",
"details": {
"limit": 3,
"resets_at": "2026-12-04T22:00:00Z"
}
}
}{
"error": {
"code": "service_unavailable",
"message": "Shipping is unavailable right now, try again later"
}
}Shipping
Reorder areas
Scope: write_shipping_areas
Sets the order the shopper sees the areas in. ids must hold every
area of the store exactly once, or the answer is 422 with the rule
all_areas.
Counts toward the daily shipping limit.
PUT
/
shipping
/
areas
/
order
cURL
curl -X PUT "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60",
"5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50"
]
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
ids: [
'7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60',
'5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50',
],
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { areas } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"ids": [
"7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60",
"5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50"
]
}`)
req, err := http.NewRequest("PUT", "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var answer map[string]any
if err := json.NewDecoder(res.Body).Decode(&answer); err != nil {
panic(err)
}
if res.StatusCode >= 300 {
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(answer["areas"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60',
'5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50',
],
]),
]);
$answer = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status >= 300) {
throw new RuntimeException($answer['error']['code'] . ': ' . $answer['error']['message']);
}
$areas = $answer['areas'];import os
import requests
response = requests.put(
"https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/order",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
json={
"ids": [
"7c4a1b2d-3e5f-4a6b-9c8d-1e2f3a4b5c60",
"5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50",
],
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
areas = answer["areas"]{
"areas": [
{
"id": "5a2e8f04-1c3b-4d7a-8e9f-0b1c2d3e4f50",
"name": "Cairo",
"cost": 65,
"hidden": false,
"custom": false
},
{
"id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c60",
"name": "Giza",
"cost": 65,
"hidden": false,
"custom": false
},
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50",
"name": "New Cairo",
"cost": 70,
"hidden": false,
"custom": true
}
]
}{
"error": {
"code": "invalid_request",
"message": "Invalid JSON body: unknown field"
}
}{
"error": {
"code": "unauthenticated",
"message": "Missing or invalid access token"
}
}{
"error": {
"code": "payment_required",
"message": "The app's subscription on this store is suspended"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This request requires the scope: read_orders",
"details": {
"required_scope": "read_orders"
}
}
}{
"error": {
"code": "validation_failed",
"message": "Validation failed",
"details": {
"fields": [
{
"field": "items[0].quantity",
"rule": "between",
"param": "1,10000"
}
]
}
}
}{
"error": {
"code": "daily_limit_exceeded",
"message": "An app may change a store's shipping 3 times a day (Cairo time): try again after resets_at",
"details": {
"limit": 3,
"resets_at": "2026-12-04T22:00:00Z"
}
}
}{
"error": {
"code": "service_unavailable",
"message": "Shipping is unavailable right now, try again later"
}
}Authorizations
An access token from the OAuth flow (eo_at_...). It lasts one hour;
refresh it with the refresh token. See Authentication.