Get order details

Retrieve Measura-managed line items for a Shopify order using the public API.

GET /api/v1/orders/{orderId}

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

Path parameters

ParameterTypeDescription
orderIdstringRequired - Shopify order REST ID

Response example (200 success)

{
  "id": "1234567890",
  "items": [
    {
      "lineItemId": "111",
      "productId": "222",
      "variantId": "333",
      "quantity": 1,
      "measurement": { "type": "weight", "value": 1.25, "unit": "lb" },
      "unitPrice": "$10.00 per lb",
    }
  ]
}

Response fields

FieldTypeDescription
idstringShopify order REST ID.
itemsarrayList of Measura line items on the order.
items[].lineItemIdstringShopify line item REST ID.
items[].productIdstringShopify product REST ID (returned when available).
items[].variantIdstring | nullShopify variant REST ID when available (may be null for temporary products).
items[].quantitynumberQuantity for the line item.
items[].measurementobjectMeasurement for the line item.
items[].measurement.typestringMeasurement type (e.g., weight).
items[].measurement.valuenumberMeasurement value.
items[].measurement.unitstringMeasurement unit (e.g., lb, kg).

Error responses

Status codeDescription
401Unauthorized - Missing or invalid API key
404Not Found - Order not found or not accessible
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Server error while processing the request