settings-v0
Start a tenure program
Starts a draft program with no tiers. Tiers come with a publication. Needs the tenure pricing gate open, which means Subscription Pro is active, its release flag is on, the merchant’s setting is on, and no droplet already discounts subscription orders. A closed gate is 422 with the failed check in error.details.error, one of subscription_pro_inactive, release_flag_unavailable, release_flag_off, setting_off or droplet_tenure_conflict.
POST
/
api
/
subscription_pro
/
tenure_programs
Start a tenure program
curl --request POST \
--url https://api.fluid.app/api/subscription_pro/tenure_programs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Loyalty",
"axis": "paid_orders",
"scope": "all",
"scope_ids": []
}
'import requests
url = "https://api.fluid.app/api/subscription_pro/tenure_programs"
payload = {
"name": "Loyalty",
"axis": "paid_orders",
"scope": "all",
"scope_ids": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Loyalty', axis: 'paid_orders', scope: 'all', scope_ids: []})
};
fetch('https://api.fluid.app/api/subscription_pro/tenure_programs', 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/tenure_programs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Loyalty',
'axis' => 'paid_orders',
'scope' => 'all',
'scope_ids' => [
]
]),
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/tenure_programs"
payload := strings.NewReader("{\n \"name\": \"Loyalty\",\n \"axis\": \"paid_orders\",\n \"scope\": \"all\",\n \"scope_ids\": []\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/subscription_pro/tenure_programs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Loyalty\",\n \"axis\": \"paid_orders\",\n \"scope\": \"all\",\n \"scope_ids\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_pro/tenure_programs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Loyalty\",\n \"axis\": \"paid_orders\",\n \"scope\": \"all\",\n \"scope_ids\": []\n}"
response = http.request(request)
puts response.read_body{
"tenure_program": {
"id": 41,
"name": "Loyalty",
"status": "draft",
"axis": "paid_orders",
"scope": "all",
"scope_ids": [],
"apply_to_volume": false,
"archived_at": null,
"archive_discounts": null,
"current_version": null,
"created_at": "2026-10-10T14:00:00Z",
"updated_at": "2026-10-10T14:00:00Z"
},
"status": 201,
"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"
}
}Authorizations
Bearer token authentication
Body
application/json
The program's name.
Required string length:
1 - 255What tenure counts. It never changes after the program is created.
Available options:
paid_orders, months_subscribed Which subscriptions the program covers.
Available options:
all, plans, products The company's subscription plan ids for a plans scope, or product ids for a products scope. Empty for all.
Maximum array length:
500⌘I
Start a tenure program
curl --request POST \
--url https://api.fluid.app/api/subscription_pro/tenure_programs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Loyalty",
"axis": "paid_orders",
"scope": "all",
"scope_ids": []
}
'import requests
url = "https://api.fluid.app/api/subscription_pro/tenure_programs"
payload = {
"name": "Loyalty",
"axis": "paid_orders",
"scope": "all",
"scope_ids": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Loyalty', axis: 'paid_orders', scope: 'all', scope_ids: []})
};
fetch('https://api.fluid.app/api/subscription_pro/tenure_programs', 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/tenure_programs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Loyalty',
'axis' => 'paid_orders',
'scope' => 'all',
'scope_ids' => [
]
]),
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/tenure_programs"
payload := strings.NewReader("{\n \"name\": \"Loyalty\",\n \"axis\": \"paid_orders\",\n \"scope\": \"all\",\n \"scope_ids\": []\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/subscription_pro/tenure_programs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Loyalty\",\n \"axis\": \"paid_orders\",\n \"scope\": \"all\",\n \"scope_ids\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_pro/tenure_programs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Loyalty\",\n \"axis\": \"paid_orders\",\n \"scope\": \"all\",\n \"scope_ids\": []\n}"
response = http.request(request)
puts response.read_body{
"tenure_program": {
"id": 41,
"name": "Loyalty",
"status": "draft",
"axis": "paid_orders",
"scope": "all",
"scope_ids": [],
"apply_to_volume": false,
"archived_at": null,
"archive_discounts": null,
"current_version": null,
"created_at": "2026-10-10T14:00:00Z",
"updated_at": "2026-10-10T14:00:00Z"
},
"status": 201,
"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"
}
}