Subscriptions
Accept a save offer
Carries out one offer the session showed and keeps the subscription (outcome: saved). A swap offer needs the variant_id of one of its variant_options. Accepting
the same offer again returns the first result. Returns 404 (offer_not_found) for an
offer the session did not show; 409 when the session ended or expired; 422 with
offer_unavailable when the cancel flow is off or the customer accepted a monetary
offer within the cooldown, offer_not_acceptable for a contact_support offer, or the
refusal of the action the offer runs. A refused offer leaves the session open.
POST
/
api
/
checkout
/
v2026-04
/
subscriptions
/
{subscription_token}
/
cancellation-sessions
/
{id}
/
accept
Accept a save offer
curl --request POST \
--url https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offer_id": "rof_4kq9Zt2LmX8vB1nR7cWy"
}
'import requests
url = "https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept"
payload = { "offer_id": "rof_4kq9Zt2LmX8vB1nR7cWy" }
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({offer_id: 'rof_4kq9Zt2LmX8vB1nR7cWy'})
};
fetch('https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept', 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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept",
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([
'offer_id' => 'rof_4kq9Zt2LmX8vB1nR7cWy'
]),
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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept"
payload := strings.NewReader("{\n \"offer_id\": \"rof_4kq9Zt2LmX8vB1nR7cWy\"\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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offer_id\": \"rof_4kq9Zt2LmX8vB1nR7cWy\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept")
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 \"offer_id\": \"rof_4kq9Zt2LmX8vB1nR7cWy\"\n}"
response = http.request(request)
puts response.read_body{
"cancellation_session": {
"id": "0199c6a4-5b2e-7d41-9f3a-2c8e1b7d4a60",
"outcome": "open",
"cancel_now_allowed": true,
"expires_at": "2026-10-10T15:30:00Z",
"retention_flow_version": 3,
"reasons": [
{
"code": "too_expensive",
"labels": {
"en": "Too expensive"
}
},
{
"code": "taking_a_break",
"labels": {}
}
],
"reason_code": "too_expensive",
"reason_text": null,
"offers": [
{
"offer_id": "rof_4kq9Zt2LmX8vB1nR7cWy",
"type": "discount",
"terms": {
"percentage": 20,
"duration": "once"
},
"saves": true,
"preview": {
"next_bill_date": "2026-11-03",
"next_order_total": "27.0",
"currency": "USD"
}
}
],
"accepted_offer_id": null
},
"meta": {
"request_id": "6d2f8a4c-3e1b-4c97-a5d0-9b4e2f7c1a38",
"timestamp": "2026-10-10T15:00:00Z"
}
}{
"message": "<string>"
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}Authorizations
Bearer token authentication
Path Parameters
Subscription token
Cancellation session id
⌘I
Accept a save offer
curl --request POST \
--url https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offer_id": "rof_4kq9Zt2LmX8vB1nR7cWy"
}
'import requests
url = "https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept"
payload = { "offer_id": "rof_4kq9Zt2LmX8vB1nR7cWy" }
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({offer_id: 'rof_4kq9Zt2LmX8vB1nR7cWy'})
};
fetch('https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept', 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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept",
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([
'offer_id' => 'rof_4kq9Zt2LmX8vB1nR7cWy'
]),
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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept"
payload := strings.NewReader("{\n \"offer_id\": \"rof_4kq9Zt2LmX8vB1nR7cWy\"\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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"offer_id\": \"rof_4kq9Zt2LmX8vB1nR7cWy\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/accept")
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 \"offer_id\": \"rof_4kq9Zt2LmX8vB1nR7cWy\"\n}"
response = http.request(request)
puts response.read_body{
"cancellation_session": {
"id": "0199c6a4-5b2e-7d41-9f3a-2c8e1b7d4a60",
"outcome": "open",
"cancel_now_allowed": true,
"expires_at": "2026-10-10T15:30:00Z",
"retention_flow_version": 3,
"reasons": [
{
"code": "too_expensive",
"labels": {
"en": "Too expensive"
}
},
{
"code": "taking_a_break",
"labels": {}
}
],
"reason_code": "too_expensive",
"reason_text": null,
"offers": [
{
"offer_id": "rof_4kq9Zt2LmX8vB1nR7cWy",
"type": "discount",
"terms": {
"percentage": 20,
"duration": "once"
},
"saves": true,
"preview": {
"next_bill_date": "2026-11-03",
"next_order_total": "27.0",
"currency": "USD"
}
}
],
"accepted_offer_id": null
},
"meta": {
"request_id": "6d2f8a4c-3e1b-4c97-a5d0-9b4e2f7c1a38",
"timestamp": "2026-10-10T15:00:00Z"
}
}{
"message": "<string>"
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "<string>",
"payment_uuid": "<string>",
"error_details": [
{
"code": "<string>",
"field": "<string>",
"payment": "not_attempted",
"message": "<string>"
}
],
"coded_recovery": true
}
}