---
title: "Verify razorpay payment"
method: POST
path: "/ecommerce/orders/provider/razorpay/verify-payment"
tags: ["🛒 Ecommerce"]
---

# Verify razorpay payment

`POST /ecommerce/orders/provider/razorpay/verify-payment`

The API handles the verification of a Razorpay payment.

Once a user completes the payment, this API receives the Razorpay generated order credentials after payment (`razorpay_payment_id`, `razorpay_order_id`, `razorpay_signature`).

It then verifies the payment using the provided credentials and marks the corresponding order as paid if the received credentials are valid.

This API ensures secure and reliable payment processing, enabling the system to accurately track and manage paid orders.

## Request body

- object
  - `razorpay_order_id` string
  - `razorpay_payment_id` string
  - `razorpay_signature` string

## Response `201`

Verify razorpay payment

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `address` string
    - `createdAt` string
    - `customer` string
    - `isPaymentDone` boolean
    - `items` object[]
      - `_id` string
      - `productId` string
      - `quantity` number
    - `orderPrice` number
    - `paymentId` string
    - `paymentProvider` string
    - `status` string
    - `updatedAt` 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)
