v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Razorpay Payments

Verify Razorpay Subscription Authorization

Verify the Razorpay Checkout signature for the subscription authorization payment before recording the authorization payment ID locally.

post/api/payments/razorpay/{environment}/subscriptions/verify

Path parameters

environment'test' | 'live' required

Payment provider environment.

Request body

subscriptionIdstring required
paymentIdstring required
signaturestring required

Example request

{
  "subscriptionId": "sub_123",
  "paymentId": "pay_123"
}

Response

Razorpay subscription authorization verified

verifiedboolean required

Example response

{
  "subscription": {
    "subscriptionId": "sub_123",
    "planId": "plan_123",
    "customerId": "cust_123",
    "authorizationPaymentId": "pay_123"
  }
}