Add a bonus to an affiliate

POST https://api.tamio.com/v2/affiliates/bonus/add/{uuid}

Adds a bonus amount to an affiliate partner's balance. The amount is specified in the smallest currency unit (e.g., cents).

Path Parameters

uuid string*

UUID of the affiliate to add the bonus to.

Body Parameters

amount integer*

Bonus amount in the smallest currency unit.

Responses

200 Bonus added successfully.

Bonus added successfully.

status integer
affiliate Affiliate
400 Validation or business logic error. Possible causes:
401 Missing or invalid Bearer token.
/affiliates/bonus/add/{uuid}
1const response = await fetch("https://api.tamio.com/v2/affiliates/bonus/add/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "affiliate": {
    "object": "affiliate",
    "email": "string",
    "name": "string",
    "surname": "string",
    "address": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postcode": "string",
    "vat": "string",
    "telephone": "string",
    "billing_information": {},
    "id": "string",
    "bonus": 0,
    "approved": false,
    "date_joined": 0,
    "language": "string",
    "payments": [],
    "has_notes": false,
    "sales": 0,
    "referrals": 0,
    "affiliate_program_id": "string",
    "affiliate_program_label": "string",
    "currency": "string",
    "balance": {}
  }
}