List external accounts
List every external account for the partner, newest first.
curl -X GET "https://sandbox.rasto.co/api/external_accounts?limit=25&cursor=MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM%3D&customer_id=cus_03567dbmmINi56C3sJCM7O&partner_reference_id=user-8213" \
-H "Content-Type: application/json" \
-H "Api-Version: 2026-08-01" \
-H "Api-Key: YOUR_API_KEY"
import requests
import json
url = "https://sandbox.rasto.co/api/external_accounts?limit=25&cursor=MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM%3D&customer_id=cus_03567dbmmINi56C3sJCM7O&partner_reference_id=user-8213"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Api-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/external_accounts?limit=25&cursor=MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM%3D&customer_id=cus_03567dbmmINi56C3sJCM7O&partner_reference_id=user-8213", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Api-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://sandbox.rasto.co/api/external_accounts?limit=25&cursor=MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM%3D&customer_id=cus_03567dbmmINi56C3sJCM7O&partner_reference_id=user-8213", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Api-Version", "2026-08-01")
req.Header.Set("Api-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://sandbox.rasto.co/api/external_accounts?limit=25&cursor=MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM%3D&customer_id=cus_03567dbmmINi56C3sJCM7O&partner_reference_id=user-8213')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Api-Version'] = '2026-08-01'
request['Api-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"data": [
{
"account_holder": {
"kind": "individual",
"name": "Priya Rao",
"relationship": "family"
},
"bank_account": {
"account_kind": "savings",
"bank_name": "HDFC Bank",
"ifsc": "HDFC0001234",
"kind": "in_bank_account",
"last_4": "9012"
},
"created_at": "2026-11-29T18:01:59.251806+00:00",
"currency": "inr",
"customer_id": "cus_03567d7njVQ4kHysbZCK51",
"id": "ea_03567iJcFl4c64mAlyBMzS",
"object": "external_account",
"partner_reference_id": null,
"payment_rail": "rda",
"status": "active"
}
],
"has_more": false,
"next_cursor": null
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567lBnTk9JpgXalkJlVY"
}
}
{
"error": {
"code": "invalid_parameter",
"kind": "invalid_request_error",
"message": "Input should be greater than or equal to 1",
"param": "query.limit",
"request_id": "req_03567lBnltras20bZ25Dgo"
}
}
{
"error": {
"code": "rate_limited",
"kind": "rate_limit_error",
"message": "Too many requests. Back off and retry after the indicated delay.",
"param": null,
"request_id": "req_03567lBnTk9JpgXalkJlVY"
}
}
{
"error": {
"code": "upstream_error",
"kind": "api_error",
"message": "The request could not be completed right now. Nothing was charged or changed; retry shortly, and contact support if it persists.",
"param": null,
"request_id": "req_03567lBnTk9JpgXalkJlVY"
}
}
/api/external_accounts
Target server for requests. Edit to use your own host.
Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.How many to return, from 1 to 100. Defaults to 25.
Where to continue: the next_cursor of the previous page. Omit for the first page.
Only those belonging to this customer.
Only those carrying this reference of yours.
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Query Parameters
Where to continue: the next_cursor of the previous page. Omit for the first page.
MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM=Headers
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
2026-08-01Responses
The objects on this page of the list.
Whether more results follow this page. To fetch them, pass next_cursor as the cursor query parameter.
The opaque cursor for the next page. null when there are no more results.