Listar eventos
https://api.affiliates.iugu.com/events
Retorna uma lista de eventos
Flow type: | clientCredentials |
Token URL: | https://identity.iugu.com/token |
Scopes: |
|
Parâmetros de Query
-
affiliate_idString
ID do afiliado
Ex: 0004knrGjQ8uD9wIHVaCWH
-
eventString
Tipo de evento
Ex: evento_verao
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 evento
https://api.affiliates.iugu.com/events
Cria novos eventos
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
{
"events": [
{
"affiliate_id": "7iCCaotmWlRFig39trAXkB",
"event": "Boleto",
"amount": 100.0,
"idempotency_key": 23231233
}
]
}
Parâmetros no Cabeçalho
-
workspace_id
Obrigatório
StringIdentificador do workspace
Ex: 4fHECmQtLdROI4fDLWMiLd
Respostas |
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 |
Criação bem-sucedida
|
||||||||||||||||||||
|
|||||||||||||||||||||
422 |
Unprocessable Entity
|
||||||||||||||||||||
|
|||||||||||||||||||||
500 |
Internal Server Error
|
||||||||||||||||||||
|