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
| Name | In | Description |
|---|---|---|
Idempotency-Key | header | Repeat a write safely: the same key and body return the first answer. |
Request body
| Field | Type | Description |
|---|---|---|
payment_reference required | string | |
amount_paise required | integer | Amount in paise (₹1 = 100 paise)min 1 |
payee | string | |
merchant | string | |
paid_at | integer | |
source | "razorpay" | "cashfree" | "pine_labs" | "payu" | "juspay" | "phonepe" | "paytm" | "bank_statement" | "other" | |
check | string |
Returns
| Field | Type | Description |
|---|---|---|
object | "payment" | |
id | string | |
payment_reference | string | |
amount_paise | integer | Amount in paise (₹1 = 100 paise)min 1 |
status | "matched" | "over_amount" | "unchecked" | |
check | string or null | |
detail | string |
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"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/payments", {
"payment_reference": "UPI-RRN-430011",
"amount_paise": 184500,
"payee": "freshcart@okhdfc",
"merchant": "FreshCart",
"source": "razorpay",
"check": "chk_P1iENx01EDRJ"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/payments", {
"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
| Name | In | Description |
|---|---|---|
limit | query | |
starting_after | query | An id from the previous page |
status | query | one of matched, over_amount, unchecked |
Returns
| Field | Type | Description |
|---|---|---|
object required | "list" | |
data required | array of object | |
has_more required | boolean |
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"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/payments");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/payments")Response
{
"object": "list",
"data": [
{
"object": "payment",
"id": "chk_P1iENx01EDRJ",
"payment_reference": "UPI-RRN-430011"
}
],
"has_more": true
}