Skip to content

Endpoint

  • Method: GET
  • Path: /affiliates/{id}/visits
  • Edition: Core
  • Controller: AffiliateController@getVisits
  • Route source: app/Http/Routes/api.php

GET List Affiliate Visits

GET
/affiliates/{id}/visits

List visits for an affiliate.

Controller: AffiliateController@getVisits
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

Path Parameters

id*

The id.

Type
integer
Required

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
{
"visits": {
"data": [
{
"id": 0,
"affiliate_id": 0,
"url": "string",
"ip": "string",
"created_at": "string",
"referrals": [
{
"id": 0,
"visit_id": 0,
"status": "string",
"amount": "string",
"currency": "string"
}
]
}
],
"total": 0,
"per_page": 0,
"current_page": 0
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentAffiliate developer documentation