Updates an open order by adding, replacing, or deleting fields.
PUT
/v2/orders/{order_id}
Updates an open order by adding, replacing, or deleting fields.
Orders with a COMPLETED
or CANCELED
state cannot be updated.
An UpdateOrder
request requires the following:
order_id
in the endpoint path, identifying the order to update.version
of the order to update.To pay for an order, see Pay for Orders.
Guide
The sparse order containing only the fields to update and the version to which the update is being applied.
The dot notation paths fields to clear. For example, line_items[uid].note
. For more information, see Deleting fields.
A value you specify that uniquely identifies this update request.
If you are unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version is returned.
For more information, see Idempotency.