cURL
curl -X DELETE "https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
if (!response.ok) {
const { error } = await response.json()
throw new Error(`${error.code}: ${error.message}`)
}package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50", 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()
if res.StatusCode >= 300 {
var answer map[string]any
_ = json.NewDecoder(res.Body).Decode(&answer)
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(res.Status)
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
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']);
}import os
import requests
response = requests.delete(
"https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
if not response.ok:
error = response.json()["error"]
raise RuntimeError(f"{error['code']}: {error['message']}"){
"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": "too_many_requests",
"message": "Rate limit exceeded"
}
}Articles
Delete an article
Scope: write_content
Deletes the article for good, with its links to its categories, as
the merchant’s dashboard does. The categories stay. There is no
undo; to take an article off the blog and keep it, set
published: false instead.
DELETE
/
articles
/
{id}
cURL
curl -X DELETE "https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
if (!response.ok) {
const { error } = await response.json()
throw new Error(`${error.code}: ${error.message}`)
}package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50", 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()
if res.StatusCode >= 300 {
var answer map[string]any
_ = json.NewDecoder(res.Body).Decode(&answer)
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(res.Status)
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
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']);
}import os
import requests
response = requests.delete(
"https://api.easy-orders.net/api/partners-apps/v1/articles/8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
if not response.ok:
error = response.json()["error"]
raise RuntimeError(f"{error['code']}: {error['message']}"){
"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": "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.
Response
Deleted.