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

# Update an order

`PATCH /orders/{id}`

Update the notes field of an existing order. Only notes can be modified after creation.

## Path parameters

- `id` string, required

## Request body

- object
  - `notes` Notes, required — Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.

## Response `200`

Updated order.

- Order
  - `id` string — Unique order identifier. Prefix: order_
  - `entity` 'order'
  - `amount` integer — Order amount in paise. Example: 50000 = ₹500.
  - `amount_paid` integer — Total amount paid against this order (paise).
  - `amount_due` integer — Remaining unpaid amount (paise).
  - `currency` string — ISO 4217 currency code. Example: INR.
  - `receipt` string — Your internal receipt or order reference number.
  - `status` 'created' | 'attempted' | 'paid' — created: awaiting payment. attempted: payment attempted but not captured. paid: fully paid.
  - `attempts` integer — Number of payment attempts made.
  - `notes` Notes — Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.
  - `created_at` integer — Unix timestamp of order creation.
  - `offer_id` string
  - `offers` string[]

## Other responses

- `400` — Bad request. Invalid parameters or missing required fields.
- `401` — Authentication failed. Invalid or missing API key credentials.
- `404` — Resource not found.
- `429` — Rate limit exceeded. Implement exponential backoff with jitter before retrying.

---

[API](https://skmtc.net/curlec/apis/razorpay-api.md) · [All operations](https://skmtc.net/curlec/apis/razorpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/curlec/razorpay-api/revisions/824ca9e6faef/schema)
