3.1. Create an Order to Charge the Customer🔗
You have to create a new order every time you want to charge your customers. This order is different from the one created when you created the authorization transaction.
Use the below endpoint to create an order.
Request Parameters🔗
amount
mandatory-
integer
Amount in currency subunits. For cards, the minimum value is100
(₹1). currency
mandatory-
string
The 3-letter ISO currency code for the payment. Currently, we only supportINR
. customer_id
mandatory-
string
The unique identifier of the customer. method
optional-
string
Payment method used to make the registration transaction. Possible value iscard
. If no value is passed, by default,card
will be assumed. token
-
Provides token details.
max_amount
optionalinteger
Indicates the threshold value for which additional factor of authentication flow is chosen. The value500000
(₹5000) will be set as max_amount by default.expire_at
optionalinteger
The timestamp of the token expiry date in UNIX format.
The card expiry date will be used as default if you do not pass the value.
Also, the response will be null if you do not pass the value during the order creation.frequency
optionalstring
Frequency for subsequent debits. If not provided, value defaults toas_presented
.
receipt
optional-
string
A user-entered unique identifier for the order. For example,Receipt No. 1
. This parameter should be mapped to theorder_id
sent by Razorpay. notes
optional-
string
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example,"note_key": "Beam me up Scotty”
.