cURL
curl -X POST "https://api.easy-orders.net/api/partners-apps/v1/products" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Idempotency-Key: ERP-SKU-TS-CLASSIC" \
-H "Content-Type: application/json" \
-d '{
"name": "Classic Cotton T-Shirt",
"sku": "TS-CLASSIC",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"price": 450,
"sale_price": 399,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg"
],
"track_stock": true,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M"
},
{
"name": "L"
}
]
}
],
"variants": [
{
"price": 450,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"options": {
"Size": "M"
}
},
{
"price": 450,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"options": {
"Size": "L"
}
}
]
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/products', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Idempotency-Key': 'ERP-SKU-TS-CLASSIC',
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Classic Cotton T-Shirt',
sku: 'TS-CLASSIC',
description: '<p>Soft cotton, cut for everyday wear.</p>',
price: 450,
sale_price: 399,
thumb: 'https://cdn.example.com/products/tshirt.jpg',
images: [
'https://cdn.example.com/products/tshirt-back.jpg',
],
track_stock: true,
category_ids: [
'5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f',
],
options: [
{
name: 'Size',
type: 'button',
values: [
{
name: 'M',
},
{
name: 'L',
},
],
},
],
variants: [
{
price: 450,
quantity: 40,
sku: 'TS-CLASSIC-M',
options: {
Size: 'M',
},
},
{
price: 450,
quantity: 25,
sku: 'TS-CLASSIC-L',
options: {
Size: 'L',
},
},
],
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { product } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"name": "Classic Cotton T-Shirt",
"sku": "TS-CLASSIC",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"price": 450,
"sale_price": 399,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg"
],
"track_stock": true,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M"
},
{
"name": "L"
}
]
}
],
"variants": [
{
"price": 450,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"options": {
"Size": "M"
}
},
{
"price": 450,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"options": {
"Size": "L"
}
}
]
}`)
req, err := http.NewRequest("POST", "https://api.easy-orders.net/api/partners-apps/v1/products", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Idempotency-Key", "ERP-SKU-TS-CLASSIC")
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["product"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/products');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Idempotency-Key: ERP-SKU-TS-CLASSIC',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Classic Cotton T-Shirt',
'sku' => 'TS-CLASSIC',
'description' => '<p>Soft cotton, cut for everyday wear.</p>',
'price' => 450,
'sale_price' => 399,
'thumb' => 'https://cdn.example.com/products/tshirt.jpg',
'images' => [
'https://cdn.example.com/products/tshirt-back.jpg',
],
'track_stock' => true,
'category_ids' => [
'5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f',
],
'options' => [
[
'name' => 'Size',
'type' => 'button',
'values' => [
[
'name' => 'M',
],
[
'name' => 'L',
],
],
],
],
'variants' => [
[
'price' => 450,
'quantity' => 40,
'sku' => 'TS-CLASSIC-M',
'options' => [
'Size' => 'M',
],
],
[
'price' => 450,
'quantity' => 25,
'sku' => 'TS-CLASSIC-L',
'options' => [
'Size' => 'L',
],
],
],
]),
]);
$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']);
}
$product = $answer['product'];import os
import requests
response = requests.post(
"https://api.easy-orders.net/api/partners-apps/v1/products",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
"Idempotency-Key": "ERP-SKU-TS-CLASSIC",
},
json={
"name": "Classic Cotton T-Shirt",
"sku": "TS-CLASSIC",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"price": 450,
"sale_price": 399,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg",
],
"track_stock": True,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M",
},
{
"name": "L",
},
],
},
],
"variants": [
{
"price": 450,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"options": {
"Size": "M",
},
},
{
"price": 450,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"options": {
"Size": "L",
},
},
],
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
product = answer["product"]{
"product": {
"id": "0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10",
"name": "Classic Cotton T-Shirt",
"slug": "classic-cotton-t-shirt",
"sku": "TS-CLASSIC",
"external_sku": "",
"source_app": "ERP Sync",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"meta_description": "",
"price": 450,
"sale_price": 399,
"sale_end_date": null,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg"
],
"position": 0,
"hidden": false,
"quantity": 0,
"track_stock": true,
"disable_orders_for_no_stock": false,
"is_digital": false,
"digital_type": null,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M",
"value": "M",
"thumb": "",
"is_out_of_stock": false
},
{
"name": "L",
"value": "L",
"thumb": "",
"is_out_of_stock": false
}
]
}
],
"variants": [
{
"id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a01",
"price": 450,
"sale_price": 0,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"thumb": "",
"options": {
"Size": "M"
}
},
{
"id": "8f9a0b1c-2d3e-4f4a-9b5c-6d7e8f9a0b12",
"price": 450,
"sale_price": 0,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"thumb": "",
"options": {
"Size": "L"
}
}
],
"is_skip_cart": false,
"buy_now_text": "",
"is_fixed_bottom_buy": false,
"is_one_page_checkout": false,
"is_fast_checkout": false,
"is_free_shipping": false,
"is_quantity_hidden": false,
"is_header_hidden": false,
"hide_related_products": false,
"is_reviews_enabled": false,
"is_visitor_counter": false,
"visitor_counter_min": 0,
"visitor_counter_max": 0,
"is_countdown_timer": false,
"countdown_timer_hours": 0,
"created_at": "2026-12-04T09:00:00Z",
"updated_at": "2026-12-04T09:30:00Z"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid JSON body: unknown field"
}
}{
"error": {
"code": "unauthenticated",
"message": "Missing or invalid access token"
}
}{
"error": {
"code": "store_overdue",
"message": "The store has an overdue balance: products cannot be created until it is paid"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This request requires the scope: read_orders",
"details": {
"required_scope": "read_orders"
}
}
}{
"error": {
"code": "slug_taken",
"message": "Another product of the store has this slug"
}
}{
"error": {
"code": "body_too_large",
"message": "Request body too large"
}
}{
"error": {
"code": "product_too_large",
"message": "The product would be larger than 50 KB: shorten the description or send fewer variants or images"
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Products
Create a product
Scope: write_products
Creates a product. name, price and thumb are required; every
other field starts empty, zero or false, as in the dashboard.
- Without a
slug, one is made from the name (productwhen the name has no Latin letters or digits), with a random suffix when taken. Aslugyou send must be free (409 slug_taken). descriptionis HTML, cleaned before it is saved: see HTML descriptions.optionsandvariantsgo together: see Options and variants. Variants you create have noidyet.- The body is at most 50 KB (
413 body_too_large), and so is the product it makes (422 product_too_large). - The store must have no unpaid dues (
402 store_overdue). Each product created charges the store the import fee, as importing from the dashboard does. - The name, description and meta description go through an automatic content review: see Content review.
- Apps cannot create digital products.
source_app is set to your app’s name. Send an Idempotency-Key to
retry safely.
POST
/
products
cURL
curl -X POST "https://api.easy-orders.net/api/partners-apps/v1/products" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN" \
-H "Idempotency-Key: ERP-SKU-TS-CLASSIC" \
-H "Content-Type: application/json" \
-d '{
"name": "Classic Cotton T-Shirt",
"sku": "TS-CLASSIC",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"price": 450,
"sale_price": 399,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg"
],
"track_stock": true,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M"
},
{
"name": "L"
}
]
}
],
"variants": [
{
"price": 450,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"options": {
"Size": "M"
}
},
{
"price": 450,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"options": {
"Size": "L"
}
}
]
}'const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/products', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
'Idempotency-Key': 'ERP-SKU-TS-CLASSIC',
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Classic Cotton T-Shirt',
sku: 'TS-CLASSIC',
description: '<p>Soft cotton, cut for everyday wear.</p>',
price: 450,
sale_price: 399,
thumb: 'https://cdn.example.com/products/tshirt.jpg',
images: [
'https://cdn.example.com/products/tshirt-back.jpg',
],
track_stock: true,
category_ids: [
'5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f',
],
options: [
{
name: 'Size',
type: 'button',
values: [
{
name: 'M',
},
{
name: 'L',
},
],
},
],
variants: [
{
price: 450,
quantity: 40,
sku: 'TS-CLASSIC-M',
options: {
Size: 'M',
},
},
{
price: 450,
quantity: 25,
sku: 'TS-CLASSIC-L',
options: {
Size: 'L',
},
},
],
}),
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { product } = jsonpackage main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body := []byte(`{
"name": "Classic Cotton T-Shirt",
"sku": "TS-CLASSIC",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"price": 450,
"sale_price": 399,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg"
],
"track_stock": true,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M"
},
{
"name": "L"
}
]
}
],
"variants": [
{
"price": 450,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"options": {
"Size": "M"
}
},
{
"price": 450,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"options": {
"Size": "L"
}
}
]
}`)
req, err := http.NewRequest("POST", "https://api.easy-orders.net/api/partners-apps/v1/products", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
req.Header.Set("Idempotency-Key", "ERP-SKU-TS-CLASSIC")
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["product"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/products');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
'Idempotency-Key: ERP-SKU-TS-CLASSIC',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Classic Cotton T-Shirt',
'sku' => 'TS-CLASSIC',
'description' => '<p>Soft cotton, cut for everyday wear.</p>',
'price' => 450,
'sale_price' => 399,
'thumb' => 'https://cdn.example.com/products/tshirt.jpg',
'images' => [
'https://cdn.example.com/products/tshirt-back.jpg',
],
'track_stock' => true,
'category_ids' => [
'5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f',
],
'options' => [
[
'name' => 'Size',
'type' => 'button',
'values' => [
[
'name' => 'M',
],
[
'name' => 'L',
],
],
],
],
'variants' => [
[
'price' => 450,
'quantity' => 40,
'sku' => 'TS-CLASSIC-M',
'options' => [
'Size' => 'M',
],
],
[
'price' => 450,
'quantity' => 25,
'sku' => 'TS-CLASSIC-L',
'options' => [
'Size' => 'L',
],
],
],
]),
]);
$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']);
}
$product = $answer['product'];import os
import requests
response = requests.post(
"https://api.easy-orders.net/api/partners-apps/v1/products",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
"Idempotency-Key": "ERP-SKU-TS-CLASSIC",
},
json={
"name": "Classic Cotton T-Shirt",
"sku": "TS-CLASSIC",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"price": 450,
"sale_price": 399,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg",
],
"track_stock": True,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M",
},
{
"name": "L",
},
],
},
],
"variants": [
{
"price": 450,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"options": {
"Size": "M",
},
},
{
"price": 450,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"options": {
"Size": "L",
},
},
],
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
product = answer["product"]{
"product": {
"id": "0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10",
"name": "Classic Cotton T-Shirt",
"slug": "classic-cotton-t-shirt",
"sku": "TS-CLASSIC",
"external_sku": "",
"source_app": "ERP Sync",
"description": "<p>Soft cotton, cut for everyday wear.</p>",
"meta_description": "",
"price": 450,
"sale_price": 399,
"sale_end_date": null,
"thumb": "https://cdn.example.com/products/tshirt.jpg",
"images": [
"https://cdn.example.com/products/tshirt-back.jpg"
],
"position": 0,
"hidden": false,
"quantity": 0,
"track_stock": true,
"disable_orders_for_no_stock": false,
"is_digital": false,
"digital_type": null,
"category_ids": [
"5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
],
"options": [
{
"name": "Size",
"type": "button",
"values": [
{
"name": "M",
"value": "M",
"thumb": "",
"is_out_of_stock": false
},
{
"name": "L",
"value": "L",
"thumb": "",
"is_out_of_stock": false
}
]
}
],
"variants": [
{
"id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a01",
"price": 450,
"sale_price": 0,
"quantity": 40,
"sku": "TS-CLASSIC-M",
"thumb": "",
"options": {
"Size": "M"
}
},
{
"id": "8f9a0b1c-2d3e-4f4a-9b5c-6d7e8f9a0b12",
"price": 450,
"sale_price": 0,
"quantity": 25,
"sku": "TS-CLASSIC-L",
"thumb": "",
"options": {
"Size": "L"
}
}
],
"is_skip_cart": false,
"buy_now_text": "",
"is_fixed_bottom_buy": false,
"is_one_page_checkout": false,
"is_fast_checkout": false,
"is_free_shipping": false,
"is_quantity_hidden": false,
"is_header_hidden": false,
"hide_related_products": false,
"is_reviews_enabled": false,
"is_visitor_counter": false,
"visitor_counter_min": 0,
"visitor_counter_max": 0,
"is_countdown_timer": false,
"countdown_timer_hours": 0,
"created_at": "2026-12-04T09:00:00Z",
"updated_at": "2026-12-04T09:30:00Z"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid JSON body: unknown field"
}
}{
"error": {
"code": "unauthenticated",
"message": "Missing or invalid access token"
}
}{
"error": {
"code": "store_overdue",
"message": "The store has an overdue balance: products cannot be created until it is paid"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This request requires the scope: read_orders",
"details": {
"required_scope": "read_orders"
}
}
}{
"error": {
"code": "slug_taken",
"message": "Another product of the store has this slug"
}
}{
"error": {
"code": "body_too_large",
"message": "Request body too large"
}
}{
"error": {
"code": "product_too_large",
"message": "The product would be larger than 50 KB: shorten the description or send fewer variants or images"
}
}{
"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
HTML, cleaned before it is saved; see HTML descriptions. No limit of its own beyond the 50 KB of the product.