External accountsGet an external account

Get an external account

Fetch one external account.

curl -X GET "https://sandbox.rasto.co/api/external_accounts/ea_03567iJcFl4c64mAlyBMzS" \
  -H "Content-Type: application/json" \
  -H "Api-Version: 2026-08-01" \
  -H "Api-Key: YOUR_API_KEY"
{
  "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"
}
GET
/api/external_accounts/{external_account_id}
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
external_account_idstring
Required

The external account's id (ea_...).

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

external_account_idstring
Required

The external account's id (ea_...).

Example:
ea_03567iJcFl4c64mAlyBMzS

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

account_holderobject

Who holds the account and how they relate to the customer.

bank_accountobject

The bank account in its country's own fields. The account number is never returned in full, only as last_4.

created_atstring

When the object was created, as an ISO 8601 timestamp.

currencystring

The currency the account is paid in, for example inr.

customer_idstring

The customer the object belongs to.

idstring

The object's unique identifier. Its prefix names the object kind, for example cus_ for a customer.

objectstring

The kind of object this is, for example customer or transaction. Every object the API returns carries it.

partner_reference_idstring

Your own identifier for the object, unique per environment. null when you set none.

payment_railstring

The payment rail the account is paid over, for example rda.

statusstring

The external account's status: pending while the account is checked, active once it can be paid, closed when you close it or the check refuses it.