https://api.affiliates.iugu.com/api/affiliates
Retorna uma lista de afiliados
Request
Query params |
|
---|---|
name
Type: string Nome do afiliado Ex: Influencer instagram
document
Type: string CPF/CNPJ do afiliado Ex: 38235467828
email
Type: string Email do afiliado
phone_number
Type: string Telefone do afiliado Ex: 5511911112222 |
Headers |
|
---|---|
workspace_id
Required Type: string Identificador do workspace Ex: 4fHECmQtLdROI4fDLWMiLd |
Response
200 |
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OK
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"success": [
{
"id": "5N8wqsUjlwlxtx1tIqoP1a",
"name": "Primo Rico",
"workspace_id": "6AaVMPZBMTMweShgqdA7nR",
"email": "[email protected]",
"phone_number": "11942424545",
"document": "50949740098",
"created_at": "2023-12-20T17:46:49.461Z",
"updated_at": "2023-12-22T19:06:50.487Z",
"parent_affiliate": {
"id": "0XNFWtBURoI7O5vinlYjS2",
"name": "Primo Rico",
"email": "[email protected]",
"document": "50949740098"
}
}
]
}
401 |
||||||
---|---|---|---|---|---|---|
Unauthorized
|
1
2
3
4
5
{
"status": "401",
"title": "JWT VALIDATION ERROR",
"detail": "Signature has expired"
}
404 |
||
---|---|---|
Not Found
|
1
2
3
{
"message": "Registro não encontrado."
}
500 |
||||||
---|---|---|---|---|---|---|
Internal Server Error
|
1
2
3
4
5
{
"status": "500",
"title": "Internal Server Error",
"detail": "Internal Error, try again later"
}