Update order line

⚠️ We no longer recommend implementing the Orders API. Please refer to the Payments API instead. We are actively working on adding support for Klarna, Billie, in3 and Vouchers to the Payments API later this year.

Update an order line belonging to an order. Only lines with status created, pending, or authorized can be updated.

This endpoint is useful for cases where specific details of an order line are changed. For example, if a customer changes a red shirt for a blue one of the same model. In this case only specific properties of the order line need to be updated, such as the name, the imageUrl, and perhaps the amount.

To swap out an order line for an entirely new order line, use the Manage order lines endpoint instead.

For an in-depth explanation of each parameter, refer to the lines parameter of the Create order endpoint.