Skip to content

Endpoint

  • Method: PATCH
  • Path: /referrals/{id}
  • Edition: Core
  • Controller: ReferralController@update
  • Route source: app/Http/Routes/api.php

PATCH Update Referral

PATCH
/referrals/{id}

Update a referral.

Controller: ReferralController@update
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

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
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentAffiliate developer documentation