Listar campanhas
https://api.affiliates.iugu.com/campaigns
Retorna uma lista de campanhas
| 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 campanha
https://api.affiliates.iugu.com/campaigns
Cria uma nova campanha
| 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
10
11
12
13
14
15
{
"campaign": {
"name": "Campanha de Verão",
"workspace_id": "bcaee2c9-7a3c-4941-86ea-2dd5e7158845",
"event": "Pix",
"kind": 2,
"amount": 0.1,
"start_date": "2023-12-09",
"end_date": "2023-12-13",
"level_config": {
"level_1": 50,
"level_2": 50
}
}
}
|
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 201 |
Created
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 |
Unprocessable Entity
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 |
Bad Request
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Atualizar campanha
https://api.affiliates.iugu.com/campaigns/{id}
Atualiza uma campanha
| 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
10
11
12
{
"campaign": {
"name": "Campanha de Verão",
"event": "Pix",
"kind": 2,
"amount": 0.1,
"level_config": {
"level_1": 50,
"level_2": 50
}
}
}
Parâmetros de Path
-
id
Obrigatório
StringID da campanha
|
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 |
OK
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 |
Unprocessable Entity
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 |
Bad Request
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 |
Not Found
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deletar campanha
https://api.affiliates.iugu.com/campaigns/{id}
Exclui uma campanha
| Flow type: | clientCredentials |
| Token URL: | https://identity.iugu.com/token |
| Scopes: | |
Parâmetros de Path
-
id
Obrigatório
StringID da campanha
|
Respostas |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 |
OK
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 |
Not Found
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 |
Internal Server Error
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||