Skip to main content
POST
Razorpay webhook receiver
This endpoint receives webhook events from Razorpay when payment-related events occur, such as successful payments, failed payments, and refunds.
This endpoint verifies the webhook signature using your Razorpay webhook secret. Configure this URL in your Razorpay Dashboard under Settings > Webhooks with the URL https://api.recurso.dev/webhooks/razorpay.

Example Request

Razorpay sends a POST request with event data:

Response

Returns 200 OK on successful processing.
If signature verification fails, the endpoint returns 400 Bad Request and the event is not processed. Ensure your Razorpay webhook secret in Recurso matches the one configured in the Razorpay Dashboard.

Authorizations

Authorization
string
header
required

Headers

X-Razorpay-Signature
string
required

HMAC-SHA256 signature of the raw request body.

Body

application/json

Raw Razorpay event payload.

Response

Event processed (or deliberately ignored).

status
enum<string>
Available options:
ok,
ignored
reason
string

Present when the event was ignored.