v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
🛒 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 body

addressIdstring

Example request

{
  "addressId": "64b0589005c0bdf2d75643b7"
}

Response

Generate razorpay order

messagestring
statusCodenumber
successboolean

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
}