Listar pedidos de associação
RegistosGET /account-link-requests
Returns the workspace's queue of requests from people asking to be linked to a customer account. By default only pending requests are listed; status accepts pending, approved, rejected or cancelled. Results are paginated with limit (default 20, maximum 100) and the after cursor. Requires the business:accounts:link-requests:read permission.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
statuspending (default), approved or rejected
Devolve
200 Link requests
Mostrar atributos
dataMostrar atributos filhos
idtenant_idaccount_idaccount_holder_nameDisplay name of the customer who holds the referenced account. Omitted when unknown.
identity_idaccount_numberphonestatusum de
pending,approved,rejected,cancelledreason
has_morenext_cursor
Permissões business:accounts:link-requests:read · Funções: admin, customer_service, owner
curl -X GET "$BUSINESS_API/account-link-requests" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/account-link-requests", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/account-link-requests",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/account-link-requests", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"data": [
{
"id": "acc_2EuRxSyNd8kv1G6pXooBRwCv7KW",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"account_id": "act_2JFioNDgIfvkgflk8RtcqhBaARP",
"account_holder_name": "Ana Matsinhe",
"identity_id": "ide_2W4tFuAzbOoV5aORlgwJHqwRdkg",
"account_number": "ACC-2026-000142",
"phone": "+258841234567",
"status": "pending",
"reason": "Leitura confirmada no local."
}
],
"has_more": true,
"next_cursor": "next cursor"
}