Listar contas associadas
RegistosGET /account-links
Returns every link the signed-in person has, as one list in data: active account memberships (kind membership, with permissions and any expiry) and link requests still pending or rejected by the utility (kind request, with the rejection reason). Approved or cancelled requests are omitted. The list is not paginated.
Devolve
200 Links
Mostrar atributos
dataMostrar atributos filhos
idkindum de
membership,requesttenant_idaccount_idaccount_holder_nameDisplay name of the customer who holds the referenced account. Omitted when unknown.
account_numberstatusum de
active,pending,rejectedpermissions
curl -X GET "$CONSUMER_API/account-links" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$CONSUMER_API/account-links", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$CONSUMER_API/account-links",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$CONSUMER_API/account-links", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"data": [
{
"id": "acc_2ugPtQizpWAJZ60Rp2uN9AOjT6w",
"kind": "membership",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"account_id": "act_2JFioNDgIfvkgflk8RtcqhBaARP",
"account_holder_name": "Ana Matsinhe",
"account_number": "ACC-2026-000142",
"status": "active",
"permissions": [
"permission"
]
}
]
}