Skip to content

Reports

Base URL: https://yoursite.com/wp-json/fluent-affiliate/v2

Endpoints

MethodPathDescription
GET/reportsadvanced-providersReportsController::getAdvancedReportProviders
GET/reportscommerce-reports/{provider}ReportsController::getReports
GET/reportsdashboard-statsDashboardController::getStats
GET/reportsdashboard-chart-statsDashboardController::getChartStats

GET /reportsadvanced-providers

ReportsController::getAdvancedReportProviders

Auth: Any authenticated WordPress user
Controller: ReportsController::getAdvancedReportProviders

bash
curl -X GET \
  https://yoursite.com/wp-json/fluent-affiliate/v2/reportsadvanced-providers \
  -H "X-WP-Nonce: YOUR_NONCE"

GET /reportscommerce-reports/{provider}

ReportsController::getReports

Auth: Any authenticated WordPress user
Controller: ReportsController::getReports

bash
curl -X GET \
  https://yoursite.com/wp-json/fluent-affiliate/v2/reportscommerce-reports/VALUE \
  -H "X-WP-Nonce: YOUR_NONCE"

GET /reportsdashboard-stats

DashboardController::getStats

Auth: Any authenticated WordPress user
Controller: DashboardController::getStats

bash
curl -X GET \
  https://yoursite.com/wp-json/fluent-affiliate/v2/reportsdashboard-stats \
  -H "X-WP-Nonce: YOUR_NONCE"

GET /reportsdashboard-chart-stats

DashboardController::getChartStats

Auth: Any authenticated WordPress user
Controller: DashboardController::getChartStats

bash
curl -X GET \
  https://yoursite.com/wp-json/fluent-affiliate/v2/reportsdashboard-chart-stats \
  -H "X-WP-Nonce: YOUR_NONCE"

Released under the GPL-2.0 License.