Measura API documentation · v1

Get order return

Inspect a single durable Measura API return operation, including its status and saved outcome.

Code example
GET /api/v1/orders/{orderId}/returns/{returnId}

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.
returnIdstringRequired — UUID operationId returned by the write, or id from operation history. Do not use shopifyReturnId.

Response example (200 success)

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

Response fields

Scroll horizontally to see all columns.

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

Error responses

Scroll horizontally to see all columns.

Status codeDescription
400bad_request — Invalid numeric order ID.
404not_found — Invalid operation UUID, unknown receipt, or a receipt outside this shop/order/operation kind.
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. Cache-Control: no-store ensures current receipt state is returned.
  • HTTP 200 means the receipt was found. Inspect data.status; a found rejected or requires_review operation is still returned with HTTP 200.
  • processing means execution is not terminal. completed has the saved result. rejected means execution was rejected before possible mutation. requires_review means changes or receipt persistence are uncertain; reconcile before starting another write.
  • Retry a lost write response with the identical body and original Idempotency-Key to replay its saved outcome. The detail id identifies the operation; it is not the original caller-provided key.