Listar Afiliados
https://api.affiliates.iugu.com/affiliates
Retorna uma lista de afiliados
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
OK
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 |
Bad Request
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 |
Not Found
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Criar Afiliados
https://api.affiliates.iugu.com/affiliates
Cria um novo afiliado
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Schema Obrigatório Tipo de conteúdo: application/json |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
1
2
3
4
5
6
7
8
{
"affiliate": {
"name": "Influencer instagram",
"document": "38235467828",
"workspace_id": "59c596f1-17a0-4aa4-83a4-4710f273f7ed",
"parent_affiliate_id": "489bdd40-a179-4a8a-9708-34e61d35bec0"
}
}
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201 |
Created
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
422 |
Unprocessable Entity
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 |
Bad Request
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Atualizar Afiliados
https://api.affiliates.iugu.com/affiliates/{id}
Atualiza um afiliado
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Schema Obrigatório Tipo de conteúdo: application/json |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
1
2
3
4
5
6
7
{
"affiliate": {
"name": "Influencer instagram",
"document": "38235467828",
"parent_affiliate_id": "489bdd40-a179-4a8a-9708-34e61d35bec0"
}
}
Parâmetros de Path
-
id
Obrigatório
StringID do afiliado
Parâmetros de Query
-
name
Obrigatório
StringNome do afiliado
-
document
Obrigatório
StringCPF/CNPJ do afiliado
-
parent_affiliate_idString
ID do afiliado que indicou
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
OK
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
422 |
Unprocessable Entity
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 |
Bad Request
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 |
Not Found
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Excluir Afiliados
https://api.affiliates.iugu.com/affiliates/{id}
Exclui um afiliado
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Parâmetros de Path
-
id
Obrigatório
StringID do afiliado
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
OK
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 |
Not Found
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|