---
title: "Generate razorpay order"
method: POST
path: "/ecommerce/orders/provider/razorpay"
tags: ["🛒 Ecommerce"]
---

# Generate razorpay order

`POST /ecommerce/orders/provider/razorpay`

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.

## Request body

- object
  - `addressId` string

## Response `200`

Generate razorpay order

- object
  - `data` object
    - `amount` number
    - `amount_due` number
    - `amount_paid` number
    - `attempts` number
    - `created_at` number
    - `currency` string
    - `entity` string
    - `id` string
    - `notes` unknown[]
      - unknown
    - `offer_id` unknown
    - `receipt` string
    - `status` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
