Get Affiliate Referrals
Prod Env
Prod Env
GET
/affiliates/{affiliate_id/referrals
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.sweetref.com/affiliates/{affiliate_id/referrals'
Responses
🟢200Success
application/json
Body
data
array[object (Referral) {9}]
required
id
string
required
first_name
string
required
last_name
string
required
email
string
required
conversion_date
string
required
affiliate_id
string
required
total_commission
integer
required
created_at
string
required
updated_at
string
required
meta
object (Pagination Metadata)
required
total_pages
integer
required
total_count
integer
required
current_page
integer
required
Example
{
"data": [
{
"id": "string",
"first_name": "string",
"last_name": "string",
"email": "string",
"conversion_date": "string",
"affiliate_id": "string",
"total_commission": 0,
"created_at": "string",
"updated_at": "string"
}
],
"meta": {
"total_pages": 0,
"total_count": 0,
"current_page": 0
}
}
Modified at 2024-11-11 16:35:35