Skip to content

Endpoint ​

  • Method: GET
  • Path: /referrals/export
  • Edition: Core
  • Controller: ReferralController@export
  • Route source: app/Http/Routes/api.php
  • Access: ReferralPolicy — manage_options, or read_all_referrals, manage_all_referrals or manage_all_data.

GET Export Referrals​

GET
/referrals/export

Export referrals as CSV.

Controller: ReferralController@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
15
page

Page number (1-based).

Type
integer
Default
1
search

Search query string.

Type
string
status

Filter by status.

Type
string

Responses​

Successful response

application/json
JSON
{
"referrals": [
{
"id": 0,
"affiliate_name": "string",
"affiliate_email": "string",
"amount": "12.50",
"order_total": "125.00",
"currency": "string",
"description": "string",
"provider": "string",
"provider_id": "string",
"type": "string",
"status": "string",
"created_at": "string"
}
],
"limited": true,
"total": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

FluentAffiliate developer documentation