Skip to content

IntegrationsPayment Gateway · Beta

Setu API integration

Put Setu in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Built for specific customer use cases. Issues are resolved quickly.

01Proxy API

Call the Setu API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the Setu API. You call us, we call Setu, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APISetu

GEThttps://api.truto.one/proxy/?integrated_account_id=…

Setu’s own response, passed back

02MCP server

Setu tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets Setu tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin Setu
  • Auth tokenCreate
  • Payment linkGet one, Create
  • Bill expiryCreate
  • Refund batchGet one, Create
  • RefundGet one
  • Mock paymentCreate
  • Mock settlementCreate
  • Transaction reportCreate
  • BillersList
  • Bill fetchCreate
  • BillGet one
  • Biller billGet one
  • Bill fulfilmentCreate
  • Bill settlementCreate
  • Customer validationCreate
  • Whatsapp billCreate
  • Whatsapp bill fetchCreate
  • Whatsapp campaignCreate
Show tool names20 tools, for developers
  • create_a_setu_auth_tokenGenerate a Setu access token from a Bridge OAuth key (clientID and secret). Truto calls this automatically when connecting and every 20 minutes to refresh the token; call it directly only to check a key. Tokens are valid for 1800 seconds. Returns status, success and data (token, expiresIn).
  • create_a_setu_payment_linkCreate a UPI DeepLinks payment link (a UPI deep link, short link and QR) that a customer can pay from any UPI app. Amounts are in paise. Returns data with platformBillID, paymentLink (upiID, shortURL, upiLink) and the bill details. Required: amountExactness, billerBillID.
  • get_single_setu_payment_link_by_idGet the payment status of a UPI DeepLinks payment link by its platformBillID. Returns data with status (BILL_CREATED, PAYMENT_SUCCESSFUL, PAYMENT_FAILED, CREDIT_RECEIVED, SETTLEMENT_SUCCESSFUL, SETTLEMENT_FAILED, BILL_EXPIRED), amount details, receipt and payment details. Required: id.
  • create_a_setu_bill_expiryExpire an unpaid Setu bill or UPI DeepLinks payment link by its platformBillID so it can no longer be paid. Works for UPI DeepLinks links and BBPS BillCollect bills. Returns status and success. Required: platform_bill_id.
  • create_a_setu_refund_batchInitiate a batch of full or partial refunds for one or more UPI DeepLinks payments, identified by bill ID. Returns data with batchID and per-refund results (refund ID, status, amounts) plus errors for items that failed validation. Required: refunds.
  • get_single_setu_refund_batch_by_idGet the status of a UPI DeepLinks refund batch by batch ID. Returns data with batchID and the refunds in the batch with their status (Created, Initiated, Success, Rejected, Failed) and amounts. Required: id.
  • get_single_setu_refund_by_idGet the status of a single UPI DeepLinks refund by refund ID. Returns data with the refund id, bill ID, status, refund amount, type and timestamps. Required: id.
  • create_a_setu_mock_paymentSandbox only: simulate a customer paying a UPI DeepLinks payment link so the bill moves to PAYMENT_SUCCESSFUL and notifications fire. Not available in production. Returns status, success and data with the mock UTR. Required: amount, destinationAccount, sourceAccount.
  • create_a_setu_mock_settlementSandbox only: simulate settlement of one or more paid UPI DeepLinks transactions so they move to SETTLEMENT_SUCCESSFUL. Not available in production. Returns an empty body on success. Required: transactions.
  • create_a_setu_transaction_reportRetrieve Setu transaction, settlement or refund report rows for UPI DeepLinks or BBPS BillCollect, for reconciliation. Filter by date range and bill status; page with pagination.cursor and limit (100-500). Requires the Partner ID to be set on the connection. Returns the rows and the next cursor. Required: productInstanceIDOfReport.
  • list_all_setu_billersList the BBPS billers available to this BBPS BillCollect product configuration. Returns data with each biller and its customer identifiers and categories.
  • create_a_setu_bill_fetchFetch the outstanding bills of a customer from a BBPS biller using the customer identifiers. Returns data with the customer, billFetchStatus and the bills (platformBillID, amount, due date, payment amount exactness). Required: billerProductInstanceID, customerIdentifiers.
  • get_single_setu_bill_by_idGet a BBPS BillCollect bill by its Setu platformBillID, including its payment status. Returns data with the bill, status, receipt and settlement details. Required: id.
  • get_single_setu_biller_bill_by_idGet a BBPS BillCollect bill by the biller's own bill ID (billerBillID), optionally filtered by status. Returns data with the matching bill and its payment status. Required: id.
  • create_a_setu_bill_fulfilmentRequest payment of a fetched BBPS bill by its platformBillID, passing the amount and payment details. Returns data with the bill status and receipt. Required: platform_bill_id, payment, transactionID.
  • create_a_setu_bill_settlementSettle one or more paid BBPS bills to a settlement account. Returns status, success and data with the settlement result. Required: settlement.
  • create_a_setu_customer_validationValidate a customer with a BBPS biller (validate and pay flow) using the customer identifiers before collecting payment. Returns data with the validated customer and validation status. Required: billerProductInstanceID, customerIdentifiers.
  • create_a_setu_whatsapp_billWhatsApp Collect: create a bill and send it to the customer on WhatsApp with a Pay Now UPI link. Production only (Setu has no WhatsApp Collect sandbox). Returns the send result. Required: bill, channels.
  • create_a_setu_whatsapp_bill_fetchWhatsApp Collect: fetch the latest bill from your system through your configured bill fetch API and send it to the customer on WhatsApp with a Pay Now link. Production only. Returns the send result. Required: bill, channels.
  • create_a_setu_whatsapp_campaignWhatsApp Collect: upload a CSV to create or fetch bills in bulk and send them, or payment reminders, to customers on WhatsApp. Production only. Returns the campaign result. Required: name, channel, id, file.

AMCP serverno code

For any MCP client

One URL per connected Setu account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every Setu tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

One API for Setu and every other Payment Gateway app. One mapping to go.

The Unified Payment Gateway API gives every Payment Gateway app the same call and the same data shape. Setu is not mapped to it yet. Map it yourself, or ask us.

Setuon Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified Payment Gateway APIOne mapping to goTo do

Then: one call for every Payment Gateway app

  • Path 1 Self-serve

    Map it yourself

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the Setu data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 per category a month

    • 30-day trial on Free
    • Your own unified models: Pro add-on, $499 a month

    See pricing

04Sync and webhooks

Sync Setu data on a schedule. Sent to your webhook.

A sync job reads Setu records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any Setu endpoint. With the Truto CLI.

Need a Setu endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any Setu path through the Custom API.

On every plan, including Free. Truto CLI

Use cases

Why integrate with Setu.

  1. Embed UPI collections for Indian lenders

    Loan management SaaS and NBFC platforms can offer native EMI collection via UPI deep links and WhatsApp reminders, reducing bounce rates without forcing their users to build Setu plumbing themselves.

  2. Enable BBPS BillCollect for recurring billers

    School ERPs, housing society platforms, and utility billing SaaS can make their customers discoverable as billers on any Indian banking app, with live bill fetch driven directly from the SaaS's own invoice ledger.

  3. Automate UPI refunds for D2C commerce platforms

    Order management and returns SaaS can initiate batched UPI refunds the moment a return is approved, and keep customer-facing status in sync without manual finance ops.

  4. Ship WhatsApp-based collections for high-volume billers

    Billing and subscription SaaS serving the Indian market can offer bulk WhatsApp payment campaigns as a native feature, letting their customers push due invoices to borrowers or subscribers with a pay-now UPI link.

  5. Deliver zero-touch reconciliation to finance teams

    ERP and AR automation SaaS can pull Setu transaction reports on a schedule to auto-reconcile invoices, replacing manual bank statement matching for their finance ops users.

What you can build

Ship these with Truto and Setu.

  • Dynamic UPI payment links on every invoice

    Generate a Setu payment link with QR, short URL, and UPI intent on invoice creation, with strict amount exactness so customers can't short-pay.

  • BBPS biller bill-fetch webhook handler

    Respond to BBPS bill-fetch and customer validation requests in real time so end-consumers can pay your users' bills from any UPI or banking app.

  • Scheduled WhatsApp dunning campaigns

    Upload a CSV of due invoices to trigger a Setu WhatsApp campaign that sends personalized pay-now links, plus one-off WhatsApp bills for ad-hoc collections.

  • One-click UPI refund workflow

    Fire a Setu refund batch on return approval and poll the batch and individual refund status to drive a live refund tracker in your product UI.

  • Auto-expire and reissue overdue payment links

    Use bill expiry to invalidate stale links on missed due dates and immediately issue a new link with late fees recalculated by your billing logic.

  • Sandbox CI pipeline for payment flows

    Wire mock payment and mock settlement calls into your test suite to simulate UPI success and settlement cycles without moving real money.

Security

Your customers’ Setu data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Our OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s Setu account

    Use Truto’s frontend SDK to connect your customer’s Setu account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call Setu

    Truto’s Proxy API is a 1-to-1 mapping of the Setu API. You call us, we call Setu, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate Setu’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about Setu on Truto.

How does authentication to Setu work through Truto?

Setu uses token-based auth. Truto handles the create auth token flow for each of your connected users, refreshes tokens on expiry, and injects them into every downstream API call so you never store Setu credentials yourself.

Which Setu products are covered by the available tools?

The current toolset covers UPI DeepLinks (payment links, refunds, transaction reports), BBPS BillCollect (billers, bill fetch, customer validation, bill fulfilment, bill settlement), and WhatsApp Collect (WhatsApp bills, bill fetch, and campaigns), along with mock payment and settlement for sandbox testing.

Can we reconcile payments without polling constantly?

Yes. You can call the Setu transaction report tool with a date range and product instance to pull paginated reconciliation data, which is the recommended pattern for updating invoice status in bulk rather than per-transaction polling.

Is there a sandbox we can test against before going live?

Yes. Setu exposes mock payment and mock settlement endpoints, both available as Truto tools, so you can simulate successful UPI collections and settlement cycles end-to-end in CI without real funds.

How do refunds work through the integration?

You create a refund batch containing one or more refunds, then retrieve the batch or individual refund by ID to track status. This lets you power a refund tracker that moves from initiated to success in your own UI.

Does Truto support BBPS bill fetch where Setu calls back into our system?

The tools let you register and query billers, create bill fetches, validate customers, and fulfil and settle bills. The inbound webhook from Setu (when a consumer initiates payment from their banking app) is handled via Truto's webhook forwarding so your backend can respond with the live outstanding amount.

Setu

Get Setu integrated into your app

Sign up free, connect a test Setu account and make your first call today. No card and no sales call.