https://api.affiliates.iugu.com/campaign_affiliates
Adiciona afiliado à campanha
Sem ações implementadas definidas
Request
|
Headers |
|
|---|---|
|
workspace_id
Required Type: string Identificador do workspace Ex: 4fHECmQtLdROI4fDLWMiLd |
|
|
Body Required Content Type: application/json |
||||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
1
2
3
4
5
6
{
"campaign_affiliate": {
"campaign_id": "7cXdkOCm6T0AdctrTWPlGI",
"affiliate_id": "78tMFXyBPArVWHw33blSDe"
}
}
Response
|
201 |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Created
|
||||||||||||||
1
2
3
4
5
6
7
8
9
{
"affiliate_id": "78tMFXyBPArVWHw33blSDe",
"affiliate_name": "Influencer",
"campaign_id": "7cXdkOCm6T0AdctrTWPlGI",
"campaign_name": "Campanha de verão",
"campaign_event": "BlackFriday",
"created_at": "2023-12-08T16:41:22.922Z",
"updated_at": "2023-12-08T16:44:02.572Z"
}
|
422 |
||||||||
|---|---|---|---|---|---|---|---|---|
|
Unprocessable Entity
|
||||||||
1
2
3
4
{
"campaign": "[\"must exist\"]",
"affiliate": "[\"must exist\"]"
}
|
401 |
||||||
|---|---|---|---|---|---|---|
|
Unauthorized
|
||||||
1
2
3
4
5
{
"status": "401",
"title": "JWT VALIDATION ERROR",
"detail": "Signature has expired"
}
|
500 |
||||||
|---|---|---|---|---|---|---|
|
Internal Server Error
|
||||||
1
2
3
4
5
{
"status": "500",
"title": "Internal Server Error",
"detail": "Internal Error, try again later"
}