List the history of a sales order or quote
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/sales-orders/v2-order-history.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
GET/
Returns the order's activity history: who changed what and when.
The answer is paginated, newest first: rows are in data, and pagination metadata is in pagination (total, count, perPage, currentPage, and totalPages). A page holds the team's page size (50 unless the team changed it); request the next page with ?page=2.
{order_unique_key} is the sales order or quote id (for example V4keXwwxMQyXw7) or its unique_key (it starts with ord_). The order number people see, such as SO1001, is not accepted here. Works on deleted orders too. Use this, not the retired v1 history.
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
The sales order's or quote's
id(a hash id), or itsunique_key(ord_…). The order number (scoped_id) does not work.- Example
V4keXwwxMQyXw7
- Example
Query parameters
pageintegerThe page to return, from 1.
- Minimum 1
Request body
This operation takes no request body.
Response
200Successful response.
Fields of each item (7)
What happened, for example
status_change,order_changes_in_view_mode,order_deleted,order_restored,new_commentorreceived_user_payment.What kind of record changed:
order,job,shipmentand so on.created_atstring (date-time) | nullWhen. ISO 8601 with offset, or null.
message_keystring | nulltype.action, for exampleorder.status_change: the key of the sentence the web app shows.objectobject | arrayThe details: usually
team,order(id,scoped_id,object_type,quote), the changed values (a status change hasfrom_statusandto_status) anduser(id,name,avatar_url).[](an empty array) when an entry has no details.teamobjectYour team.
paginationobjectChild fields (6)
Links to the neighbouring pages:
previousandnext, each present only when that page exists. An empty list,[], when there is only one page.
Errors
401The API key is missing or wrong (
unauthenticated).403You are not allowed to do this.
api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only{"message": "Insufficient Permission"}. Other refusals use the error envelope, withunauthorizedoruser_is_not_authorized.404Not found.
page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's.code: null, with a message that starts "No query results for": there is no record with that id.
Related
- GETGet a sales order or quote
/v2/ api/ store/ {team_slug}/ v2/ sales_order/ {order_unique_key}
