🛒 Ecommerce
Generate razorpay order
The API allows a user to generate a Razorpay order instance, facilitating the creation of an order and initiating the checkout flow before the payment.
The API accepts the addressId of the user's address as input to associate it with the order.
This functionality enables users to seamlessly generate an order and proceed to the checkout process, providing a smooth and efficient payment experience using Razorpay integration.
post/ecommerce/orders/provider/razorpay
Request
- Base URLhttps://api.freeapi.app/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"addressId": "64b0589005c0bdf2d75643b7"
}Response
Generate razorpay order
Example response
{
"data": {
"amount": 96000,
"amount_due": 96000,
"created_at": 1686412801,
"currency": "INR",
"entity": "order",
"id": "order_M0HkIYFrBYHDnx",
"notes": [],
"receipt": "9Stii138Cx",
"status": "created"
},
"message": "Razorpay order generated",
"statusCode": 200,
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.