# API: Get affiliate
# getAffiliate
Get affiliate details
# Required parameters
Parameter | Description |
---|---|
id | Affiliate ID |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getAffiliate&id=ID
# PHP Samples
# Response
{
"success": true,
"affiliate": {
"client_id": "230",
"parent_id": "0",
"withdraw_method": "2",
"sendreport": "0",
"visits": "21",
"total_commissions": 2049.97,
"total_withdrawn": 2000,
"commision_plans": "",
"landing_url": "",
"options": "0",
"conversion": "276",
"balance": "49.97",
"pending": "27.35",
"firstname": "Gisselle Zieme",
"lastname": "Lockman1",
"currency_id": "0",
"date_created": "2021-03-25",
"cookie_days": "0",
"status": "Active",
"aff_brand_id": "1",
"id": "1",
"currency": {
"code": "",
"iso": "USD",
"sign": "$",
"format": "1,234.56",
"decimal": "2",
"rounding": "2",
"rounding_mode": "HALF_UP",
"id": 0,
"rate": 1
}
},
"clients": [
{
"aff_id": "1",
"client_id": "39",
"date": "2017-07-31 08:38:38",
"by": "admin",
"firstname": "John",
"lastname": "Doe",
"companyname": "The HostBill B.V."
}
],
"withdrawals": [
{
"id": "1",
"aff_id": "1",
"date": "2015-08-24 02:07:02",
"amount": "115.00",
"currency_id": "0",
"transaction_id": "",
"note": " afasdf",
"method": "0",
"status": "1",
"trans_id": ""
}
],
"call": "getAffiliate",
"server_time": 1684239263
}