Edit Measura-managed order line items using the public API.
PATCH /api/v1/orders/{orderId}
Headers:
Authorization: Bearer <api-key>
Content-Type: application/json| Parameter | Type | Description |
|---|---|---|
orderId | string | Required - Shopify order REST ID |
{
"edits": [
{
"lineItemId": "111",
"variantId": "333",
"quantity": 1,
"measurement": { "value": 1.5, "unit": "lb", type: "weight" },
}
],
"notifyCustomer": false,
"staffNote": "string"
}{
"success": true
}| Field | Type | Description |
|---|---|---|
success | boolean | Indicates whether the edits were applied successfully |
| Status code | Description |
|---|---|
| 400 | Bad Request - Validation failed for the provided edits |
| 401 | Unauthorized - Missing or invalid API key |
| 404 | Not Found - Order not found or not accessible |
| 422 | Unprocessable Entity - Add-on inactive or request could not be processed |
| 500 | Internal Server Error - Server error while processing the request |