order_id returned by this API is passed to Razorpay Checkout on your frontend to associate the payment with the correct order.
Create an order
POST /v1/orders
Request parameters
integer
required
Amount in the smallest currency unit. For INR, this is paise (₹500 =
50000). For USD, this is cents ($5.00 = 500).string
required
ISO 4217 currency code. For example,
INR or USD.string
Your internal reference ID for this order. Maximum 40 characters.
object
Key-value pairs for custom metadata. Maximum 15 keys, each value up to 256 characters.
boolean
Set to
true to allow the customer to pay in multiple partial payments.Response
string
Unique identifier for the order. Pass this to Razorpay Checkout.
string
Order status. One of
created, attempted, or paid.integer
Amount already paid against this order, in the smallest currency unit.
integer
Remaining amount yet to be paid.
integer
Number of payment attempts made against this order.
Fetch an order
GET /v1/orders/:id
List orders
GET /v1/orders
Query parameters
integer
Number of orders to return. Maximum
100.integer
Number of orders to skip for pagination.
integer
Unix timestamp. Returns orders created on or after this time.
integer
Unix timestamp. Returns orders created on or before this time.
boolean
Filter by orders that have an authorized payment.
string
Filter by your internal receipt ID.