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| Parameter | Type | Description |
|---|---|---|
orderId | string | Required - Shopify order REST ID |
{
"id": "1234567890",
"items": [
{
"lineItemId": "111",
"productId": "222",
"variantId": "333",
"quantity": 1,
"measurement": { "type": "weight", "value": 1.25, "unit": "lb" },
"unitPrice": "$10.00 per lb",
}
]
}| Field | Type | Description |
|---|---|---|
id | string | Shopify order REST ID. |
items | array | List of Measura line items on the order. |
items[].lineItemId | string | Shopify line item REST ID. |
items[].productId | string | Shopify product REST ID (returned when available). |
items[].variantId | string | null | Shopify variant REST ID when available (may be null for temporary products). |
items[].quantity | number | Quantity for the line item. |
items[].measurement | object | Measurement for the line item. |
items[].measurement.type | string | Measurement type (e.g., weight). |
items[].measurement.value | number | Measurement value. |
items[].measurement.unit | string | Measurement unit (e.g., lb, kg). |
| Status code | Description |
|---|---|
| 401 | Unauthorized - Missing or invalid API key |
| 404 | Not Found - Order not found or not accessible |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Server error while processing the request |