External accountsList a customer's external accounts

List a customer's external accounts

List one customer's external accounts, newest first.

curl -X GET "https://sandbox.rasto.co/api/customers/cus_03567dbmmINi56C3sJCM7O/external_accounts?limit=25&cursor=MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM%3D" \
  -H "Content-Type: application/json" \
  -H "Api-Version: 2026-08-01" \
  -H "Api-Key: YOUR_API_KEY"
{
  "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
}
GET
/api/customers/{customer_id}/external_accounts
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

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.

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.
path
customer_idstring
Required

The customer's id (cus_...).

query
limitinteger

How many to return, from 1 to 100. Defaults to 25.

Min: 1 • Max: 100
query
cursorstring

Where to continue: the next_cursor of the previous page. Omit for the first page.

header
Api-Versionstring

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

header
Api-Keystring
Required

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.

Path Parameters

customer_idstring
Required

The customer's id (cus_...).

Example:
cus_03567dbmmINi56C3sJCM7O

Query Parameters

limitinteger

How many to return, from 1 to 100. Defaults to 25.

Example:
25
cursorstring

Where to continue: the next_cursor of the previous page. Omit for the first page.

Example:
MjAyNi0xMS0yOVQxNzo1OTo0NC4zNjU4MTMrMDA6MDB8YmNoXzAzNTY3ZjBJdWQxanhvaG16NFpmRGM=

Headers

Api-Versionstring

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.

Example:
2026-08-01

Responses

dataarray

The objects on this page of the list.

has_moreboolean

Whether more results follow this page. To fetch them, pass next_cursor as the cursor query parameter.

next_cursorstring

The opaque cursor for the next page. null when there are no more results.