Edit Items

Request Fields:

FieldTypeRequiredDescription
itemsarrayYesArray of items to edit
items[].item_idintegerPreferredOrder item ID (most explicit - use this if available)
items[].skustringAlternativeProduct SKU (fallback - matches first item with this SKU)
items[].product_idintegerLegacyProduct entity ID (legacy support - matches first item)
items[].qtynumberNoNew quantity (for sparse update)
items[].pricenumberNoNew price per unit (for sparse update)
previewbooleanNoIf true, returns what the order would look like without saving changes (dry-run)

When the same product exists multiple times on an order (e.g., with different prices or delivery dates), you must use item_id to specify which item to edit. The sku and product_id options will match the first item only.

Error Responses:

CodeDescriptionExample
400Order has bills"Cannot edit items on Order 200000123 because it has Open and/or Paid bills."
400Order has shipments"Cannot edit items on Order because it has shipments."
400Product not on order"Product 'SKU-123' does not exist on order."
400Multiple items, use item_id"Multiple items with SKU 'ABC-123'. Use item_id instead."
400No changes detected"No changes detected. All items have the same quantity and price as the current order."
400Negative/zero price"Price must be greater than 0 for item X." (code: ORDEDIT-INPUT-ERROR-CODE-001)
400Negative quantity"Quantity must be greater than 0 for item X." (code: ORDEDIT-INPUT-ERROR-CODE-002)
400Extreme quantity"Quantity cannot exceed 10,000 for item X." (code: ORDEDIT-INPUT-ERROR-CODE-002)
400Zero quantity"Use remove-items endpoint to remove item from order." (code: ORDEDIT-EDIT-ERROR-CODE-014)
401Unauthorized"Invalid authentication credentials."
404Order not found"Order not found."
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Order entity ID

Body Params
items
array of objects
items
Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json