External accounts Get an external account
Get an external account
Returns one external account. After a 202, poll every 30 to 60 seconds until `status` is `active` (ready for transfers) or `setup_failed` (read `error_message`, then correct the account with PATCH). Not-found is a 400.
Api-Key
Path parameters
NameDescription
external_account_idID of the external account
Response
Returns 200 OK. The external account
NameDescription
dataAn external account. Empty fields are left out.
Show 21 child attributesobject
idUse it as the transfer destination
institution_idpayee_typeHow the account is paid. bank_account and mobile_money are active at once. swift, sepa, ach_wire and fps need a setup step and start as pending.
Possible values: bank_account, mobile_money, swift, sepa, ach_wire, fps
account_numberinstitution_typePossible values:
bank, mobile_money, swift, swift_intermediaryinstitution_nameaccount_nameIn upper case. It may be the name the bank holds.
ibanbiccustomer_idcurrencyinstitution_country_iso_codeaddressThe account holder's address. Required for
swift, sepa, ach_wire and fps, and for some banks and payout corridors.Show 7 child attributesobject
address_line1address_line2house_building_numbercitystatepostal_codeChecked against the country's postal code format
countryAlpha-2 code
account_owner_typePossible values:
individual, businessrouting_numberstatuspending while setup runs, then active (ready for transfers) or setup_failed (read error_message, then correct it with PATCH).
Possible values: pending, active, setup_failed, archived, deleted
date_createdphone_numbererror_messageWhy setup failed
national_id_typenational_id_maskedThe national ID with only the last 4 characters shown
errorErrors
| Status | Meaning |
|---|---|
| 200 | The external account |
| 400 | Invalid request, an unknown ID or a failure. Read error. A not-found error is a 400 here, not a 404. |
Was this page helpful? Yes No
Previous
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"id": "6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60",
"payee_type": "swift",
"account_number": "12345678",
"institution_id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"institution_type": "swift",
"institution_name": "Example Bank",
"account_name": "ACME TRADING LTD",
"bic": "MIDLGB22",
"customer_id": "3130ca8b-8b32-4843-8623-bf83e766b86a",
"currency": "USD",
"institution_country_iso_code": "GB",
"account_owner_type": "business",
"status": "setup_failed",
"date_created": "2026-10-12T09:15:22.481Z",
"error_message": "these account details could not be accepted"
},
"error": null
}
{
"data": null,
"error": "payee 6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60: resource not found",
"code": "ERROR_CODE_NOT_FOUND"
}