Skip to content

Endpoint

  • Method: POST
  • Path: /affiliates
  • Edition: Core
  • Controller: AffiliateController@createAffiliate
  • Route source: app/Http/Routes/api.php

POST Create Affiliate

POST
/affiliates

Create a new affiliate.

Controller: AffiliateController@createAffiliate
Route source: app/Http/Routes/api.php

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
}

Responses

Successful response

application/json
JSON
{
"message": "string",
"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"
}
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentAffiliate developer documentation