Create a cart for the signed-in member
Create a cart in the member’s company and bind it to the signed-in member in one call. The body is the cart create body of the public carts API (country_code is required; items and attribution are optional). The cart is created in the member’s company only: a company named in the body is ignored, as are member_id, customer_id and an admin source. The response is the cart already bound to the member and priced for them (wholesale for rep member types), with its token, and it is populated before the response. If the bind is refused no cart is left behind. FairShare on a member host makes this one same-origin call (session cookie plus X-CSRF-Token) instead of a public create followed by a claim; guests keep the public create. Claim stays supported. Requires a writable member credential.
curl --request POST \
--url https://api.fluid.app/api/member/v2026-10/carts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country_code": "US",
"items": [
{
"variant_id": 482913,
"quantity": 2
}
]
}
'import requests
url = "https://api.fluid.app/api/member/v2026-10/carts"
payload = {
"country_code": "US",
"items": [
{
"variant_id": 482913,
"quantity": 2
}
]
}
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({country_code: 'US', items: [{variant_id: 482913, quantity: 2}]})
};
fetch('https://api.fluid.app/api/member/v2026-10/carts', 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/member/v2026-10/carts",
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([
'country_code' => 'US',
'items' => [
[
'variant_id' => 482913,
'quantity' => 2
]
]
]),
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/member/v2026-10/carts"
payload := strings.NewReader("{\n \"country_code\": \"US\",\n \"items\": [\n {\n \"variant_id\": 482913,\n \"quantity\": 2\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/member/v2026-10/carts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"US\",\n \"items\": [\n {\n \"variant_id\": 482913,\n \"quantity\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/member/v2026-10/carts")
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 \"country_code\": \"US\",\n \"items\": [\n {\n \"variant_id\": 482913,\n \"quantity\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"data": {
"id": "0192f4e0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"token": "ct_6d1f0c2a9b8e4f37",
"state": "start",
"kind": "regular",
"currency": "USD",
"totals": {
"subtotal": "59.98",
"discount": "0.0",
"shipping": "7.5",
"tax": "4.8",
"total": "72.28"
},
"created_at": "2026-09-29T16:02:11.402913Z",
"updated_at": "2026-09-30T08:41:55.118204Z",
"items": [
{
"id": "0192f4e2-5d6e-7f80-91a2-b3c4d5e6f7a8",
"title": "Daily Greens",
"variant_title": "30 servings",
"sku": "DG-30",
"quantity": 2,
"subscription": false,
"unit_price": "29.99",
"total": "59.98",
"image_url": "https://cdn.fluid.app/products/daily-greens-30.jpg"
}
]
},
"meta": {
"request_uuid": "0192f520-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"timestamp": "2026-09-30T15:20:00Z"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}Authorizations
A member credential in the Authorization: Bearer header: a member
session JWT, a portal JWT whose login is linked to a membership in
that company, or an opaque member token. The credential alone
identifies the member and company.
curl --request POST \
--url https://api.fluid.app/api/member/v2026-10/carts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country_code": "US",
"items": [
{
"variant_id": 482913,
"quantity": 2
}
]
}
'import requests
url = "https://api.fluid.app/api/member/v2026-10/carts"
payload = {
"country_code": "US",
"items": [
{
"variant_id": 482913,
"quantity": 2
}
]
}
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({country_code: 'US', items: [{variant_id: 482913, quantity: 2}]})
};
fetch('https://api.fluid.app/api/member/v2026-10/carts', 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/member/v2026-10/carts",
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([
'country_code' => 'US',
'items' => [
[
'variant_id' => 482913,
'quantity' => 2
]
]
]),
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/member/v2026-10/carts"
payload := strings.NewReader("{\n \"country_code\": \"US\",\n \"items\": [\n {\n \"variant_id\": 482913,\n \"quantity\": 2\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/member/v2026-10/carts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"US\",\n \"items\": [\n {\n \"variant_id\": 482913,\n \"quantity\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/member/v2026-10/carts")
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 \"country_code\": \"US\",\n \"items\": [\n {\n \"variant_id\": 482913,\n \"quantity\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": 201,
"data": {
"id": "0192f4e0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"token": "ct_6d1f0c2a9b8e4f37",
"state": "start",
"kind": "regular",
"currency": "USD",
"totals": {
"subtotal": "59.98",
"discount": "0.0",
"shipping": "7.5",
"tax": "4.8",
"total": "72.28"
},
"created_at": "2026-09-29T16:02:11.402913Z",
"updated_at": "2026-09-30T08:41:55.118204Z",
"items": [
{
"id": "0192f4e2-5d6e-7f80-91a2-b3c4d5e6f7a8",
"title": "Daily Greens",
"variant_title": "30 servings",
"sku": "DG-30",
"quantity": 2,
"subscription": false,
"unit_price": "29.99",
"total": "59.98",
"image_url": "https://cdn.fluid.app/products/daily-greens-30.jpg"
}
]
},
"meta": {
"request_uuid": "0192f520-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"timestamp": "2026-09-30T15:20:00Z"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}{
"status": 123,
"error": {
"message": "<string>",
"details": {}
},
"meta": {
"request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"subscription_schedule": {
"next_bill_date": "2023-12-25",
"latest_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pending_skip_date": "2023-12-25",
"can_skip": true,
"applied": true
},
"code": "next_bill_date_blackout",
"blocked_date": "2026-11-30",
"blocked_day": 30,
"allowed_date": "2026-11-28"
}
}