cURL
curl "https://api.easy-orders.net/api/partners-apps/v1/store" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/store', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { store } = jsonpackage main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.easy-orders.net/api/partners-apps/v1/store", 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()
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["store"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/store');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
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']);
}
$store = $answer['store'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/store",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
store = answer["store"]{
"store": {
"id": "8d2f6a1b-4c3e-4f5a-9b7c-0e1d2c3b4a50",
"name": "Nile Fashion",
"subdomain": "nilefashion",
"domain": "nilefashion.com",
"url": "https://www.nilefashion.com",
"currency": {
"name": "EGP",
"symbol": "ج.م"
},
"country": {
"code": "EG",
"name_en": "Egypt",
"name_ar": "مصر"
},
"timezone": "Africa/Cairo",
"language": "ar",
"plan": {
"key": "pro",
"name": "Pro"
},
"created_at": "2025-03-14T09:30:00Z"
}
}{
"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": "validation_failed",
"message": "Validation failed",
"details": {
"fields": [
{
"field": "items[0].quantity",
"rule": "between",
"param": "1,10000"
}
]
}
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Store
Get the store
Scope: read_store
The store your access token works on: its name, addresses, currency, country, timezone, storefront language and plan. It takes no parameters.
GET
/
store
cURL
curl "https://api.easy-orders.net/api/partners-apps/v1/store" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/store', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { store } = jsonpackage main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.easy-orders.net/api/partners-apps/v1/store", 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()
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["store"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/store');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
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']);
}
$store = $answer['store'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/store",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
store = answer["store"]{
"store": {
"id": "8d2f6a1b-4c3e-4f5a-9b7c-0e1d2c3b4a50",
"name": "Nile Fashion",
"subdomain": "nilefashion",
"domain": "nilefashion.com",
"url": "https://www.nilefashion.com",
"currency": {
"name": "EGP",
"symbol": "ج.م"
},
"country": {
"code": "EG",
"name_en": "Egypt",
"name_ar": "مصر"
},
"timezone": "Africa/Cairo",
"language": "ar",
"plan": {
"key": "pro",
"name": "Pro"
},
"created_at": "2025-03-14T09:30:00Z"
}
}{
"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": "validation_failed",
"message": "Validation failed",
"details": {
"fields": [
{
"field": "items[0].quantity",
"rule": "between",
"param": "1,10000"
}
]
}
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Authorizations
An access token from the OAuth flow (eo_at_...). It lasts one hour;
refresh it with the refresh token. See Authentication.