List repayments
curl --request GET \
--url https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments', 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://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments",
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://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments"
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://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments")
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_bodyRepayments
List repayments
Fetch the paginated list of a loan’s repayment transactions.
GET
/
v1
/
loans
/
external
/
{loan_external_id}
/
repayments
List repayments
curl --request GET \
--url https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments', 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://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments",
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://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments"
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://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.bsa.ai/v1/loans/external/{loan_external_id}/repayments")
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_bodyReturns the loan’s repayment transactions — newest first, with
pagination. Built for a “Loan Transaction Details” view where a loan may
have many partial payments. Only customer repayments are listed;
disbursements, waivers, and accruals are excluded.
For a quick snapshot without pagination, the same entries are also
embedded as
See Pagination for the common envelope.
repaymentHistory on the
single-loan response. Use this endpoint when you need
paging or the full history in isolation.
Addressed by the loan’s externalId (this read has no numeric-id form).
Path parameters
string
required
The loan’s externalId.
Query parameters
integer
default:"1"
integer
default:"10"
string
Return only the repayment posted with this dedupe token (your wallet
transaction reference) — one item, or an empty result if no such
repayment was ever recorded. This is the read-only way to determine a
timed-out repayment’s final status; see
Timeouts and retries.
Examples
curl -sf "$BASE/v1/loans/external/loan-ext-12345/repayments?page=1&rows=25" \
-H "Authorization: Bearer $TOKEN"
# Final status of a possibly-timed-out repayment, by your own reference:
curl -sf "$BASE/v1/loans/external/loan-ext-12345/repayments?idempotencyKey=wallet-txn-abc123" \
-H "Authorization: Bearer $TOKEN"
Response
200 OK. Each item is a repayment object and is
always a customer repayment, ordered newest first.
{
"items": [
{
"id": "249",
"type": "Repayment",
"date": "2026-06-04",
"amount": 5550,
"principal": 5000,
"interest": 550,
"status": "posted"
},
{
"id": "238",
"type": "Repayment",
"date": "2026-05-28",
"amount": 2000,
"principal": 900,
"interest": 1100,
"idempotencyKey": "wallet-txn-abc123",
"status": "posted"
}
],
"total": 2,
"page": 1,
"rowsPerPage": 25
}
Errors
| Code | When |
|---|---|
not_found | No loan with that id or externalId |
invalid_argument | Invalid page / rows |

