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🔗
amountmandatory-
integerAmount in currency subunits. For cards, the minimum value is100(₹1). currencymandatory-
stringThe 3-letter ISO currency code for the payment. Currently, we only supportINR. customer_idmandatory-
stringThe unique identifier of the customer. methodoptional-
stringPayment method used to make the registration transaction. Possible value iscard. If no value is passed, by default,cardwill be assumed. token-
Provides token details.
max_amountoptionalintegerIndicates the threshold value for which additional factor of authentication flow is chosen. The value500000(₹5000) will be set as max_amount by default.expire_atoptionalintegerThe 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.frequencyoptionalstringFrequency for subsequent debits. If not provided, value defaults toas_presented.
receiptoptional-
stringA user-entered unique identifier for the order. For example,Receipt No. 1. This parameter should be mapped to theorder_idsent by Razorpay. notesoptional-
stringKey-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”.