Order timeline
The order's history, as staff see it on the order page, and comments.
Endpoints#
- GET
/orders/{order_id}/events.jsonList an order's timeline - POST
/orders/{order_id}/events.jsonAdd a comment to the timeline
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
List an order's timeline#
GET
/orders/{order_id}/events.jsonread_ordersWhat happened to the order, oldest first: placed, paid, fulfilled, tracking, fulfillment_cancelled, refunded, cancelled, email, gift_card and comment, with who did it (author.type is staff, app, customer or system).
Request
curl "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/events.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"events": [
{
"id": "cm2evnt0001",
"order_id": "cm2ordr0001",
"verb": "fulfilled",
"message": "2 items fulfilled, tracking number 1Z999AA10123456784",
"author": {
"type": "app",
"name": "Warehouse sync"
},
"created_at": "2026-10-23T10:05:00.000Z"
}
]
}Add a comment to the timeline#
POST
/orders/{order_id}/events.jsonwrite_ordersStaff see it on the order page, credited to your app. message is plain text, up to 2,000 characters.
Request body
{
"event": {
"message": "Packed and handed to UPS at 4pm"
}
}Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/orders/$ORDER_ID/events.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"event": {
"message": "Packed and handed to UPS at 4pm"
}
}'Example responseShowHide
{
"event": {
"id": "cm2evnt0001",
"order_id": "cm2ordr0001",
"verb": "comment",
"message": "Packed and handed to UPS at 4pm",
"author": {
"type": "app",
"name": "Warehouse sync"
},
"created_at": "2026-10-23T10:05:00.000Z"
}
}