Payments
List Offline Payments
Retrieve a paginated list of offline payments recorded via bank transfer, cash, or cheque.
GET
/
v1
/
payments
/
offline
List offline payments
curl --request GET \
--url https://billing.example.com/v1/payments/offline \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/payments/offline"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/payments/offline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/payments/offline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/payments/offline"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/payments/offline")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/payments/offline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_type": "bank_transfer",
"amount": 123,
"tds_amount": 123,
"currency": "<string>",
"reference_number": "<string>",
"notes": "<string>",
"recorded_by": "<string>",
"recorded_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string (UUID) | No | Filter payments by customer ID. |
invoice_id | string | No | Filter payments linked to a specific invoice. |
limit | integer | No | Number of records to return (default 10, max 100). |
offset | integer | No | Number of records to skip (default 0). |
Example Request
curl -G https://api.recurso.dev/v1/payments/offline \
-H "Authorization: Bearer rsk_live_xxx" \
-d customer_id="cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-d limit=10
Response
Returns a paginated list of offline payment objects.{
"object": "list",
"data": [
{
"id": "pay_3c2b1a0f9e8d7654",
"object": "payment",
"customer_id": "cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"invoice_id": "inv_5d4c3b2a1f0e9876",
"payment_type": "bank_transfer",
"amount": 249900,
"currency": "INR",
"reference_number": "UTR-ICIC-20260623-001234",
"notes": "NEFT payment received from HDFC account ending 4521",
"recorded_by": "finance@acmecorp.com",
"status": "succeeded",
"channel": "offline",
"recorded_at": "2026-06-23T10:15:30Z",
"created_at": "2026-06-23T10:15:30Z",
"updated_at": "2026-06-23T10:15:30Z"
},
{
"id": "pay_8f7e6d5c4b3a2109",
"object": "payment",
"customer_id": "cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"invoice_id": null,
"payment_type": "cheque",
"amount": 150000,
"currency": "INR",
"reference_number": "CHQ-004782",
"notes": "Post-dated cheque deposited on 2026-06-20",
"recorded_by": "accounts@acmecorp.com",
"status": "succeeded",
"channel": "offline",
"recorded_at": "2026-06-20T14:30:00Z",
"created_at": "2026-06-20T14:30:00Z",
"updated_at": "2026-06-20T14:30:00Z"
}
],
"has_more": false,
"total_count": 2
}
Combine
customer_id and invoice_id filters to find all offline payments a customer has made toward a specific invoice.Errors
| Status | Code | When | Fix |
|---|---|---|---|
| 401 | unauthorized | API key missing or invalid (invalid_api_key), or a live/test mode mismatch (key_mode_mismatch). | Send Authorization: Bearer <api_key> with a key for the right mode. |
| 500 | internal_error | The list query failed server-side. | Retry; if it persists, contact support with the request timestamp. |
Authorizations
Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.
Query Parameters
Max rows returned (clamped to 1000).
Required range:
x <= 1000Rows to skip, for paging past the clamp.
Required range:
x >= 0Response
Offline payments for the tenant.
Show child attributes
Show child attributes
⌘I
List offline payments
curl --request GET \
--url https://billing.example.com/v1/payments/offline \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/payments/offline"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/payments/offline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/payments/offline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/payments/offline"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/payments/offline")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/payments/offline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_type": "bank_transfer",
"amount": 123,
"tds_amount": 123,
"currency": "<string>",
"reference_number": "<string>",
"notes": "<string>",
"recorded_by": "<string>",
"recorded_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}