cURL
curl -X POST "https://api.easy-orders.net/api/partners-apps/v1/pages" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Idempotency-Key: page-return-policy" \
-H "Content-Type: application/json" \
-d '{
"title": "Return policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_footer": true,
"position": 2
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/pages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Idempotency-Key': 'page-return-policy',
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Return policy',
content: '<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>',
show_in_footer: true,
position: 2,
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { page } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"title": "Return policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_footer": true,
"position": 2
}`)
req, err := http.NewRequest("POST", "https://api.easy-orders.net/api/partners-apps/v1/pages", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Idempotency-Key", "page-return-policy")
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["page"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/pages');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Idempotency-Key: page-return-policy',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Return policy',
'content' => '<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>',
'show_in_footer' => true,
'position' => 2,
]),
]);
$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']);
}
$page = $answer['page'];import os
import requests
response = requests.post(
"https://api.easy-orders.net/api/partners-apps/v1/pages",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
"Idempotency-Key": "page-return-policy",
},
json={
"title": "Return policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_footer": True,
"position": 2,
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
page = answer["page"]{
"page": {
"id": "3b8e1f2a-6c4d-4e9f-8a1b-2c3d4e5f6a70",
"title": "Return policy",
"slug": "return-policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_header": false,
"show_in_footer": true,
"show_under_gallery": false,
"position": 2,
"is_active": true,
"is_need_review": false,
"created_at": "2026-11-20T09:00:00Z",
"updated_at": "2026-11-20T09:00:00Z"
}
}{
"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": "slug_taken",
"message": "Another page of the store has this slug"
}
}{
"error": {
"code": "body_too_large",
"message": "Request body too large"
}
}{
"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"
}
}Pages
Create a page
Scope: write_content
Creates a page. title and content are required.
contentis HTML, up to 51,200 bytes as sent. Unsafe HTML is removed before it is saved, and the answer holds the cleaned content. See HTML content.- Without
slug, one is made from the title. Asluganother page of the store has answers409 slug_taken. - The title and content go through an AI content check, which can
take up to 15 seconds. When it flags them, the page is saved anyway
with
is_need_review: true.
Send an Idempotency-Key to retry safely.
POST
/
pages
cURL
curl -X POST "https://api.easy-orders.net/api/partners-apps/v1/pages" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Idempotency-Key: page-return-policy" \
-H "Content-Type: application/json" \
-d '{
"title": "Return policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_footer": true,
"position": 2
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/pages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Idempotency-Key': 'page-return-policy',
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Return policy',
content: '<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>',
show_in_footer: true,
position: 2,
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { page } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"title": "Return policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_footer": true,
"position": 2
}`)
req, err := http.NewRequest("POST", "https://api.easy-orders.net/api/partners-apps/v1/pages", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Idempotency-Key", "page-return-policy")
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["page"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/pages');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Idempotency-Key: page-return-policy',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Return policy',
'content' => '<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>',
'show_in_footer' => true,
'position' => 2,
]),
]);
$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']);
}
$page = $answer['page'];import os
import requests
response = requests.post(
"https://api.easy-orders.net/api/partners-apps/v1/pages",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
"Idempotency-Key": "page-return-policy",
},
json={
"title": "Return policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_footer": True,
"position": 2,
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
page = answer["page"]{
"page": {
"id": "3b8e1f2a-6c4d-4e9f-8a1b-2c3d4e5f6a70",
"title": "Return policy",
"slug": "return-policy",
"content": "<h2>Returns</h2><p>You can return any item within <strong>14 days</strong> of delivery.</p>",
"show_in_header": false,
"show_in_footer": true,
"show_under_gallery": false,
"position": 2,
"is_active": true,
"is_need_review": false,
"created_at": "2026-11-20T09:00:00Z",
"updated_at": "2026-11-20T09:00:00Z"
}
}{
"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": "slug_taken",
"message": "Another page of the store has this slug"
}
}{
"error": {
"code": "body_too_large",
"message": "Request body too large"
}
}{
"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.
Headers
Body
application/json