Measura API documentation · v1
Read current measured lines, fulfillment permissions, totals, and the revision required for order changes.
GET /api/v1/orders/{orderId}
Headers:
Authorization: Bearer <api-key>
Content-Type: application/jsonScroll horizontally to see all columns.
| Parameter | Type | Description |
|---|---|---|
orderId | string | Required — Numeric Shopify order legacy (REST) ID; do not send a GraphQL GID. |
{
"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
}Scroll horizontally to see all columns.
| Field | Type | Description |
|---|---|---|
data.id / name / currencyCode | string | Shopify order legacy ID, display name, and currency. |
data.revision | string | Opaque 64-character lowercase SHA-256 revision. Copy unchanged to expectedRevision on the next write. |
data.updatedAt / cancelledAt | string / string | null | Shopify timestamps. Cancelled orders cannot be changed. |
data.financialStatus / fulfillmentStatus | string | Shopify display statuses when available. |
data.items | array | Active Measura measured lines, including supported custom-unit selections. Unmeasured and zero-current-quantity lines are omitted. |
data.items[].lineItemId / productId / variantId | string / string | null | Current Shopify line legacy ID and original product/variant identity where available. Use returned identities for edits. |
data.items[].quantity / measurement | number / object | Current whole-copy quantity and per-copy measurement {type, value, unit}; custom lines use type custom. |
data.items[].originalLineItemId / previousLineItemId | string / string | null | Root source line and immediate predecessor in the replacement chain. |
data.items[].originalProductId / originalVariantId | string | null | Historical product and variant identity, including temporary replacement lines. |
data.items[].unfulfilledQuantity / fulfilledQuantity | number | Current whole-copy fulfillment counts. |
data.items[].editability | object | canEdit, canSplit, canAdjustFulfilled, canReturn, and reason (string or null). Choose the workflow permitted by these flags. |
data.items[].unitPrice / totalPrice | string / number | null | Optional unit-price display text and current line total when available. |
data.items[].title / variantTitle / imageUrl | string | null | Optional line display metadata when available. |
data.items[].customSale / inventoryLocationId | object / string | null | Custom-unit lines only: historical sale snapshot and recorded inventory location. |
data.totals | object | total, tax, shipping, and outstanding; each is {amount: decimal string, currencyCode: string} or null. |
data.paymentSettlement | string | Always separate. Editing or returning measured lines does not collect payment or issue a monetary refund. |
Scroll horizontally to see all columns.
| Status code | Description |
|---|---|
| 400 | bad_request — orderId must be a numeric Shopify legacy ID. |
| 404 | not_found — Order not found or unavailable. |
| 422 | unprocessable_entity — Order measurement metadata needs reconciliation. |
| 401 | unauthorized — Missing or invalid API key. |
| 403 | forbidden — The Order edit add-on is not ACTIVE for this shop. |
| 500 | internal_error — The request could not be processed. |
Note