cURL
curl "https://api.easy-orders.net/api/partners-apps/v1/checkout-fields" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/checkout-fields', {
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 { data } = 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/checkout-fields", 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["data"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/checkout-fields');
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']);
}
$data = $answer['data'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/checkout-fields",
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']}")
data = answer["data"]{
"data": [
{
"id": "4b1e7c2a-9d3f-4a6e-8b5c-1f2e3d4c5b60",
"key": "full_name",
"name": "Full name",
"type": "input",
"placeholder": "Your full name",
"position": 0,
"is_active": true,
"is_required": true
},
{
"id": "6c2f8d3b-0e4a-4b7f-9c6d-2a3b4c5d6e70",
"key": "phone",
"name": "Phone",
"type": "input",
"placeholder": "",
"position": 1,
"is_active": true,
"is_required": true
},
{
"id": "7d3a9e4c-1f5b-4c8a-8d7e-3b4c5d6e7f80",
"key": "address",
"name": "Address",
"type": "textarea",
"placeholder": "Street, building and floor",
"position": 2,
"is_active": true,
"is_required": true
}
],
"next_cursor": null
}{
"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": "too_many_requests",
"message": "Rate limit exceeded"
}
}Checkout fields
List checkout fields
Scope: read_checkout_form
Every field of the store’s checkout form, in the order the shopper
sees them (by position). Not paginated: a form has a handful of
fields, so next_cursor is always null. It takes no parameters.
GET
/
checkout-fields
cURL
curl "https://api.easy-orders.net/api/partners-apps/v1/checkout-fields" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/checkout-fields', {
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 { data } = 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/checkout-fields", 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["data"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/checkout-fields');
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']);
}
$data = $answer['data'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/checkout-fields",
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']}")
data = answer["data"]{
"data": [
{
"id": "4b1e7c2a-9d3f-4a6e-8b5c-1f2e3d4c5b60",
"key": "full_name",
"name": "Full name",
"type": "input",
"placeholder": "Your full name",
"position": 0,
"is_active": true,
"is_required": true
},
{
"id": "6c2f8d3b-0e4a-4b7f-9c6d-2a3b4c5d6e70",
"key": "phone",
"name": "Phone",
"type": "input",
"placeholder": "",
"position": 1,
"is_active": true,
"is_required": true
},
{
"id": "7d3a9e4c-1f5b-4c8a-8d7e-3b4c5d6e7f80",
"key": "address",
"name": "Address",
"type": "textarea",
"placeholder": "Street, building and floor",
"position": 2,
"is_active": true,
"is_required": true
}
],
"next_cursor": null
}{
"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": "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.