Skip to content

List the history of a sales order or quote

Open .md

GET/v2/api/store/{team_slug}/v2/sales_order/{order_unique_key}/history

v2Operation ID v2_public_order_history

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.

Permission

Any member of the team.

Path parameters

  • team_slugstringrequired

    Your team slug, shown as Team ID next to your API key in Profile.

    • Example your-team
  • order_unique_keystringrequired

    The sales order's or quote's id (a hash id), or its unique_key (ord_…). The order number (scoped_id) does not work.

    • Example V4keXwwxMQyXw7

Query parameters

  • pageinteger

    The page to return, from 1.

    • Minimum 1

Request body

This operation takes no request body.

Response

200Successful response.

  • dataarray of objectsrequired
    Fields of each item (7)
    • actionstringrequired

      What happened, for example status_change, order_changes_in_view_mode, order_deleted, order_restored, new_comment or received_user_payment.

    • idstringrequired
    • typestringrequired

      What kind of record changed: order, job, shipment and so on.

    • created_atstring (date-time) | null

      When. ISO 8601 with offset, or null.

    • message_keystring | null

      type.action, for example order.status_change: the key of the sentence the web app shows.

    • objectobject | array

      The details: usually team, order (id, scoped_id, object_type, quote), the changed values (a status change has from_status and to_status) and user (id, name, avatar_url). [] (an empty array) when an entry has no details.

    • teamobject

      Your team.

      Child fields (3)
  • statusintegerrequired
  • successbooleanrequired
  • Child fields (6)
    • countintegerrequired
    • currentPageintegerrequired
    • perPageintegerrequired
    • totalintegerrequired
    • totalPagesintegerrequired

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, with unauthorized or user_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.