cart-auth
Logout from cart
Public, cart-token–scoped. Ends the customer session associated with the
cart and returns the updated cart auth state. Authorization is by the
cart_token in the path; no bearer token is required. Returns 410 when
the cart is a locked/authorized enrollment cart and 404 when the cart
token is unknown.
DELETE
/
api
/
checkout
/
v2026-04
/
carts
/
{cart_token}
/
auth
Logout from cart
curl --request DELETE \
--url https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/authimport requests
url = "https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth', 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/carts/{cart_token}/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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/carts/{cart_token}/auth"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"cart": {
"agreements": [
{
"default_checked": true,
"enrollment_pack_id": null,
"id": 123,
"required": true,
"show_at_checkout": true,
"show_path": "<string>",
"title": "<string>"
}
],
"amount_total": 123,
"amount_total_in_currency": "<string>",
"attribution": null,
"available_payment_methods": [
{
"apple_pay": true,
"apple_pay_merchant_identifier": null,
"collect_billing_address": true,
"customer_details_schema": {},
"id": 123,
"image_url": "<string>",
"name": "<string>",
"sandbox": true,
"test": true,
"type": "<string>",
"uuid": "<string>",
"apple_pay_recurring_supported": true,
"bogus_gateway": true,
"client_id": "<string>",
"decrypted_apple_pay_via_paypal": true,
"merchant_id": null,
"sdk_type": "<string>",
"supported_brands": [
"<string>"
],
"token_provider": "<string>",
"tokenize_path": "<string>"
}
],
"available_shipping_methods": [
{
"delivery_time_estimate": "<string>",
"id": "<string>",
"price": 123,
"price_label": "<string>",
"title": "<string>"
}
],
"bill_to": null,
"billing_address": null,
"buyer_rep": null,
"buyer_rep_id": null,
"cart_token": "<string>",
"company": {
"bundle_subscriptions": true,
"checkout_primary_button_color": "<string>",
"checkout_primary_text_color": "<string>",
"checkout_secondary_button_color": "<string>",
"checkout_secondary_text_color": "<string>",
"collect_email_marketing": true,
"collect_phone": true,
"collect_sms_marketing": true,
"favicon_url": "<string>",
"fluid_shop": "<string>",
"id": 123,
"isolated_payment_tokens": true,
"kount_environment": "sandbox",
"kount_client_id": "150953359757648",
"logo_url": "<string>",
"name": "<string>",
"order_on_behalf": true,
"primary_domain_hostname": "<string>",
"require_billing_zip": true,
"require_phone": true,
"reward_points_apply_to_subtotal": true,
"reward_points_enabled": true,
"reward_points_label_singular": "<string>",
"reward_points_label_plural": "<string>",
"subdomain": "<string>"
},
"country": {
"currency_code": "<string>",
"currency_symbol": "<string>",
"id": 123,
"iso": "<string>",
"iso3": "<string>",
"iso_name": "<string>",
"name": "<string>",
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"province_required": true,
"tax_enabled": true,
"tax_standard_rate": 123
},
"currency_code": "<string>",
"currency_decimal_places": 123,
"currency_symbol": "<string>",
"customer_id": null,
"customer_total_points": 123,
"customer_total_points_in_currency": "<string>",
"cv_total": "<string>",
"digital_only": true,
"discount_breakdown": {
"external_discounts": 123,
"internal_discounts": 123,
"total_discounts": 123
},
"discount_codes": [
"<string>"
],
"discount_total": 123,
"discount_total_in_currency": "<string>",
"email": null,
"email_marketing": null,
"enrollment_fee": 123,
"enrollment_fee_in_currency": "<string>",
"enrollment_pack": null,
"enrollment_pack_id": null,
"external_discount": {
"calculated_at": null,
"sources": {},
"total": 123
},
"id": 123,
"immutable_items": true,
"inclusive_shipping_tax": 123,
"items": [
"<string>"
],
"language_iso": null,
"max_applicable_points": 123,
"messages": {},
"metadata": {
"available_shipping_methods": [
{
"delivery_time_estimate": "<string>",
"id": 123,
"price": 123,
"price_label": "<string>",
"priority": 123,
"title": "<string>"
}
],
"shipping": {
"delivery_time_estimate": "<string>",
"id": 123,
"price": 123,
"title": "<string>"
},
"total_creditable_points": 123
},
"payment_account": null,
"payment_method": null,
"payment_method_auto_assignable": true,
"phone": null,
"points_applied": 123,
"points_applied_amount_in_currency": "<string>",
"points_enabled": true,
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"processed": true,
"product_discount_codes": [
"<string>"
],
"qv_total": "<string>",
"recurring": [
"<string>"
],
"remaining_cart_amount_after_points": 123,
"remaining_cart_amount_after_points_in_currency": "<string>",
"remaining_customer_points": 123,
"remaining_customer_points_amount_in_currency": "<string>",
"requires_3ds": true,
"requires_payment_method": true,
"ship_to": null,
"shipping_address": null,
"shipping_discount": 123,
"shipping_discount_codes": [
"<string>"
],
"shipping_method": {
"id": "<string>",
"name": "<string>"
},
"shipping_total": 123,
"shipping_total_for_display": "<string>",
"shipping_total_in_currency": "<string>",
"sms_marketing": null,
"state": "<string>",
"sub_total": 123,
"sub_total_in_currency": "<string>",
"subtotal_after_discounts": 123,
"subtotal_after_discounts_in_currency": "<string>",
"tax_total": 123,
"tax_exempt": true,
"tax_total_for_display": "<string>",
"tax_total_in_currency": "<string>",
"total_creditable_points": 123,
"totals": {
"gross_subtotal": "<string>",
"gross_subtotal_in_currency": "<string>",
"net_subtotal": "<string>",
"net_subtotal_in_currency": "<string>",
"item_tax": "<string>",
"item_tax_in_currency": "<string>",
"shipping_net": "<string>",
"shipping_net_in_currency": "<string>",
"shipping_tax": "<string>",
"shipping_tax_in_currency": "<string>",
"total_tax": "<string>",
"total_tax_in_currency": "<string>",
"price_inclusive_of_tax": true,
"tax_label": "<string>"
},
"transaction_fee": 123,
"transaction_fee_in_currency": "<string>",
"type": "<string>",
"valid_for_checkout": true,
"valid_for_checkout_pre_payment": true,
"vault_without_charge": true,
"volume_rep": null,
"state_revision": 1
},
"meta": {
"checkout_url": "<string>",
"request_id": "<string>",
"shop_url": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"shop_url": "<string>",
"cart": "<unknown>"
}
}⌘I
Logout from cart
curl --request DELETE \
--url https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/authimport requests
url = "https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth', 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/carts/{cart_token}/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$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/carts/{cart_token}/auth"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/checkout/v2026-04/carts/{cart_token}/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"cart": {
"agreements": [
{
"default_checked": true,
"enrollment_pack_id": null,
"id": 123,
"required": true,
"show_at_checkout": true,
"show_path": "<string>",
"title": "<string>"
}
],
"amount_total": 123,
"amount_total_in_currency": "<string>",
"attribution": null,
"available_payment_methods": [
{
"apple_pay": true,
"apple_pay_merchant_identifier": null,
"collect_billing_address": true,
"customer_details_schema": {},
"id": 123,
"image_url": "<string>",
"name": "<string>",
"sandbox": true,
"test": true,
"type": "<string>",
"uuid": "<string>",
"apple_pay_recurring_supported": true,
"bogus_gateway": true,
"client_id": "<string>",
"decrypted_apple_pay_via_paypal": true,
"merchant_id": null,
"sdk_type": "<string>",
"supported_brands": [
"<string>"
],
"token_provider": "<string>",
"tokenize_path": "<string>"
}
],
"available_shipping_methods": [
{
"delivery_time_estimate": "<string>",
"id": "<string>",
"price": 123,
"price_label": "<string>",
"title": "<string>"
}
],
"bill_to": null,
"billing_address": null,
"buyer_rep": null,
"buyer_rep_id": null,
"cart_token": "<string>",
"company": {
"bundle_subscriptions": true,
"checkout_primary_button_color": "<string>",
"checkout_primary_text_color": "<string>",
"checkout_secondary_button_color": "<string>",
"checkout_secondary_text_color": "<string>",
"collect_email_marketing": true,
"collect_phone": true,
"collect_sms_marketing": true,
"favicon_url": "<string>",
"fluid_shop": "<string>",
"id": 123,
"isolated_payment_tokens": true,
"kount_environment": "sandbox",
"kount_client_id": "150953359757648",
"logo_url": "<string>",
"name": "<string>",
"order_on_behalf": true,
"primary_domain_hostname": "<string>",
"require_billing_zip": true,
"require_phone": true,
"reward_points_apply_to_subtotal": true,
"reward_points_enabled": true,
"reward_points_label_singular": "<string>",
"reward_points_label_plural": "<string>",
"subdomain": "<string>"
},
"country": {
"currency_code": "<string>",
"currency_symbol": "<string>",
"id": 123,
"iso": "<string>",
"iso3": "<string>",
"iso_name": "<string>",
"name": "<string>",
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"province_required": true,
"tax_enabled": true,
"tax_standard_rate": 123
},
"currency_code": "<string>",
"currency_decimal_places": 123,
"currency_symbol": "<string>",
"customer_id": null,
"customer_total_points": 123,
"customer_total_points_in_currency": "<string>",
"cv_total": "<string>",
"digital_only": true,
"discount_breakdown": {
"external_discounts": 123,
"internal_discounts": 123,
"total_discounts": 123
},
"discount_codes": [
"<string>"
],
"discount_total": 123,
"discount_total_in_currency": "<string>",
"email": null,
"email_marketing": null,
"enrollment_fee": 123,
"enrollment_fee_in_currency": "<string>",
"enrollment_pack": null,
"enrollment_pack_id": null,
"external_discount": {
"calculated_at": null,
"sources": {},
"total": 123
},
"id": 123,
"immutable_items": true,
"inclusive_shipping_tax": 123,
"items": [
"<string>"
],
"language_iso": null,
"max_applicable_points": 123,
"messages": {},
"metadata": {
"available_shipping_methods": [
{
"delivery_time_estimate": "<string>",
"id": 123,
"price": 123,
"price_label": "<string>",
"priority": 123,
"title": "<string>"
}
],
"shipping": {
"delivery_time_estimate": "<string>",
"id": 123,
"price": 123,
"title": "<string>"
},
"total_creditable_points": 123
},
"payment_account": null,
"payment_method": null,
"payment_method_auto_assignable": true,
"phone": null,
"points_applied": 123,
"points_applied_amount_in_currency": "<string>",
"points_enabled": true,
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"processed": true,
"product_discount_codes": [
"<string>"
],
"qv_total": "<string>",
"recurring": [
"<string>"
],
"remaining_cart_amount_after_points": 123,
"remaining_cart_amount_after_points_in_currency": "<string>",
"remaining_customer_points": 123,
"remaining_customer_points_amount_in_currency": "<string>",
"requires_3ds": true,
"requires_payment_method": true,
"ship_to": null,
"shipping_address": null,
"shipping_discount": 123,
"shipping_discount_codes": [
"<string>"
],
"shipping_method": {
"id": "<string>",
"name": "<string>"
},
"shipping_total": 123,
"shipping_total_for_display": "<string>",
"shipping_total_in_currency": "<string>",
"sms_marketing": null,
"state": "<string>",
"sub_total": 123,
"sub_total_in_currency": "<string>",
"subtotal_after_discounts": 123,
"subtotal_after_discounts_in_currency": "<string>",
"tax_total": 123,
"tax_exempt": true,
"tax_total_for_display": "<string>",
"tax_total_in_currency": "<string>",
"total_creditable_points": 123,
"totals": {
"gross_subtotal": "<string>",
"gross_subtotal_in_currency": "<string>",
"net_subtotal": "<string>",
"net_subtotal_in_currency": "<string>",
"item_tax": "<string>",
"item_tax_in_currency": "<string>",
"shipping_net": "<string>",
"shipping_net_in_currency": "<string>",
"shipping_tax": "<string>",
"shipping_tax_in_currency": "<string>",
"total_tax": "<string>",
"total_tax_in_currency": "<string>",
"price_inclusive_of_tax": true,
"tax_label": "<string>"
},
"transaction_fee": 123,
"transaction_fee_in_currency": "<string>",
"type": "<string>",
"valid_for_checkout": true,
"valid_for_checkout_pre_payment": true,
"vault_without_charge": true,
"volume_rep": null,
"state_revision": 1
},
"meta": {
"checkout_url": "<string>",
"request_id": "<string>",
"shop_url": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"shop_url": "<string>",
"cart": "<unknown>"
}
}