settings-v0
Change the company's Subscription Pro settings
Turns features on or off and sets options. Refused while Subscription Pro is not active (subscription_pro_inactive). Turning a feature on is refused when Fluid does not offer it to the company (feature_unavailable) or the company does not meet its precondition (precondition_failed, with the feature and the reason in details). Turning a feature off is always allowed. The request names the lock_version it read, and a change on top of a newer one is refused with 409 (stale_settings). Returns the settings as GET does.
PATCH
/
api
/
subscription_pro
/
settings
Change the company's Subscription Pro settings
curl --request PATCH \
--url https://api.fluid.app/api/subscription_pro/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lock_version": 2,
"features": {
"cancel_flow": true
},
"reminder_lead_days": 5,
"retention_offer_cooldown_days": 90
}
'import requests
url = "https://api.fluid.app/api/subscription_pro/settings"
payload = {
"lock_version": 2,
"features": { "cancel_flow": True },
"reminder_lead_days": 5,
"retention_offer_cooldown_days": 90
}
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({
lock_version: 2,
features: {cancel_flow: true},
reminder_lead_days: 5,
retention_offer_cooldown_days: 90
})
};
fetch('https://api.fluid.app/api/subscription_pro/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/subscription_pro/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([
'lock_version' => 2,
'features' => [
'cancel_flow' => true
],
'reminder_lead_days' => 5,
'retention_offer_cooldown_days' => 90
]),
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/subscription_pro/settings"
payload := strings.NewReader("{\n \"lock_version\": 2,\n \"features\": {\n \"cancel_flow\": true\n },\n \"reminder_lead_days\": 5,\n \"retention_offer_cooldown_days\": 90\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/subscription_pro/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lock_version\": 2,\n \"features\": {\n \"cancel_flow\": true\n },\n \"reminder_lead_days\": 5,\n \"retention_offer_cooldown_days\": 90\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_pro/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 \"lock_version\": 2,\n \"features\": {\n \"cancel_flow\": true\n },\n \"reminder_lead_days\": 5,\n \"retention_offer_cooldown_days\": 90\n}"
response = http.request(request)
puts response.read_body{
"subscription_pro": {
"active": true,
"lock_version": 3,
"reminder_lead_days": 5,
"retention_offer_cooldown_days": 90,
"features": {
"autoship_profiles": {
"setting": false,
"available": true,
"enabled": false,
"precondition_failure": "bundle_subscriptions_off"
},
"cancel_flow": {
"setting": true,
"available": true,
"enabled": true,
"precondition_failure": null
},
"renewal_webhook": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
},
"sms_reminders": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
},
"tenure_pricing": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
},
"milestone_items": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
}
}
},
"status": 200,
"meta": {
"request_id": "7d2f4c1a-9b3e-4f6d-8a21-3c5e0b9f1d42",
"timestamp": "2026-10-10T14:05:31Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer token authentication
Body
application/json
The lock_version the settings were read at.
Required range:
x >= 0Features to turn on or off. A feature left out keeps its setting.
Show child attributes
Show child attributes
Required range:
1 <= x <= 14Required range:
30 <= x <= 730⌘I
Change the company's Subscription Pro settings
curl --request PATCH \
--url https://api.fluid.app/api/subscription_pro/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lock_version": 2,
"features": {
"cancel_flow": true
},
"reminder_lead_days": 5,
"retention_offer_cooldown_days": 90
}
'import requests
url = "https://api.fluid.app/api/subscription_pro/settings"
payload = {
"lock_version": 2,
"features": { "cancel_flow": True },
"reminder_lead_days": 5,
"retention_offer_cooldown_days": 90
}
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({
lock_version: 2,
features: {cancel_flow: true},
reminder_lead_days: 5,
retention_offer_cooldown_days: 90
})
};
fetch('https://api.fluid.app/api/subscription_pro/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/subscription_pro/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([
'lock_version' => 2,
'features' => [
'cancel_flow' => true
],
'reminder_lead_days' => 5,
'retention_offer_cooldown_days' => 90
]),
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/subscription_pro/settings"
payload := strings.NewReader("{\n \"lock_version\": 2,\n \"features\": {\n \"cancel_flow\": true\n },\n \"reminder_lead_days\": 5,\n \"retention_offer_cooldown_days\": 90\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/subscription_pro/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lock_version\": 2,\n \"features\": {\n \"cancel_flow\": true\n },\n \"reminder_lead_days\": 5,\n \"retention_offer_cooldown_days\": 90\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_pro/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 \"lock_version\": 2,\n \"features\": {\n \"cancel_flow\": true\n },\n \"reminder_lead_days\": 5,\n \"retention_offer_cooldown_days\": 90\n}"
response = http.request(request)
puts response.read_body{
"subscription_pro": {
"active": true,
"lock_version": 3,
"reminder_lead_days": 5,
"retention_offer_cooldown_days": 90,
"features": {
"autoship_profiles": {
"setting": false,
"available": true,
"enabled": false,
"precondition_failure": "bundle_subscriptions_off"
},
"cancel_flow": {
"setting": true,
"available": true,
"enabled": true,
"precondition_failure": null
},
"renewal_webhook": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
},
"sms_reminders": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
},
"tenure_pricing": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
},
"milestone_items": {
"setting": false,
"available": false,
"enabled": false,
"precondition_failure": null
}
}
},
"status": 200,
"meta": {
"request_id": "7d2f4c1a-9b3e-4f6d-8a21-3c5e0b9f1d42",
"timestamp": "2026-10-10T14:05:31Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}