Skip to content
SprintPay
Developers

An API designed by people who've shipped payments.

Idempotent endpoints, signed webhooks, a hosted sandbox, and SDKs for every major stack. Go from zero to a successful test payout in an afternoon.

Quickstart

Two calls. One payment.

collect-payment.ts
// Create a customer, then collect payment — two calls.
// All requests authenticated via headers; no SDK required.

// 1. Create customer
const customer = await fetch("https://api.sprintpay.io/customer/create", {
  method: "POST",
  headers: {
    "X-API-KEY":      process.env.SPRINTPAY_API_KEY,
    "X-API-SECRET":   process.env.SPRINTPAY_API_SECRET,
    "Content-Type":   "application/json",
  },
  body: JSON.stringify({
    firstName: "Maria", lastName: "Silva",
    customerEmail: "maria@example.com",
    countryCode: "IN", birthDate: "1990-01-15",
    merchantCustomerId: "CUST-001", phoneNo: "14155552671",
  }),
}).then(r => r.json());

// 2. Initiate UPI payment
const payment = await fetch("https://api.sprintpay.io/api/payment", {
  method: "POST",
  headers: { "X-API-KEY": process.env.SPRINTPAY_API_KEY,
             "X-API-SECRET": process.env.SPRINTPAY_API_SECRET,
             "Content-Type": "application/json" },
  body: JSON.stringify({
    amount: 1200, currency: "INR", paymentMethod: "UPI",
    merchantRef: "ORD-001", notes: "Invoice #INV-001",
    clientIp: "1.2.3.4", customerId: customer.data.customerId,
    callbackUrl: "https://yoursite.com/payment/callback",
  }),
}).then(r => r.json());

// Redirect customer to complete payment
window.location.href = payment.data.redirectUrl;

REST, JSON, Idempotent

Every mutation accepts an idempotency-key. Retries are safe. No surprises.

Webhooks Designed for Prod

Signed, retried with exponential backoff, with replay tooling in the dashboard.

Secure by Default

OAuth 2.0, mTLS for high-volume customers, IP allowlisting, audit logs on every endpoint.

SDKs for Every Stack

First-party SDKs for TypeScript, Python, Go and Java. Open-source on GitHub.

API Reference

Full REST API reference — live now.

Every endpoint, parameter, error code, and webhook event documented with request/response examples. Signature verification, UPI Seamless AES decryption, and more.

Ready When You Are

Move money like it's 2026.

Tell us about your corridor, volume and timeline. The SprintPay team — payments engineers and compliance specialists — will scope an integration plan within 24 hours.