settings-v0
List the company's milestone rules
Every Subscription Pro milestone rule of the company, oldest first, with the version in force. A milestone rule gives configured items on a subscription’s first order, Nth order, every Nth order or anniversary. Needs the milestone_items feature to work for the company: Subscription Pro active, the release flag on and the merchant setting on. Reading changes nothing. Responses are not cached.
GET
/
api
/
subscription_pro
/
milestone_rules
List the company's milestone rules
curl --request GET \
--url https://api.fluid.app/api/subscription_pro/milestone_rules \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/subscription_pro/milestone_rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/subscription_pro/milestone_rules', 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/milestone_rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/subscription_pro/milestone_rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/subscription_pro/milestone_rules")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_pro/milestone_rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"milestone_rules": [
{
"id": 41,
"name": "Welcome bottle",
"status": "active",
"starts_at": null,
"ends_at": null,
"created_at": "2026-10-10T14:05:31Z",
"updated_at": "2026-10-10T14:07:02Z",
"current_version": {
"version": 1,
"trigger_type": "first_order",
"trigger_value": null,
"scope": "all",
"scope_ids": [],
"grant_per": "order",
"items": [
{
"item_key": "3f1c2a9e-5b7d-4e8f-9a1b-2c3d4e5f6a7b",
"variant_id": 9012,
"quantity": 1,
"fallback_variant_ids": []
}
],
"out_of_stock_policy": "substitute_then_defer",
"volume_policy": "zero",
"visibility": "announced",
"max_grants_per_subscription": null,
"created_at": "2026-10-10T14:05:31Z"
}
}
],
"status": 200,
"meta": {
"request_id": "7d2f4c1a-9b3e-4f6d-8a21-3c5e0b9f1d42",
"timestamp": "2026-10-10T14:07:10Z"
}
}{
"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"
}
}⌘I
List the company's milestone rules
curl --request GET \
--url https://api.fluid.app/api/subscription_pro/milestone_rules \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/subscription_pro/milestone_rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/subscription_pro/milestone_rules', 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/milestone_rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/subscription_pro/milestone_rules"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/subscription_pro/milestone_rules")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_pro/milestone_rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"milestone_rules": [
{
"id": 41,
"name": "Welcome bottle",
"status": "active",
"starts_at": null,
"ends_at": null,
"created_at": "2026-10-10T14:05:31Z",
"updated_at": "2026-10-10T14:07:02Z",
"current_version": {
"version": 1,
"trigger_type": "first_order",
"trigger_value": null,
"scope": "all",
"scope_ids": [],
"grant_per": "order",
"items": [
{
"item_key": "3f1c2a9e-5b7d-4e8f-9a1b-2c3d4e5f6a7b",
"variant_id": 9012,
"quantity": 1,
"fallback_variant_ids": []
}
],
"out_of_stock_policy": "substitute_then_defer",
"volume_policy": "zero",
"visibility": "announced",
"max_grants_per_subscription": null,
"created_at": "2026-10-10T14:05:31Z"
}
}
],
"status": 200,
"meta": {
"request_id": "7d2f4c1a-9b3e-4f6d-8a21-3c5e0b9f1d42",
"timestamp": "2026-10-10T14:07:10Z"
}
}{
"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"
}
}