Create an Order
Creates a new order. An order represents a payment intent. You must create an order before accepting a payment from a customer.
Authorizations
Use your Razorpay Key ID as the username and Key Secret as the password.
Body
Request body for creating a new order.
The transaction amount in the smallest currency sub-unit (e.g., paise for INR). For example, 50000 represents ₹500. Must be a positive integer.
50000
The ISO 4217 currency code for the transaction. Currently only INR is supported.
"INR"
A unique receipt number for the order, for your internal reference. Maximum length is 40 characters.
"receipt_1001"
A key-value store of custom metadata to attach to the order. Maximum 15 key-value pairs, with keys and values up to 256 characters each.
Whether the order allows partial payments. If true, the customer can pay the amount in multiple installments.
false
Response
The order was successfully created.
A Razorpay Order object representing a payment order.
Unique identifier for the order.
"order_IluGWxBm9U8zJ8"
Entity type, always order for order objects.
"order"
The order amount in the smallest currency sub-unit (e.g., paise for INR). For example, 50000 represents ₹500.
50000
The amount paid against the order, in the smallest currency sub-unit.
0
The remaining amount to be paid against the order, in the smallest currency sub-unit.
50000
The ISO 4217 currency code for the order.
"INR"
A unique receipt number provided by the merchant for internal reference.
"receipt_1001"
The current status of the order.
created, attempted, paid "created"
The number of payment attempts made against this order.
0
A key-value store of custom metadata to attach to the order. Values must be strings.
Unix timestamp (in seconds) at which the order was created.
1595491008