Measura API documentation · v1

Get order details

Read current measured lines, fulfillment permissions, totals, and the revision required for order changes.

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

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.

Response example (200 success)

Code example
{
  "success": true,
  "data": {
    "id": "1234567890",
    "name": "#1001",
    "currencyCode": "USD",
    "revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "updatedAt": "2026-10-19T00:00:00Z",
    "cancelledAt": null,
    "financialStatus": "PAID",
    "fulfillmentStatus": "UNFULFILLED",
    "items": [
      {
        "lineItemId": "111",
        "productId": "222",
        "variantId": "333",
        "quantity": 1,
        "measurement": {
          "type": "weight",
          "value": 1.25,
          "unit": "kg"
        },
        "unitPrice": "$10.00 per kg",
        "totalPrice": 12.5,
        "title": "Measured product",
        "originalLineItemId": "111",
        "previousLineItemId": null,
        "originalProductId": "222",
        "originalVariantId": "333",
        "unfulfilledQuantity": 1,
        "fulfilledQuantity": 0,
        "editability": {
          "canEdit": true,
          "canSplit": true,
          "canAdjustFulfilled": false,
          "canReturn": false,
          "reason": null
        }
      }
    ],
    "totals": {
      "total": {
        "amount": "12.50",
        "currencyCode": "USD"
      },
      "tax": {
        "amount": "0.00",
        "currencyCode": "USD"
      },
      "shipping": {
        "amount": "0.00",
        "currencyCode": "USD"
      },
      "outstanding": {
        "amount": "0.00",
        "currencyCode": "USD"
      }
    },
    "paymentSettlement": "separate"
  },
  "error": null
}

Response fields

Scroll horizontally to see all columns.

FieldTypeDescription
data.id / name / currencyCodestringShopify order legacy ID, display name, and currency.
data.revisionstringOpaque 64-character lowercase SHA-256 revision. Copy unchanged to expectedRevision on the next write.
data.updatedAt / cancelledAtstring / string | nullShopify timestamps. Cancelled orders cannot be changed.
data.financialStatus / fulfillmentStatusstringShopify display statuses when available.
data.itemsarrayActive Measura measured lines, including supported custom-unit selections. Unmeasured and zero-current-quantity lines are omitted.
data.items[].lineItemId / productId / variantIdstring / string | nullCurrent Shopify line legacy ID and original product/variant identity where available. Use returned identities for edits.
data.items[].quantity / measurementnumber / objectCurrent whole-copy quantity and per-copy measurement {type, value, unit}; custom lines use type custom.
data.items[].originalLineItemId / previousLineItemIdstring / string | nullRoot source line and immediate predecessor in the replacement chain.
data.items[].originalProductId / originalVariantIdstring | nullHistorical product and variant identity, including temporary replacement lines.
data.items[].unfulfilledQuantity / fulfilledQuantitynumberCurrent whole-copy fulfillment counts.
data.items[].editabilityobjectcanEdit, canSplit, canAdjustFulfilled, canReturn, and reason (string or null). Choose the workflow permitted by these flags.
data.items[].unitPrice / totalPricestring / number | nullOptional unit-price display text and current line total when available.
data.items[].title / variantTitle / imageUrlstring | nullOptional line display metadata when available.
data.items[].customSale / inventoryLocationIdobject / string | nullCustom-unit lines only: historical sale snapshot and recorded inventory location.
data.totalsobjecttotal, tax, shipping, and outstanding; each is {amount: decimal string, currencyCode: string} or null.
data.paymentSettlementstringAlways separate. Editing or returning measured lines does not collect payment or issue a monetary refund.

Error responses

Scroll horizontally to see all columns.

Status codeDescription
400bad_request — orderId must be a numeric Shopify legacy ID.
404not_found — Order not found or unavailable.
422unprocessable_entity — Order measurement metadata needs reconciliation.
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 not cached (Cache-Control: no-store). Read again immediately before writing and after a conflict.
  • Treat revision as opaque. It covers fulfillment, line identity and measurement metadata, prices, totals, and other state; updatedAt alone is insufficient.
  • Partly fulfilled or merchant-locked lines cannot use ordinary edits. Built-in measured lines may offer fulfilled adjustments or returns; fulfilled custom selections support whole-copy returns.
  • Use lineMappings from successful writes and reload current line IDs because edits can replace Shopify lines.