Listar membros do cliente
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/customer/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/user?status=architecto&role=architecto&per_page=16" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/customer/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/user");
const params = { "status": "architecto", "role": "architecto", "per_page": "16",};Object.keys(params) .forEach(key => url.searchParams.append(key, params[key]));
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/customer/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/user';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'status' => 'architecto', 'role' => 'architecto', 'per_page' => '16', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/customer/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/user'params = { 'status': 'architecto', 'role': 'architecto', 'per_page': '16',}headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers, params=params)response.json()Os usuários que entram na conta do cliente, com o papel e a situação de cada um — o mesmo objeto do user no
SSO e dos webhooks seller.customer.user.*. Use no reconcile para conferir os membros quando um evento se
perder: membro que não está mais na lista foi removido, e só status = active deve ter acesso.
role é o papel efetivo: o dono da conta (is_owner) vale sempre admin.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”The ID of the customer.
Query Parameters
Seção intitulada “Query Parameters”Filtrar por situação (active, inactive, suspended, pending).
Filtrar por situação (active, inactive, suspended, pending).
Filtrar pela coluna de papel (admin, operations, support, financial, marketing).
Filtrar pela coluna de papel (admin, operations, support, financial, marketing).
Itens por página (máx: 100, padrão: 20).
Itens por página (máx: 100, padrão: 20).
Responses
Seção intitulada “Responses”object
object
object
Example
{ "data": { "current_page": 1, "data": [ { "object": "user", "id": "01HZ...", "customer_id": "01HZ...", "name": "Ana Souza", "role": "admin", "is_owner": true, "status": "active", "created_at": "2026-01-10T12:00:00+00:00", "updated_at": "2026-10-14T13:00:00+00:00" } ], "total": 1 }}object
Example
{ "error": "Recurso não encontrado"}