Record a member's consent to subscription terms
Droplet-only. Records a member’s consent to a company’s subscription terms given outside checkout, once for the whole screen: one entry in lines for each subscription the droplet will create. The company is the installation’s. Returns the acceptance and the id to send when creating each subscription. The row stores the exact text whose digest matched and the terms each line showed, and it cannot change afterward. Requires a droplet installation token with the orders scope; any other token is refused with 403, even an admin one. Customer, agreement and acceptance of another company are 404. A plan or variant of another company, an agreement that is not an active subscription_terms agreement, a digest that matches no live text of the agreement, a key the request does not declare, and every malformed field are 422, and nothing is written.
curl --request POST \
--url https://api.fluid.app/api/subscription_terms_acceptances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subscription_terms_acceptance": {
"customer_id": 123,
"agreement_id": 572567,
"content_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"surface": "subscriptions_widget",
"ip_address": "203.0.113.7",
"user_agent": "Mozilla/5.0 (Macintosh)",
"lines": [
{
"subscription_plan_id": 55,
"variant_id": 789,
"quantity": 1,
"product_title": "Daily Greens",
"variant_title": "30 servings",
"price": "29.99",
"currency_code": "USD",
"billing_interval": 1,
"billing_interval_unit": "month",
"first_bill_on": "2026-12-15"
}
]
}
}
'import requests
url = "https://api.fluid.app/api/subscription_terms_acceptances"
payload = { "subscription_terms_acceptance": {
"customer_id": 123,
"agreement_id": 572567,
"content_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"surface": "subscriptions_widget",
"ip_address": "203.0.113.7",
"user_agent": "Mozilla/5.0 (Macintosh)",
"lines": [
{
"subscription_plan_id": 55,
"variant_id": 789,
"quantity": 1,
"product_title": "Daily Greens",
"variant_title": "30 servings",
"price": "29.99",
"currency_code": "USD",
"billing_interval": 1,
"billing_interval_unit": "month",
"first_bill_on": "2026-12-15"
}
]
} }
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({
subscription_terms_acceptance: {
customer_id: 123,
agreement_id: 572567,
content_digest: '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08',
surface: 'subscriptions_widget',
ip_address: '203.0.113.7',
user_agent: 'Mozilla/5.0 (Macintosh)',
lines: [
{
subscription_plan_id: 55,
variant_id: 789,
quantity: 1,
product_title: 'Daily Greens',
variant_title: '30 servings',
price: '29.99',
currency_code: 'USD',
billing_interval: 1,
billing_interval_unit: 'month',
first_bill_on: '2026-12-15'
}
]
}
})
};
fetch('https://api.fluid.app/api/subscription_terms_acceptances', 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_terms_acceptances",
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([
'subscription_terms_acceptance' => [
'customer_id' => 123,
'agreement_id' => 572567,
'content_digest' => '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08',
'surface' => 'subscriptions_widget',
'ip_address' => '203.0.113.7',
'user_agent' => 'Mozilla/5.0 (Macintosh)',
'lines' => [
[
'subscription_plan_id' => 55,
'variant_id' => 789,
'quantity' => 1,
'product_title' => 'Daily Greens',
'variant_title' => '30 servings',
'price' => '29.99',
'currency_code' => 'USD',
'billing_interval' => 1,
'billing_interval_unit' => 'month',
'first_bill_on' => '2026-12-15'
]
]
]
]),
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_terms_acceptances"
payload := strings.NewReader("{\n \"subscription_terms_acceptance\": {\n \"customer_id\": 123,\n \"agreement_id\": 572567,\n \"content_digest\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n \"surface\": \"subscriptions_widget\",\n \"ip_address\": \"203.0.113.7\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh)\",\n \"lines\": [\n {\n \"subscription_plan_id\": 55,\n \"variant_id\": 789,\n \"quantity\": 1,\n \"product_title\": \"Daily Greens\",\n \"variant_title\": \"30 servings\",\n \"price\": \"29.99\",\n \"currency_code\": \"USD\",\n \"billing_interval\": 1,\n \"billing_interval_unit\": \"month\",\n \"first_bill_on\": \"2026-12-15\"\n }\n ]\n }\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_terms_acceptances")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"subscription_terms_acceptance\": {\n \"customer_id\": 123,\n \"agreement_id\": 572567,\n \"content_digest\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n \"surface\": \"subscriptions_widget\",\n \"ip_address\": \"203.0.113.7\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh)\",\n \"lines\": [\n {\n \"subscription_plan_id\": 55,\n \"variant_id\": 789,\n \"quantity\": 1,\n \"product_title\": \"Daily Greens\",\n \"variant_title\": \"30 servings\",\n \"price\": \"29.99\",\n \"currency_code\": \"USD\",\n \"billing_interval\": 1,\n \"billing_interval_unit\": \"month\",\n \"first_bill_on\": \"2026-12-15\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_terms_acceptances")
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 \"subscription_terms_acceptance\": {\n \"customer_id\": 123,\n \"agreement_id\": 572567,\n \"content_digest\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n \"surface\": \"subscriptions_widget\",\n \"ip_address\": \"203.0.113.7\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh)\",\n \"lines\": [\n {\n \"subscription_plan_id\": 55,\n \"variant_id\": 789,\n \"quantity\": 1,\n \"product_title\": \"Daily Greens\",\n \"variant_title\": \"30 servings\",\n \"price\": \"29.99\",\n \"currency_code\": \"USD\",\n \"billing_interval\": 1,\n \"billing_interval_unit\": \"month\",\n \"first_bill_on\": \"2026-12-15\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"subscription_terms_acceptance": {
"id": "019e0b2c-7a41-7c3e-9d52-1f6a8b30c4d7",
"customer_id": 123,
"agreement_id": 572567,
"content_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"content_snapshot": "<p>You authorize recurring charges until you cancel.</p>",
"surface": "subscriptions_widget",
"accepted_at": "2026-12-01T17:00:00Z",
"lines": [
{
"id": "019e0b2c-7a45-7b10-8c2e-5d3f9a41b6e8",
"subscription_plan_id": 55,
"variant_id": 789,
"quantity": 1,
"product_title": "Daily Greens",
"variant_title": "30 servings",
"price": "29.99",
"currency_code": "USD",
"billing_interval": 1,
"billing_interval_unit": "month",
"first_bill_on": "2026-12-15",
"subscription_id": null
}
]
},
"meta": {
"request_id": "3e8b1f2a-6c4d-4a7e-9b10-2d5f8c3a1e67",
"timestamp": "2026-12-01T17:00:00Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}curl --request POST \
--url https://api.fluid.app/api/subscription_terms_acceptances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subscription_terms_acceptance": {
"customer_id": 123,
"agreement_id": 572567,
"content_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"surface": "subscriptions_widget",
"ip_address": "203.0.113.7",
"user_agent": "Mozilla/5.0 (Macintosh)",
"lines": [
{
"subscription_plan_id": 55,
"variant_id": 789,
"quantity": 1,
"product_title": "Daily Greens",
"variant_title": "30 servings",
"price": "29.99",
"currency_code": "USD",
"billing_interval": 1,
"billing_interval_unit": "month",
"first_bill_on": "2026-12-15"
}
]
}
}
'import requests
url = "https://api.fluid.app/api/subscription_terms_acceptances"
payload = { "subscription_terms_acceptance": {
"customer_id": 123,
"agreement_id": 572567,
"content_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"surface": "subscriptions_widget",
"ip_address": "203.0.113.7",
"user_agent": "Mozilla/5.0 (Macintosh)",
"lines": [
{
"subscription_plan_id": 55,
"variant_id": 789,
"quantity": 1,
"product_title": "Daily Greens",
"variant_title": "30 servings",
"price": "29.99",
"currency_code": "USD",
"billing_interval": 1,
"billing_interval_unit": "month",
"first_bill_on": "2026-12-15"
}
]
} }
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({
subscription_terms_acceptance: {
customer_id: 123,
agreement_id: 572567,
content_digest: '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08',
surface: 'subscriptions_widget',
ip_address: '203.0.113.7',
user_agent: 'Mozilla/5.0 (Macintosh)',
lines: [
{
subscription_plan_id: 55,
variant_id: 789,
quantity: 1,
product_title: 'Daily Greens',
variant_title: '30 servings',
price: '29.99',
currency_code: 'USD',
billing_interval: 1,
billing_interval_unit: 'month',
first_bill_on: '2026-12-15'
}
]
}
})
};
fetch('https://api.fluid.app/api/subscription_terms_acceptances', 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_terms_acceptances",
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([
'subscription_terms_acceptance' => [
'customer_id' => 123,
'agreement_id' => 572567,
'content_digest' => '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08',
'surface' => 'subscriptions_widget',
'ip_address' => '203.0.113.7',
'user_agent' => 'Mozilla/5.0 (Macintosh)',
'lines' => [
[
'subscription_plan_id' => 55,
'variant_id' => 789,
'quantity' => 1,
'product_title' => 'Daily Greens',
'variant_title' => '30 servings',
'price' => '29.99',
'currency_code' => 'USD',
'billing_interval' => 1,
'billing_interval_unit' => 'month',
'first_bill_on' => '2026-12-15'
]
]
]
]),
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_terms_acceptances"
payload := strings.NewReader("{\n \"subscription_terms_acceptance\": {\n \"customer_id\": 123,\n \"agreement_id\": 572567,\n \"content_digest\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n \"surface\": \"subscriptions_widget\",\n \"ip_address\": \"203.0.113.7\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh)\",\n \"lines\": [\n {\n \"subscription_plan_id\": 55,\n \"variant_id\": 789,\n \"quantity\": 1,\n \"product_title\": \"Daily Greens\",\n \"variant_title\": \"30 servings\",\n \"price\": \"29.99\",\n \"currency_code\": \"USD\",\n \"billing_interval\": 1,\n \"billing_interval_unit\": \"month\",\n \"first_bill_on\": \"2026-12-15\"\n }\n ]\n }\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_terms_acceptances")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"subscription_terms_acceptance\": {\n \"customer_id\": 123,\n \"agreement_id\": 572567,\n \"content_digest\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n \"surface\": \"subscriptions_widget\",\n \"ip_address\": \"203.0.113.7\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh)\",\n \"lines\": [\n {\n \"subscription_plan_id\": 55,\n \"variant_id\": 789,\n \"quantity\": 1,\n \"product_title\": \"Daily Greens\",\n \"variant_title\": \"30 servings\",\n \"price\": \"29.99\",\n \"currency_code\": \"USD\",\n \"billing_interval\": 1,\n \"billing_interval_unit\": \"month\",\n \"first_bill_on\": \"2026-12-15\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/subscription_terms_acceptances")
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 \"subscription_terms_acceptance\": {\n \"customer_id\": 123,\n \"agreement_id\": 572567,\n \"content_digest\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\",\n \"surface\": \"subscriptions_widget\",\n \"ip_address\": \"203.0.113.7\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh)\",\n \"lines\": [\n {\n \"subscription_plan_id\": 55,\n \"variant_id\": 789,\n \"quantity\": 1,\n \"product_title\": \"Daily Greens\",\n \"variant_title\": \"30 servings\",\n \"price\": \"29.99\",\n \"currency_code\": \"USD\",\n \"billing_interval\": 1,\n \"billing_interval_unit\": \"month\",\n \"first_bill_on\": \"2026-12-15\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"subscription_terms_acceptance": {
"id": "019e0b2c-7a41-7c3e-9d52-1f6a8b30c4d7",
"customer_id": 123,
"agreement_id": 572567,
"content_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"content_snapshot": "<p>You authorize recurring charges until you cancel.</p>",
"surface": "subscriptions_widget",
"accepted_at": "2026-12-01T17:00:00Z",
"lines": [
{
"id": "019e0b2c-7a45-7b10-8c2e-5d3f9a41b6e8",
"subscription_plan_id": 55,
"variant_id": 789,
"quantity": 1,
"product_title": "Daily Greens",
"variant_title": "30 servings",
"price": "29.99",
"currency_code": "USD",
"billing_interval": 1,
"billing_interval_unit": "month",
"first_bill_on": "2026-12-15",
"subscription_id": null
}
]
},
"meta": {
"request_id": "3e8b1f2a-6c4d-4a7e-9b10-2d5f8c3a1e67",
"timestamp": "2026-12-01T17:00:00Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28",
"scheduled_date": "2026-12-10",
"last_bill_date": "2026-11-10",
"requested_date": "2026-11-30",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}