Get Affiliates
Prod Env
Prod Env
GET
/affiliates
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
page
integer
optional
Example:
1
per_page
integer
optional
Example:
25
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 --request GET 'https://api.sweetref.com/affiliates?page=1&per_page=25'
Responses
🟢200Success
application/json
Body
data
array[object (Affiliate) {20}]
required
id
string
required
code
string
required
conversions_count
integer
optional
created_at
string <date-time>
optional
email
string <email>
required
first_name
string
required
last_name
string
required
payouts_count
integer
optional
paypal_email
string <email>
optional
referrals_count
integer
optional
signups_count
integer
optional
source
string
optional
status
enum<string>
required
Allowed values:
pendingapprovedrejected
total_commission_cents
integer
optional
total_payout_cents
integer
optional
total_profit_cents
integer
optional
total_revenue_cents
integer
optional
updated_at
string <date-time>
optional
visits_count
integer
optional
wise_email
string <email>
optional
meta
object (Pagination Metadata)
required
total_pages
integer
required
total_count
integer
required
current_page
integer
required
Example
{
"data": [
{
"id": "string",
"code": "string",
"conversions_count": 0,
"created_at": "2019-08-24T14:15:22Z",
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"payouts_count": 0,
"paypal_email": "user@example.com",
"referrals_count": 0,
"signups_count": 0,
"source": "string",
"status": "pending",
"total_commission_cents": 0,
"total_payout_cents": 0,
"total_profit_cents": 0,
"total_revenue_cents": 0,
"updated_at": "2019-08-24T14:15:22Z",
"visits_count": 0,
"wise_email": "user@example.com"
}
],
"meta": {
"total_pages": 0,
"total_count": 0,
"current_page": 0
}
}
Modified at 2024-11-11 16:35:29