Skip to content

Endpoint

  • Method: POST
  • Path: /referrals
  • Edition: Core
  • Controller: ReferralController@createReferral
  • Route source: app/Http/Routes/api.php

POST Create Referral

POST
/referrals

Manually create a referral.

Controller: ReferralController@createReferral
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
{
"referral": {
"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"
},
"message": "string"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentAffiliate developer documentation