Update order line
Updates an existing order line’s product, variant, quantity, pricing, and tax information. Validates that the product and variant exist. Publishes an order updated event.
PATCH
/api/v1/{team_slug}/{app_slug}/orders/{order_id}/lines/{line_id}Authorization
AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
Path parameters
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
order_idstringrequiredOrder ID (UUID)
line_idstringrequiredOrder line ID (UUID)
Request body
requiredapplication/jsonOrder line update data
base_price_amountnumberrequiredmin 0
currency_codestringrequiredproduct_idstringrequiredquantityintegerrequiredmin 1
tax_group_idstringtotal_discount_amountnumbermin 0
total_price_amountnumberrequiredmin 0
total_tax_amountnumbermin 0
variant_idstringrequiredResponses
200
Order line updated successfully
datainternal_pkg_webserver_v1.OrderLineResponserequiredShow propertiesHide properties
base_price_amountnumber | nullcreated_atstringcurrency_codestring | nullfirst_image_pathstringidstringorder_idstringproduct_idstring | nullproduct_namestringproduct_numberstringquantityinteger | nullshort_descriptionstringtax_group_idstring | nulltotal_discount_amountnumber | nulltotal_price_amountnumber | nulltotal_sale_pricenumber | nulltotal_tax_amountnumber | nullupdated_atstring | nullvariant_idstring | nullvariant_namestringvariant_numberstringdetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequired400
Invalid request (validation error, product/variant not found, line doesn't belong to order)
detailsstring[]messagestringsuccessbooleanrequired401
Unauthorized access
detailsstring[]messagestringsuccessbooleanrequired404
Order or order line not found
detailsstring[]messagestringsuccessbooleanrequired500
Internal server error
detailsstring[]messagestringsuccessbooleanrequired