Fair Share
Update Fair Share settings
Updates the company’s Fair Share settings and returns the saved values. Each config field accepts only the values listed for it; anything else returns 422. The fairshare_settings object replaces the stored settings as a whole, so send every field you want to keep — an omitted field reverts to its default (last_touch, sponsor_rep, customer_rep, empty_rep, and a null orphan_sponsor_rep_id). Requires a company admin token with the company_settings.update permission.
PATCH
/
api
/
v2025-06
/
fairshare
/
settings
Update Fair Share settings
curl --request PATCH \
--url https://api.fluid.app/api/v2025-06/fairshare/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fairshare_settings": {
"attribution_config": "last_touch",
"order_volume_config": "attribution_rep",
"enrollment_volume_config": "customer_rep",
"orphan_sponsor_config": "select_rep",
"orphan_sponsor_rep_id": 48213
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/fairshare/settings"
payload = { "fairshare_settings": {
"attribution_config": "last_touch",
"order_volume_config": "attribution_rep",
"enrollment_volume_config": "customer_rep",
"orphan_sponsor_config": "select_rep",
"orphan_sponsor_rep_id": 48213
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fairshare_settings: {
attribution_config: 'last_touch',
order_volume_config: 'attribution_rep',
enrollment_volume_config: 'customer_rep',
orphan_sponsor_config: 'select_rep',
orphan_sponsor_rep_id: 48213
}
})
};
fetch('https://api.fluid.app/api/v2025-06/fairshare/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v2025-06/fairshare/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'fairshare_settings' => [
'attribution_config' => 'last_touch',
'order_volume_config' => 'attribution_rep',
'enrollment_volume_config' => 'customer_rep',
'orphan_sponsor_config' => 'select_rep',
'orphan_sponsor_rep_id' => 48213
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v2025-06/fairshare/settings"
payload := strings.NewReader("{\n \"fairshare_settings\": {\n \"attribution_config\": \"last_touch\",\n \"order_volume_config\": \"attribution_rep\",\n \"enrollment_volume_config\": \"customer_rep\",\n \"orphan_sponsor_config\": \"select_rep\",\n \"orphan_sponsor_rep_id\": 48213\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluid.app/api/v2025-06/fairshare/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fairshare_settings\": {\n \"attribution_config\": \"last_touch\",\n \"order_volume_config\": \"attribution_rep\",\n \"enrollment_volume_config\": \"customer_rep\",\n \"orphan_sponsor_config\": \"select_rep\",\n \"orphan_sponsor_rep_id\": 48213\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/fairshare/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fairshare_settings\": {\n \"attribution_config\": \"last_touch\",\n \"order_volume_config\": \"attribution_rep\",\n \"enrollment_volume_config\": \"customer_rep\",\n \"orphan_sponsor_config\": \"select_rep\",\n \"orphan_sponsor_rep_id\": 48213\n }\n}"
response = http.request(request)
puts response.read_body{
"fairshare_settings": {
"attribution_config": "last_touch",
"order_volume_config": "attribution_rep",
"enrollment_volume_config": "customer_rep",
"orphan_sponsor_config": "select_rep",
"orphan_sponsor_rep_id": 48213
},
"meta": {
"request_id": "c7d2a915-4e3b-4f81-9a6c-2b8e5d1f7a40",
"timestamp": "2026-09-30T16:42:11Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Show child attributes
Show child attributes
⌘I
Update Fair Share settings
curl --request PATCH \
--url https://api.fluid.app/api/v2025-06/fairshare/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fairshare_settings": {
"attribution_config": "last_touch",
"order_volume_config": "attribution_rep",
"enrollment_volume_config": "customer_rep",
"orphan_sponsor_config": "select_rep",
"orphan_sponsor_rep_id": 48213
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/fairshare/settings"
payload = { "fairshare_settings": {
"attribution_config": "last_touch",
"order_volume_config": "attribution_rep",
"enrollment_volume_config": "customer_rep",
"orphan_sponsor_config": "select_rep",
"orphan_sponsor_rep_id": 48213
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fairshare_settings: {
attribution_config: 'last_touch',
order_volume_config: 'attribution_rep',
enrollment_volume_config: 'customer_rep',
orphan_sponsor_config: 'select_rep',
orphan_sponsor_rep_id: 48213
}
})
};
fetch('https://api.fluid.app/api/v2025-06/fairshare/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v2025-06/fairshare/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'fairshare_settings' => [
'attribution_config' => 'last_touch',
'order_volume_config' => 'attribution_rep',
'enrollment_volume_config' => 'customer_rep',
'orphan_sponsor_config' => 'select_rep',
'orphan_sponsor_rep_id' => 48213
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v2025-06/fairshare/settings"
payload := strings.NewReader("{\n \"fairshare_settings\": {\n \"attribution_config\": \"last_touch\",\n \"order_volume_config\": \"attribution_rep\",\n \"enrollment_volume_config\": \"customer_rep\",\n \"orphan_sponsor_config\": \"select_rep\",\n \"orphan_sponsor_rep_id\": 48213\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.fluid.app/api/v2025-06/fairshare/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fairshare_settings\": {\n \"attribution_config\": \"last_touch\",\n \"order_volume_config\": \"attribution_rep\",\n \"enrollment_volume_config\": \"customer_rep\",\n \"orphan_sponsor_config\": \"select_rep\",\n \"orphan_sponsor_rep_id\": 48213\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/fairshare/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fairshare_settings\": {\n \"attribution_config\": \"last_touch\",\n \"order_volume_config\": \"attribution_rep\",\n \"enrollment_volume_config\": \"customer_rep\",\n \"orphan_sponsor_config\": \"select_rep\",\n \"orphan_sponsor_rep_id\": 48213\n }\n}"
response = http.request(request)
puts response.read_body{
"fairshare_settings": {
"attribution_config": "last_touch",
"order_volume_config": "attribution_rep",
"enrollment_volume_config": "customer_rep",
"orphan_sponsor_config": "select_rep",
"orphan_sponsor_rep_id": 48213
},
"meta": {
"request_id": "c7d2a915-4e3b-4f81-9a6c-2b8e5d1f7a40",
"timestamp": "2026-09-30T16:42:11Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}