Edit order measurements

Edit Measura-managed order line items using the public API.

PATCH /api/v1/orders/{orderId}

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

Path parameters

ParameterTypeDescription
orderIdstringRequired - Shopify order REST ID

Request body

{
  "edits": [
    {
      "lineItemId": "111",
      "variantId": "333",
      "quantity": 1,
      "measurement": { "value": 1.5, "unit": "lb", type: "weight" },
    }
  ],
  "notifyCustomer": false,
  "staffNote": "string"
}

Response example (200 success)

{
  "success": true
}

Response fields

FieldTypeDescription
successbooleanIndicates whether the edits were applied successfully

Error responses

Status codeDescription
400Bad Request - Validation failed for the provided edits
401Unauthorized - Missing or invalid API key
404Not Found - Order not found or not accessible
422Unprocessable Entity - Add-on inactive or request could not be processed
500Internal Server Error - Server error while processing the request