Tamio

Retrieve an affiliate partner

GET https://api.tamio.com/v2/affiliates/retrieve/{uuid}

Returns full details for a single affiliate partner, including statistics (sales, referrals) and affiliate program information with balance.

Path Parameters

uuid string*

UUID of the affiliate partner.

Responses

200 Affiliate partner details.

Affiliate partner details.

status integer
affiliate Affiliate
400 Validation or business logic error. Possible causes:
401 Missing or invalid Bearer token.
/affiliates/retrieve/{uuid}
1const response = await fetch("https://api.tamio.com/v2/affiliates/retrieve/{uuid}", {
2 headers: {
3 "Authorization": "Bearer YOUR_API_KEY",
4 "Accept": "application/json"
5 }
6});
7const data = await response.json();
Responses
{
  "status": 200,
  "affiliate": {
    "object": "affiliate",
    "email": "[email protected]",
    "name": "Jane",
    "surname": "Doe",
    "address": "123 Main Street",
    "city": "London",
    "state": "England",
    "country": "GB",
    "postcode": "SW1A 1AA",
    "vat": "GB123456789",
    "telephone": "+44 20 7946 0958",
    "billing_information": {
      "name": "Jane Doe",
      "email": "[email protected]",
      "address": "123 Main Street",
      "city": "London",
      "country": "GB",
      "postcode": "SW1A 1AA"
    },
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "bonus": 500,
    "approved": true,
    "date_joined": 1706140800,
    "language": "en",
    "payments": [
      "stripe",
      "paypal"
    ],
    "has_notes": false,
    "sales": 42,
    "referrals": 18,
    "affiliate_program_id": "f0e1d2c3-b4a5-6789-0fed-cba987654321",
    "affiliate_program_label": "Default Program",
    "currency": "USD",
    "balance": 15000
  }
}