cURL
curl -X POST "https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Idempotency-Key: sku-hoodie-low-stock" \
-H "Content-Type: application/json" \
-d '{
"text": "Low stock",
"color": "red"
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Idempotency-Key': 'sku-hoodie-low-stock',
'Content-Type': 'application/json',
},
body: JSON.stringify({
text: 'Low stock',
color: 'red',
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { label } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"text": "Low stock",
"color": "red"
}`)
req, err := http.NewRequest("POST", "https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Idempotency-Key", "sku-hoodie-low-stock")
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["label"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Idempotency-Key: sku-hoodie-low-stock',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Low stock',
'color' => 'red',
]),
]);
$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']);
}
$label = $answer['label'];import os
import requests
response = requests.post(
"https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
"Idempotency-Key": "sku-hoodie-low-stock",
},
json={
"text": "Low stock",
"color": "red",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
label = answer["label"]{
"label": {
"id": "5d2e8f1a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
"text": "VIP",
"color": "purple",
"created_at": "2026-12-03T10: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": "not_found",
"message": "Resource not found"
}
}{
"error": {
"code": "label_exists",
"message": "The app already has a label with this text on it (letter case aside)"
}
}{
"error": {
"code": "limit_exceeded",
"message": "An app may put at most 5 labels on an order or a product: delete one first",
"details": {
"max": 5
}
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Labels
Add a product label
Scope: write_products
Puts a label on the product. Your app can have up to 5 labels on one
product (422 limit_exceeded), each with a different text, letter
case aside (409 label_exists). The text is checked first: with 5
labels already, a text you have answers 409, not 422.
Adding a label sends no event and leaves the product as it is, its
updated_at too.
Send an Idempotency-Key to retry safely.
POST
/
products
/
{id}
/
labels
cURL
curl -X POST "https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Idempotency-Key: sku-hoodie-low-stock" \
-H "Content-Type: application/json" \
-d '{
"text": "Low stock",
"color": "red"
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Idempotency-Key': 'sku-hoodie-low-stock',
'Content-Type': 'application/json',
},
body: JSON.stringify({
text: 'Low stock',
color: 'red',
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { label } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"text": "Low stock",
"color": "red"
}`)
req, err := http.NewRequest("POST", "https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Idempotency-Key", "sku-hoodie-low-stock")
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["label"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Idempotency-Key: sku-hoodie-low-stock',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'text' => 'Low stock',
'color' => 'red',
]),
]);
$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']);
}
$label = $answer['label'];import os
import requests
response = requests.post(
"https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10/labels",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
"Idempotency-Key": "sku-hoodie-low-stock",
},
json={
"text": "Low stock",
"color": "red",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
label = answer["label"]{
"label": {
"id": "5d2e8f1a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
"text": "VIP",
"color": "purple",
"created_at": "2026-12-03T10: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": "not_found",
"message": "Resource not found"
}
}{
"error": {
"code": "label_exists",
"message": "The app already has a label with this text on it (letter case aside)"
}
}{
"error": {
"code": "limit_exceeded",
"message": "An app may put at most 5 labels on an order or a product: delete one first",
"details": {
"max": 5
}
}
}{
"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
Trimmed, then 1 to 30 characters with at least one that shows. One line: no control or invisible characters. Unique among your app's labels on the order or product, letter case aside.
Required string length:
1 - 30