curl https://api.ordexs.com/v1/orders/ord_4f1d2c3b5a6e47d8a9b0c1d2e3f4a5b6/notes \
-H "Authorization: Bearer $ORDEXS_API_KEY"
const res = await fetch('https://api.ordexs.com/v1/orders/ord_4f1d2c3b5a6e47d8a9b0c1d2e3f4a5b6/notes', {
headers: {
Authorization: `Bearer ${process.env.ORDEXS_API_KEY}`,
},
})
const data = await res.json()
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`)
<?php
$ch = curl_init('https://api.ordexs.com/v1/orders/ord_4f1d2c3b5a6e47d8a9b0c1d2e3f4a5b6/notes');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ORDEXS_API_KEY'),
],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
import os
import requests
res = requests.get(
"https://api.ordexs.com/v1/orders/ord_4f1d2c3b5a6e47d8a9b0c1d2e3f4a5b6/notes",
headers={"Authorization": f"Bearer {os.environ['ORDEXS_API_KEY']}"},
timeout=30,
)
data = res.json()
if not res.ok:
raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
{
"object": "list",
"has_more": false,
"next_cursor": null,
"data": [
{
"id": "note_0f8b2a9c4d5e4f60a1b2c3d4e5f60718",
"object": "order_note",
"order_id": "ord_9b1c2d3e4f5a4b6c8d7e6f5a4b3c2d1e",
"body": "Customer asked for delivery after 5 pm.",
"author": {
"type": "staff",
"name": "Amina"
},
"livemode": true,
"created_at": "2026-10-08T14:02:11Z"
}
]
}
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the \"orders:write\" permission. Edit the key's permissions under Settings → Developers, or use a key that has it.",
"details": {
"required_scope": "orders:write"
},
"request_id": "req_7f3a9c2e41b84d0c9a1e5f6b"
}
}