Order Controller

Update order email

Update the email address for an order. If a customer with the new email exists, the order will be linked to that customer. Otherwise, the current customer's email will be updated.

patch/orders/update-email

Request body

orderIdnumber required

Order ID to update

newEmailstring required

New email address for the order

isAllboolean

Update all orders with the same email as the specified order. If true, all orders with matching email will be updated.

Example request

{
  "orderId": 123,
  "newEmail": "newemail@example.com"
}

Response

Order email updated successfully

Changes

No recorded changes to this endpoint across all 1 revision of this API.