cURL
curl -X DELETE "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
if (!response.ok) {
const { error } = await response.json()
throw new Error(`${error.code}: ${error.message}`)
}package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
if res.StatusCode >= 300 {
var answer map[string]any
_ = json.NewDecoder(res.Body).Decode(&answer)
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(res.Status)
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
],
]);
$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']);
}import os
import requests
response = requests.delete(
"https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
if not response.ok:
error = response.json()["error"]
raise RuntimeError(f"{error['code']}: {error['message']}"){
"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": "not_found",
"message": "Resource not found"
}
}{
"error": {
"code": "area_not_custom",
"message": "Only an area added by hand can be deleted: hide a country's area instead"
}
}{
"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
Delete an area
Scope: write_shipping_areas
Deletes an area added by hand (custom: true). A country’s area
answers 409 area_not_custom: hide it instead.
Counts toward the daily shipping limit.
DELETE
/
shipping
/
areas
/
{id}
cURL
curl -X DELETE "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
if (!response.ok) {
const { error } = await response.json()
throw new Error(`${error.code}: ${error.message}`)
}package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
if res.StatusCode >= 300 {
var answer map[string]any
_ = json.NewDecoder(res.Body).Decode(&answer)
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(res.Status)
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
],
]);
$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']);
}import os
import requests
response = requests.delete(
"https://api.easy-orders.net/api/partners-apps/v1/shipping/areas/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a50",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
if not response.ok:
error = response.json()["error"]
raise RuntimeError(f"{error['code']}: {error['message']}"){
"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": "not_found",
"message": "Resource not found"
}
}{
"error": {
"code": "area_not_custom",
"message": "Only an area added by hand can be deleted: hide a country's area instead"
}
}{
"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.
Response
Deleted.