---
title: "Create an order"
method: POST
path: "/orders"
tags: ["Orders"]
---

# Create an order

`POST /orders`

Create an order before initiating a payment. The returned order_id must be passed to Razorpay Checkout. An order can have multiple payment attempts but only one successful capture.

## Request body

- object
  - `amount` integer, required — Payment amount in paise. Example: 50000 for ₹500. Must be >= 100.
  - `currency` string, required — ISO 4217 currency code. Example: INR.
  - `receipt` string — Your internal receipt number. Max 40 characters.
  - `notes` Notes — Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.
  - `partial_payment` boolean — Allow partial payments.

## Response `200`

Order created.

- 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.
- `429` — Rate limit exceeded. Implement exponential backoff with jitter before retrying.
- `500` — Internal server error.

---

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