Comprehensive documentation, SDKs, and support to get you from API key to production.
Complete API documentation with examples
Official libraries for Node.js, Java, Python
Real-time API status and uptime
Create your first payment with just a few lines of code.
All API requests require authentication via Bearer token in the Authorization header:
Authorization: Bearer <YOUR_API_KEY>Include an Idempotency-Key header to safely retry requests:
Idempotency-Key: <UUID># Create a payment
curl -X POST https://api.paytroz.com/v1/payments \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": 49900,
"currency": "INR",
"method": "upi",
"metadata": {"order_id": "ORD-123"}
}'Use test API keys for development. No real transactions will be processed.
https://sandbox.api.paytroz.comReceive real-time notifications for payment events.
payment.succeededPayment completed successfully
payment.failedPayment attempt failed
refund.processedRefund successfully processed
refund.failedRefund attempt failed
{
"event": "payment.succeeded",
"timestamp": "2025-10-02T14:30:00Z",
"data": {
"payment_id": "pay_abc123xyz",
"amount": 49900,
"currency": "INR",
"status": "succeeded",
"method": "upi",
"gateway": "razorpay",
"metadata": {
"order_id": "ORD-123"
}
},
"signature": "sha256_hmac_signature_here"
}Process full or partial refunds programmatically.
curl -X POST https://api.paytroz.com/v1/payments/pay_abc123/refund \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": 49900,
"reason": "customer_request"
}'Our team is here to help you integrate and scale.
Get help from our engineering team via email or Slack.
Join our developer community for discussions and updates.