TheWavlyDocs
DocsAPI reference

Payments

Report real debits from your payment provider or bank statement. TheWavly matches each one to the check that allowed it, or flags it as over_amount or unchecked.

Report a real debit for reconciliation

POST/v1/paymentsSecret key · scope payments:write

Parameters

NameInDescription
Idempotency-KeyheaderRepeat a write safely: the same key and body return the first answer.

Request body

FieldTypeDescription
payment_reference requiredstring
amount_paise requiredintegerAmount in paise (₹1 = 100 paise)min 1
payeestring
merchantstring
paid_atinteger
source"razorpay" | "cashfree" | "pine_labs" | "payu" | "juspay" | "phonepe" | "paytm" | "bank_statement" | "other"
checkstring

Returns

FieldTypeDescription
object"payment"
idstring
payment_referencestring
amount_paiseintegerAmount in paise (₹1 = 100 paise)min 1
status"matched" | "over_amount" | "unchecked"
checkstring or null
detailstring

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/payments \
  -H "Authorization: Bearer $WAVLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "payment_reference": "UPI-RRN-430011",
  "amount_paise": 184500,
  "payee": "freshcart@okhdfc",
  "merchant": "FreshCart",
  "source": "razorpay",
  "check": "chk_P1iENx01EDRJ"
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "payment_reference": "UPI-RRN-430011",
  "amount_paise": 184500,
  "status": "paid",
  "check": "chk_P1iENx01EDRJ"
}

List reported debits with a summary

GET/v1/paymentsSecret key · scope payments:read

Parameters

NameInDescription
limitquery
starting_afterqueryAn id from the previous page
statusqueryone of matched, over_amount, unchecked

Returns

FieldTypeDescription
object required"list"
data requiredarray of object
has_more requiredboolean

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl https://thewavly.com/v1/payments \
  -H "Authorization: Bearer $WAVLY_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "payment",
      "id": "chk_P1iENx01EDRJ",
      "payment_reference": "UPI-RRN-430011"
    }
  ],
  "has_more": true
}