cURL
curl -G "https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f" \
--data-urlencode "join=children" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const params = new URLSearchParams([
['join', 'children'],
])
const url = 'https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f?' + params
const response = await fetch(url, {
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 { category } = jsonpackage main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
query := url.Values{}
query.Add("join", "children")
req, err := http.NewRequest("GET", "https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f?"+query.Encode(), 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["category"])
}<?php
$query = http_build_query([
'join' => 'children',
]);
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f?' . $query);
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']);
}
$category = $answer['category'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
params=[
("join", "children"),
],
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
category = answer["category"]{
"category": {
"id": "3b4c5d6e-7f80-4a1b-9c2d-3e4f5a6b7c8d",
"name": "Men",
"slug": "men",
"thumb": "https://cdn.example.com/categories/men.jpg",
"parent_id": null,
"position": 10,
"hidden": false,
"show_in_header": true,
"created_at": "2026-11-20T08:00:00Z",
"updated_at": "2026-11-20T08:00:00Z",
"children": [
{
"id": "5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
"name": "T-Shirts",
"slug": "t-shirts",
"thumb": "https://cdn.example.com/categories/t-shirts.jpg",
"parent_id": "3b4c5d6e-7f80-4a1b-9c2d-3e4f5a6b7c8d",
"position": 0,
"hidden": false,
"show_in_header": true,
"created_at": "2026-12-04T09:00:00Z",
"updated_at": "2026-12-04T09:00:00Z",
"children": []
}
]
}
}{
"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": "join_too_large",
"message": "More than 100 subcategories to join: list them with filter=parent_id||$eq||<id> instead"
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Categories
Get a category
Scope: read_products
Reads one category.
join adds its subcategories as children, up to three levels deep:
children, children.children or children.children.children.
Subcategories come highest position first. One read joins at most
100 subcategories over all levels; more answers 422 join_too_large:
list them with filter=parent_id||$eq||<id> instead.
GET
/
categories
/
{id}
cURL
curl -G "https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f" \
--data-urlencode "join=children" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const params = new URLSearchParams([
['join', 'children'],
])
const url = 'https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f?' + params
const response = await fetch(url, {
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 { category } = jsonpackage main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
)
func main() {
query := url.Values{}
query.Add("join", "children")
req, err := http.NewRequest("GET", "https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f?"+query.Encode(), 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["category"])
}<?php
$query = http_build_query([
'join' => 'children',
]);
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f?' . $query);
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']);
}
$category = $answer['category'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/categories/5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
params=[
("join", "children"),
],
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
category = answer["category"]{
"category": {
"id": "3b4c5d6e-7f80-4a1b-9c2d-3e4f5a6b7c8d",
"name": "Men",
"slug": "men",
"thumb": "https://cdn.example.com/categories/men.jpg",
"parent_id": null,
"position": 10,
"hidden": false,
"show_in_header": true,
"created_at": "2026-11-20T08:00:00Z",
"updated_at": "2026-11-20T08:00:00Z",
"children": [
{
"id": "5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
"name": "T-Shirts",
"slug": "t-shirts",
"thumb": "https://cdn.example.com/categories/t-shirts.jpg",
"parent_id": "3b4c5d6e-7f80-4a1b-9c2d-3e4f5a6b7c8d",
"position": 0,
"hidden": false,
"show_in_header": true,
"created_at": "2026-12-04T09:00:00Z",
"updated_at": "2026-12-04T09:00:00Z",
"children": []
}
]
}
}{
"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": "join_too_large",
"message": "More than 100 subcategories to join: list them with filter=parent_id||$eq||<id> instead"
}
}{
"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.