---
title: "Update order email"
method: PATCH
path: "/orders/update-email"
tags: ["Order Controller"]
---

# Update order email

`PATCH /orders/update-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.

## Request body

- UpdateOrderEmailDto
  - `orderId` number, required — Order ID to update
  - `newEmail` string, required — New email address for the order
  - `isAll` boolean — Update all orders with the same email as the specified order. If true, all orders with matching email will be updated.

## Response `200`

Order email updated successfully

## Other responses

- `400` — Invalid email format or missing required fields
- `404` — Order not found

---

[API](https://skmtc.dev/findmydocument/apis/land-registry-api.md) · [All operations](https://skmtc.dev/findmydocument/apis/land-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/findmydocument/land-registry-api/revisions/b55a990514fb/schema)
