TheWavlyDocs
DocsGuides

For payment providers

For payment aggregators, gateways and banks that carry agent payments. TheWavly gives you, on every agent payment, a signed record of what the user approved and whether the payment matched it, without holding money and without your customers changing rails.

What you integrate

StepEndpointKey needed
Verify the agent and its approvalPOST /v1/registry/verifyNo
Redeem the payment token, just before chargingPOST /v1/payment_tokens/redeemNo
Give the approval back if the charge failsPOST /v1/payment_tokens/releaseNo
Send debits for reconciliationPOST /v1/paymentsRestricted Payments key

The token is the permission: redemption needs no TheWavly account, so you can enforce TheWavly's answer for every merchant on your platform without onboarding each one.

Redeem and release

Redeem once, at the moment you are about to charge, with the amount, payee and your payment reference. TheWavly refuses:

  • a second use with another reference;
  • a higher amount than the user approved;
  • another payee;
  • an expired or replaced token.

Repeating the same redemption is safe. The answer's release_key is shown once: keep it with the payment. If the charge fails, release the token and the user's budget is restored.

Once you know what happened to the order, report it with POST /v1/payment_tokens/fulfilment and the same release key, with party: "payment_participant" if you speak for the payment rather than the shop. See Accept agent orders.

Reconcile real debits

Forward each debit from your webhooks to POST /v1/payments with source set to your name. TheWavly matches it to the check that allowed it by reference, then by payee and amount, and answers:

StatusMeaning
matchedThe debit belongs to a check that allowed it.
over_amountThe debit is above what the check allowed.
uncheckedMoney moved that no check allowed. This includes a second debit on an already paid check.

Each result is also a webhook event (payment.matched, payment.over_amount, payment.unchecked).

Evidence for your disputes team

When a customer disputes an agent payment, the check's evidence pack (GET /v1/checks/{id}/evidence) shows:

  • what the user approved, in their words and as rules;
  • what the agent tried to buy, field by field against the rules;
  • whether the user approved any exception;
  • the debit that followed.

It is signed, so anyone can verify it offline. The disputes guide covers findings and appeals.

UPI mandates

Every mandate returns upi: the block amount, the per-debit limit, the validity and the payees for a matching UPI Reserve Pay block or One Time Mandate. The rail's limits and TheWavly's rules then agree.

Pilot in a week

Sign up, open Playground → Load the walkthrough to see every record type in test mode, then follow the one-week pilot plan: shadow mode, redeem and release, and three real closed disputes replayed. Talk to us to set one up.