Skip to the page

UPI pay-ins and bank payouts that tell you what happened.

AquaPay is one API across five payment providers in India. Every request ends in an answer you can act on: sent, refused, never sent, or not known yet. Your server never has to guess, and it never pays twice.

Send ₹4,999.00 to a bank account. What can come back?POST /api/v2/payouts

processingThe provider has it.

The payout is recorded, its amount held, and it is with the provider. A signed webhook reaches your server when it settles.

HTTP 201
"status": "processing"
"attemptKey": "8f3a1c52-7d0e-4b6a-9c1f-2e5d7a904b13"

failedRefused. Safe to send again.

The provider said no and holds nothing. AquaPay records the payout as failed, releases the hold and passes on the reason.

HTTP 422
"code": "provider_refused"
"retry": "new_key"

failedNever sent. Safe to send again.

The request did not reach the provider, so nothing can exist there. The hold is released.

HTTP 424
"code": "provider_unreachable"
"retry": "new_key"

processingNot known yet. Do not send again.

The provider may have acted. The payout stays processing, with its amount held, until a webhook or a refresh settles it either way.

HTTP 502
"code": "provider_outcome_unknown"
"retry": "refresh"

Money in, money out, and a straight answer about both.

The same calls work across PAYME, UPAYRPL, COWPAY and RSPAY. Your key decides the provider, and the answers keep one shape.

Pay-ins

  • Open a pay-in from your serverGet the provider's payment page to send the payer to, and a UPI link to open on a phone or draw as a QR code where the provider gives one.POST /api/v2/payins
  • Hear about it when it settlesA signed webhook reaches your server when the pay-in succeeds, fails, expires or needs a person to look at it.payin.succeeded
  • Ask the provider at any timeRead a pay-in from AquaPay's records, or refresh it from the provider when the payer says they have paid.POST /api/v2/payins/{payinId}/refresh
  • Bind a UTRWhen the payer has a bank reference and the provider has not matched it, bind it to the pay-in yourself.POST /api/v2/payins/{payinId}/bind-utr

Payouts

  • Pay a bank account or a UPI IDAn account number with its IFSC, or a UPI ID where the provider accepts one. A person approves each payout with the payment password.POST /api/v2/payouts
  • Send each payout exactly onceThe idempotency key is the payout's attempt key for good. A repeat is answered from the record, so a retry cannot pay twice.Idempotency-Key: 8f3a1c52-…
  • Know the cost before you sendA quote gives the fee and the total debit, and says whether the balance covers it now.GET /api/v2/payouts/quote
  • Settle the doubtful onesLook an attempt up by its key. One that never became a payout can be closed, so it never will.GET /api/v2/payout-attempts/{attemptKey}

One login for your team. Every gateway account kept separate.

Your organization has one gateway account for each gateway it uses. Payments, balance, API key and callback addresses belong to the account, never to a person, so nothing changes when someone joins or leaves. The console shows one account at a time and takes the colour of its provider, so nobody pays out from the wrong one. Try it.

Gateway account to preview

An afternoon to integrate.

  • Plain HTTP, and keys that say what they areNothing to install: every call is shown in curl, Node, Python, PHP, Go and Java, and the contract is published as OpenAPI. Keys carry scopes, an address allowlist, and roll without downtime.
  • Errors that say what to doEvery error carries a stable code, whether to retry, the request ID, and a link to its page in the docs.
  • A sandbox and live request logsPick an outcome with a magic amount, and watch each request arrive in the console with what was sent and what came back.
  • Ready for agentsThe MCP server takes the same keys. A read-only key lets an AI agent look things up and nothing more.
Open a pay-in
curl -X POST https://api.bhimpay.online/api/v2/payins \
  -H "Authorization: Bearer $AQUAPAY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "500",
    "currency": "INR",
    "reference": "order-1001",
    "payer": {
      "id": "customer-42",
      "ip": "203.0.113.7"
    },
    "returnUrl": "https://example.com/paid"
  }'

Have an account? Your keys are in the console.

AquaPay opens accounts for one organization at a time. If yours has one, sign in to create an API key, add a webhook endpoint and watch payments arrive.