---
title: "Update an order"
method: PATCH
path: "/orders/{orderId}"
tags: ["orders"]
---

# Update an order

`PATCH /orders/{orderId}`

Update an order

## Path parameters

- `orderId` string, required

## Response `200`

The updated order object

## Changes

- **2026-08-25** `8c992528cc87` — 3 info
  - added the optional property `data/attributes/formatted_subtotal_after_discount` to the response with the `200` status
  - added the optional property `data/attributes/subtotal_after_discount_cents` to the response with the `200` status
  - added the optional property `data/attributes/subtotal_after_discount_float` to the response with the `200` status

[Change history](https://skmtc.dev/commercelayer/apis/commerce-layer-api/changes/orders/:orderId/patch.md)

---

[API](https://skmtc.dev/commercelayer/apis/commerce-layer-api.md) · [All operations](https://skmtc.dev/commercelayer/apis/commerce-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/commercelayer/commerce-layer-api/revisions/8c992528cc87/schema)
