Skip to content

Endpoint

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

GET Get Affiliate

GET
/affiliates/{id}

Retrieve a single affiliate by ID.

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

Responses

Successful response

application/json
JSON
{
"affiliate": {
"id": 0,
"user_id": 0,
"status": "string",
"affiliate_code": "string",
"rate": "string",
"rate_type": "string",
"earnings_balance": "string",
"total_paid": "string",
"total_unpaid": "string",
"created_at": "string",
"updated_at": "string",
"bank_details": {
},
"rate_details": [
{
}
],
"widgets": [
{
}
],
"attached_coupons": [
{
}
],
"share_url": "string"
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentAffiliate developer documentation