Pular para o conteúdo

Listar membros do cliente

GET
/api/seller/external/v1/customer/{id}/user
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"

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.

id
required
string

The ID of the customer.

status

Filtrar por situação (active, inactive, suspended, pending).

string

Filtrar por situação (active, inactive, suspended, pending).

role

Filtrar pela coluna de papel (admin, operations, support, financial, marketing).

string

Filtrar pela coluna de papel (admin, operations, support, financial, marketing).

per_page

Itens por página (máx: 100, padrão: 20).

integer

Itens por página (máx: 100, padrão: 20).

Media typeapplication/json
object
data
object
current_page
integer
data
Array<object>
object
object
string
id
string
customer_id
string
name
string
email
string
role
string
is_owner
boolean
status
string
created_at
string
updated_at
string
total
integer
Example
{
"data": {
"current_page": 1,
"data": [
{
"object": "user",
"id": "01HZ...",
"customer_id": "01HZ...",
"name": "Ana Souza",
"email": "[email protected]",
"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
}
}
Media typeapplication/json
object
error
string
Example
{
"error": "Recurso não encontrado"
}