Subscriptions
Cancel through the session
Cancels the subscription with the session’s reason (unknown when none was given)
and sends the cancellation email, as the plain cancel does. Works whatever the state of
the cancel flow, including on a session past its 30 minutes. Cancelling again returns the
same session. Returns 409 (session_closed) once the session saved the subscription.
POST
/
api
/
checkout
/
v2026-04
/
subscriptions
/
{subscription_token}
/
cancellation-sessions
/
{id}
/
cancel
Cancel through the session
curl --request POST \
--url https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel', 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}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel"
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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
Cancel through the session
curl --request POST \
--url https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel', 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}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel"
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/checkout/v2026-04/subscriptions/{subscription_token}/cancellation-sessions/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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
}
}