Measura API documentation · v1

List order edits

Read durable Measura API edit operation receipts for one order.

Code example
GET /api/v1/orders/{orderId}/edits

Headers:
  Authorization: Bearer <api-key>
  Content-Type: application/json

Path parameters

Scroll horizontally to see all columns.

ParameterTypeDescription
orderIdstringRequired — Numeric Shopify order legacy (REST) ID; do not send a GraphQL GID.

Query parameters

Scroll horizontally to see all columns.

ParameterTypeDescription
limitintegerOptional — 1–100 operations per page. Default 25; values outside this range return 400.
cursorstringOptional — Opaque meta.nextCursor from the previous operation-history response.

Response example (200 success)

Code example
{
  "success": true,
  "data": {
    "edits": [
      {
        "id": "123e4567-e89b-42d3-a456-426614174000",
        "kind": "order_edit",
        "resourceId": "1234567890",
        "status": "processing",
        "phase": "validating",
        "createdAt": "2026-10-19T00:00:00Z",
        "updatedAt": "2026-10-19T00:00:00Z"
      }
    ]
  },
  "error": null,
  "meta": {
    "nextCursor": null,
    "hasMore": false
  }
}

Response fields

Scroll horizontally to see all columns.

FieldTypeDescription
data.editsarrayOperation receipts, newest first by creation time and operation ID.
meta.nextCursorstring | nullOpaque next-page cursor; null when no further page exists.
meta.hasMorebooleanWhether another page exists.

Error responses

Scroll horizontally to see all columns.

Status codeDescription
400bad_request — Invalid order ID, limit, or operation cursor.
405method_not_allowed — Only GET is supported; Allow: GET.
401unauthorized — Missing or invalid API key.
403forbidden — The Order edit add-on is not ACTIVE for this shop.
500internal_error — The request could not be processed.

Note

  • Requires the active Order edit add-on. Responses are scoped to the authenticated shop, order, and operation kind, and use Cache-Control: no-store.
  • History contains durable public API operations, including processing and failed operations. It is not a complete Shopify edit history.
  • Fetch the matching detail route using a receipt id to inspect snapshots, saved results, or errors. A requires_review receipt needs reconciliation before another write to this order.

Operation receipt fields

Scroll horizontally to see all columns.

FieldTypeDescription
idstringDurable operation UUID. This is editId or returnId in the detail path.
kind / resourceIdstringorder_edit or order_return, and the Shopify order legacy ID.
statusstringprocessing, completed, rejected, or requires_review.
phasestringvalidating, applying, or finished.
createdAt / updatedAtstringISO-8601 operation timestamps.
snapshotobjectOptional — Before-state and original request saved before mutation.
resultobjectOptional — Completed write result (order, lineMappings, paymentSettlement, and return-specific fields).
errorobjectOptional — Recorded {code, message, details?} for an unsuccessful operation.