Payments
Capture a payment
Capture an authorized payment to collect funds. Must be called within the capture window (default 5 days). Amount must exactly equal authorized amount unless partial capture is enabled.
post/payments/{id}/capture
Request
- Base URLhttps://api.razorpay.com/v1
- Auth
- HTTP basic
- or OAuth 2Authorization codehttps://mcp.razorpay.com/authorizeClient credentialsToken URLhttps://mcp.razorpay.com/tokenScopesread_only
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Payment ID (pay_*). Must be in 'authorized' status.
Request body
Response
Payment captured. Status changes to 'captured'.
Changes
No recorded changes to this operation across all 1 revision of this API.