Browse the API docs

Order timeline

The order's history, as staff see it on the order page, and comments.

Endpoints#

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_orders

What 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 responseShow
{
  "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_orders

Staff 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 responseShow
{
  "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"
  }
}