v1
latestOpenAPI 3.0.32026-07-26172157253.6 KBRazorpay Payments
Sync Razorpay Payments State For One Environment
Sync items, plans, customers, subscriptions, invoices, and payments for one Razorpay environment. Razorpay remains the source of truth.
post/api/payments/razorpay/{environment}/sync
Path parameters
environment'test' | 'live' required
Payment provider environment.
Response
Sync result for the requested Razorpay environment
Example response
{
"results": [
{
"connection": {
"accountId": "acc_123",
"merchantName": "Example Merchant",
"webhookEndpointId": "manual",
"webhookEndpointUrl": "https://api.example.com/api/webhooks/razorpay/test",
"maskedKey": "rzp_test_...abcd"
}
}
]
}