Listar Afiliados
https://api.affiliates.iugu.com/affiliates
Retorna uma lista de afiliados
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Parâmetros de Query
-
nameString
Nome do afiliado
Ex: Influencer instagram
-
documentString
CPF/CNPJ do afiliado
Ex: 38235467828
-
email
-
phone_numberString
Telefone do afiliado
Ex: 5511911112222
Parâmetros no Cabeçalho
-
workspace_id
Obrigatório
StringIdentificador do workspace
Ex: 4fHECmQtLdROI4fDLWMiLd
Respostas |
|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
OK
|
||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
401 |
Unauthorized
|
||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
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
9
{
"affiliate": {
"name": "Influencer instagram",
"document": "38235467828",
"email": "[email protected]",
"phone_number": "11942424545",
"parent_affiliate_id": "0XNFWtBURoI7O5vinlYjS2"
}
}
Parâmetros no Cabeçalho
-
workspace_id
Obrigatório
StringIdentificador do workspace
Ex: 4fHECmQtLdROI4fDLWMiLd
Respostas |
|||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201 |
Created
|
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
422 |
Unprocessable Entity
|
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
401 |
Unauthorized
|
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
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
8
9
{
"affiliate": {
"name": "Influencer instagram",
"document": "38235467828",
"email": "[email protected]",
"phone_number": "11942424545",
"parent_affiliate_id": "5N8wqsUjlwlxtx1tIqoP1a"
}
}
Parâmetros de Path
-
id
Obrigatório
StringID do afiliado
Ex: 5EufttluGZIPaQKN5PF4X4
Parâmetros no Cabeçalho
-
workspace_id
Obrigatório
StringIdentificador do workspace
Ex: 4fHECmQtLdROI4fDLWMiLd
Respostas |
|||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
OK
|
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
422 |
Unprocessable Entity
|
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
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
Ex: 5EufttluGZIPaQKN5PF4X4
Parâmetros no Cabeçalho
-
workspace_id
Obrigatório
StringIdentificador do workspace
Ex: 4fHECmQtLdROI4fDLWMiLd
Respostas |
|||||||
---|---|---|---|---|---|---|---|
200 |
OK
|
||||||
|
|||||||
404 |
Not Found
|
||||||
|
|||||||
500 |
Internal Server Error
|
||||||
|
Campanhas associadas a um afiliado
https://api.affiliates.iugu.com/campaign_affiliates
Retorna uma lista de relações entre campanhas e afiliados
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Parâmetros de Query
-
affiliate_idString
ID do afiliado
Ex: 5EufttluGZIPaQKN5PF4X4
Parâmetros no Cabeçalho
-
workspace_id
Obrigatório
StringIdentificador do workspace
Ex: 4fHECmQtLdROI4fDLWMiLd
Respostas |
|||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
OK
|
||||||||||||||||||
|
|||||||||||||||||||
401 |
Unauthorized
|
||||||||||||||||||
|
|||||||||||||||||||
404 |
Not Found
|
||||||||||||||||||
|
|||||||||||||||||||
500 |
Internal Server Error
|
||||||||||||||||||
|