Endpoint
- Method:
GET - Path:
/affiliates/export - Edition: Core
- Controller:
AffiliateController@export - Route source:
app/Http/Routes/api.php - Access:
AffiliatePolicy—manage_options, orread_all_affiliates,manage_all_affiliatesormanage_all_data.
GET Export Affiliates
GET
/affiliates/export
Export affiliates as a CSV file.
Controller: AffiliateController@export
Route source: app/Http/Routes/api.php
Authorizations
ApplicationPasswords
WordPress Application Passwords — use Basic auth with username:application_password.
Type
API Key (header: Authorization)
Parameters
Query Parameters
per_page
Number of items per page.
Type
integer
Default
15page
Page number (1-based).
Type
integer
Default
1search
Search query string.
Type
string
status
Filter by status.
Type
string
Responses
Successful response
application/json
JSON
{
"affiliates": [
{
"id": 0,
"full_name": "string",
"email": "string",
"payment_email": "string",
"rate_type": "string",
"rate": 0,
"status": "string",
"total_earnings": "90.90",
"unpaid_earnings": "0.00",
"referrals": 0,
"visits": 0,
"created_at": "string"
}
],
"limited": true,
"total": 0
}