Approve an affiliate application

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

Approves a pending affiliate application. The affiliate will be activated and can start generating referrals and earning commissions.

Path Parameters

uuid string*

UUID of the affiliate application to approve.

Responses

200 Affiliate approved successfully.

Affiliate approved successfully.

status integer
affiliate Affiliate
400 Validation or business logic error. Possible causes:
401 Missing or invalid Bearer token.
/affiliates/approve/{uuid}
1const response = await fetch("https://api.tamio.com/v2/affiliates/approve/{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": {}
  }
}