Skip to content

Endpoint

  • Method: GET
  • Path: /portal/stats
  • Edition: Core
  • Controller: PortalController@getStats
  • Route source: app/Http/Routes/api.php

GET Get Portal Stats

GET
/portal/stats

Get the authenticated affiliate's summary stats.

Controller: PortalController@getStats
Route source: app/Http/Routes/api.php

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Responses

Successful response

application/json
JSON
{
"stats": {
"total_paid": "string",
"total_unpaid": "string",
"total_referrals": 0,
"conversion_rate": "string"
},
"recent_referrals": [
{
"id": 0,
"affiliate_id": 0,
"visit_id": 0,
"order_id": "string",
"status": "string",
"amount": "string",
"currency": "string",
"provider": "string",
"provider_url": "string",
"created_at": "string",
"updated_at": "string"
}
],
"portal_notice_html": "string"
}

Playground

Authorization

Samples

Powered by VitePress OpenAPI

FluentAffiliate developer documentation