---
title: "Update order for admin"
method: PATCH
path: "/orders/{id}"
tags: ["Order Controller"]
---

# Update order for admin

`PATCH /orders/{id}`

Update order status and order date

## Path parameters

- `id` number, required

## Request body

- UpdateOrderDto
  - `orderStatusId` number — Order status ID
  - `orderDateTime` string — Order date time (ISO 8601 format)
  - `address1` string — Address line 1
  - `flatUnit` string — Flat/Unit
  - `municipality` string — Municipality
  - `registry` string — Registry
  - `cruIdufir` string — CRU / IDUFIR
  - `identificationType` 'None' | 'NIE' | 'NIF' — Identification type
  - `identificationNumber` string — Identification number (required when identification type is NIE or NIF)
  - `nameAsPerIdentification` string — Name as per identification (required when identification type is NIE or NIF)
  - `city` string — City
  - `suburb` string — Suburb
  - `county` string — County
  - `postCode` string — Post code
  - `country` string — Country
  - `state` string — State
  - `shippingAddress1` string — Shipping address line 1
  - `shippingAddress2` string — Shipping address line 2
  - `shippingCity` string — Shipping city
  - `shippingPostcode` string — Shipping postcode
  - `shippingCounty` string — Shipping county
  - `shippingPhone` string — Shipping phone number
  - `shippingFirstName` string — Shipping first name
  - `shippingLastName` string — Shipping last name
  - `updateItWithAllLinkedOrders` boolean — Update shipping address for all linked orders
  - `hasSwimmingPool` boolean — Whether the property has a swimming pool
  - `instrumentCopyNumber` string — Instrument copy number
  - `orderLng` 'en' | 'fr' | 'es' — Order language

## Response `200`

Order updated successfully

- OrderCreateUpdateResponseDto
  - `orderId` number, required — Order ID
  - `customerEmail` string, required — Customer email
  - `emailValid` boolean, required — Email valid
  - `emailValidationStatus` string — Email validation status (UNKNOWN, VALID, INVALID)
  - `isNewCustomer` boolean — True if customer was auto-created during this order
  - `documentAccessLink` string — Permanent document access link

## Other responses

- `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)
