cURL
curl -X PATCH "https://api.easy-orders.net/api/partners-apps/v1/shipping/settings" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"country": "EG"
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/shipping/settings', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
enabled: true,
country: 'EG',
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { shipping_settings } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"enabled": true,
"country": "EG"
}`)
req, err := http.NewRequest("PATCH", "https://api.easy-orders.net/api/partners-apps/v1/shipping/settings", 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["shipping_settings"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/shipping/settings');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'country' => 'EG',
]),
]);
$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']);
}
$shippingSettings = $answer['shipping_settings'];import os
import requests
response = requests.patch(
"https://api.easy-orders.net/api/partners-apps/v1/shipping/settings",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
json={
"enabled": True,
"country": "EG",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
shipping_settings = answer["shipping_settings"]{
"shipping_settings": {
"enabled": true,
"country": {
"code": "EG",
"name_ar": "مصر",
"name_en": "Egypt"
},
"cost_type": "per_area",
"fixed_cost": 0
}
}{
"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
Update shipping settings
Scope: write_shipping_areas
Turns shipping on or off, and changes the country. Only the fields you
send change; null is refused. The cost type is the merchant’s
choice, read only.
Changing the country replaces every shipping area with the new
country’s governorates: shown, and costing zero (or the fixed cost
when the cost type is fixed). In Egypt, Cairo, Giza and Alexandria
come first. Sending the same country changes nothing. A store with no
settings yet must send country.
Counts toward the daily shipping limit.
PATCH
/
shipping
/
settings
cURL
curl -X PATCH "https://api.easy-orders.net/api/partners-apps/v1/shipping/settings" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"country": "EG"
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/shipping/settings', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
enabled: true,
country: 'EG',
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { shipping_settings } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"enabled": true,
"country": "EG"
}`)
req, err := http.NewRequest("PATCH", "https://api.easy-orders.net/api/partners-apps/v1/shipping/settings", 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["shipping_settings"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/shipping/settings');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'country' => 'EG',
]),
]);
$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']);
}
$shippingSettings = $answer['shipping_settings'];import os
import requests
response = requests.patch(
"https://api.easy-orders.net/api/partners-apps/v1/shipping/settings",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
json={
"enabled": True,
"country": "EG",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
shipping_settings = answer["shipping_settings"]{
"shipping_settings": {
"enabled": true,
"country": {
"code": "EG",
"name_ar": "مصر",
"name_en": "Egypt"
},
"cost_type": "per_area",
"fixed_cost": 0
}
}{
"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.
Body
application/json
The ISO 3166-1 alpha-2 code of a country from List countries.
Pattern:
^[A-Za-z]{2}$