Members
Append notes and write metafields on a member's commerce profile
Appends customer notes and creates, updates or destroys metafields on the member, the two writes PATCH /members/{id} has no parameters for. Notes are append-only; a blank note is a 422. A metafield id must belong to this member (404 otherwise). The write lands on the member’s compatibility customer record; a member without one is a 422. Returns the profile’s notes and metafields sections beside the identity section. Requires a company admin token with the members manage permission (or, for roles that predate it, customers.update); a droplet token also needs one of them on its attached role. Not enabled unless the deployment turns the member-native gap routes on.
PATCH
/
api
/
v2025-06
/
members
/
{member_id}
/
commerce-profile
Append notes and write metafields on a member's commerce profile
curl --request PATCH \
--url https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commerce_profile": {
"customer_notes": [
{
"note": "Called about a late shipment."
}
],
"metafields": [
{
"namespace": "profile",
"key": "favorite_flavor",
"value": "vanilla",
"value_type": "single_line_text_field"
}
]
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile"
payload = { "commerce_profile": {
"customer_notes": [{ "note": "Called about a late shipment." }],
"metafields": [
{
"namespace": "profile",
"key": "favorite_flavor",
"value": "vanilla",
"value_type": "single_line_text_field"
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
commerce_profile: {
customer_notes: [{note: 'Called about a late shipment.'}],
metafields: [
{
namespace: 'profile',
key: 'favorite_flavor',
value: 'vanilla',
value_type: 'single_line_text_field'
}
]
}
})
};
fetch('https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile', 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/v2025-06/members/{member_id}/commerce-profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'commerce_profile' => [
'customer_notes' => [
[
'note' => 'Called about a late shipment.'
]
],
'metafields' => [
[
'namespace' => 'profile',
'key' => 'favorite_flavor',
'value' => 'vanilla',
'value_type' => 'single_line_text_field'
]
]
]
]),
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/v2025-06/members/{member_id}/commerce-profile"
payload := strings.NewReader("{\n \"commerce_profile\": {\n \"customer_notes\": [\n {\n \"note\": \"Called about a late shipment.\"\n }\n ],\n \"metafields\": [\n {\n \"namespace\": \"profile\",\n \"key\": \"favorite_flavor\",\n \"value\": \"vanilla\",\n \"value_type\": \"single_line_text_field\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commerce_profile\": {\n \"customer_notes\": [\n {\n \"note\": \"Called about a late shipment.\"\n }\n ],\n \"metafields\": [\n {\n \"namespace\": \"profile\",\n \"key\": \"favorite_flavor\",\n \"value\": \"vanilla\",\n \"value_type\": \"single_line_text_field\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commerce_profile\": {\n \"customer_notes\": [\n {\n \"note\": \"Called about a late shipment.\"\n }\n ],\n \"metafields\": [\n {\n \"namespace\": \"profile\",\n \"key\": \"favorite_flavor\",\n \"value\": \"vanilla\",\n \"value_type\": \"single_line_text_field\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"commerce_profile": {
"id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
"member_id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
"legacy_customer_id": 4821907,
"legacy_user_company_id": 5510236,
"account_id": null,
"external_id": "DM-10442",
"first_name": "Holly",
"last_name": "Flax",
"full_name": "Holly Flax",
"email": "holly.flax@dundermifflin.com",
"phone": "+15705550142",
"created_at": "2026-03-14T16:20:41.512Z",
"is_discarded": false,
"active": true,
"is_rep": false,
"role": "customer",
"member_type_slug": "customer",
"username": "hollyflax",
"rank": null,
"language_code": "en",
"pending_email_change": null,
"default_address": {
"id": 88120431,
"uuid": "0192a3c5-1b2c-7d3e-8f40-516273849abc",
"address1": "1725 Slough Avenue",
"address2": "Suite 200",
"address3": null,
"city": "Scranton",
"state": "PA",
"postal_code": "18503",
"country_code": "US",
"country_id": 233,
"subdivision_code": "PA",
"name": "Holly Flax",
"first_name": "Holly",
"last_name": "Flax",
"phone": "+15705550142",
"default": true
},
"addresses": [
{
"id": 88120431,
"uuid": "0192a3c5-1b2c-7d3e-8f40-516273849abc",
"address1": "1725 Slough Avenue",
"address2": "Suite 200",
"address3": null,
"city": "Scranton",
"state": "PA",
"postal_code": "18503",
"country_code": "US",
"country_id": 233,
"subdivision_code": "PA",
"name": "Holly Flax",
"first_name": "Holly",
"last_name": "Flax",
"phone": "+15705550142",
"default": true
}
],
"fluid_pay_default_address_id": null,
"orders_count": 7,
"total_spent": 412.5,
"last_order_id": 9912034,
"first_order_at": "2026-03-20T14:05:12.000Z",
"first_subscription_order_at": null,
"tax_exempt": false,
"sales_tax_id": null,
"entity_use_code": null,
"email_marketing": true,
"sms_marketing": false,
"notes": "Prefers morning delivery.",
"customer_notes": [
{
"id": 3310,
"note": "Called about a late shipment.",
"created_at": "2026-04-02T13:11:09.000Z"
}
],
"metafields": [
{
"id": 7741,
"namespace": "profile",
"key": "favorite_flavor",
"value": "vanilla",
"value_type": "single_line_text_field"
}
]
},
"status": 200,
"meta": {
"request_id": "3d9f2b7e-61c4-4a85-9e0b-7f1a2c8d5e63",
"timestamp": "2026-11-30T15:00:00Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Path Parameters
Body
application/json
⌘I
Append notes and write metafields on a member's commerce profile
curl --request PATCH \
--url https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commerce_profile": {
"customer_notes": [
{
"note": "Called about a late shipment."
}
],
"metafields": [
{
"namespace": "profile",
"key": "favorite_flavor",
"value": "vanilla",
"value_type": "single_line_text_field"
}
]
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile"
payload = { "commerce_profile": {
"customer_notes": [{ "note": "Called about a late shipment." }],
"metafields": [
{
"namespace": "profile",
"key": "favorite_flavor",
"value": "vanilla",
"value_type": "single_line_text_field"
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
commerce_profile: {
customer_notes: [{note: 'Called about a late shipment.'}],
metafields: [
{
namespace: 'profile',
key: 'favorite_flavor',
value: 'vanilla',
value_type: 'single_line_text_field'
}
]
}
})
};
fetch('https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile', 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/v2025-06/members/{member_id}/commerce-profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'commerce_profile' => [
'customer_notes' => [
[
'note' => 'Called about a late shipment.'
]
],
'metafields' => [
[
'namespace' => 'profile',
'key' => 'favorite_flavor',
'value' => 'vanilla',
'value_type' => 'single_line_text_field'
]
]
]
]),
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/v2025-06/members/{member_id}/commerce-profile"
payload := strings.NewReader("{\n \"commerce_profile\": {\n \"customer_notes\": [\n {\n \"note\": \"Called about a late shipment.\"\n }\n ],\n \"metafields\": [\n {\n \"namespace\": \"profile\",\n \"key\": \"favorite_flavor\",\n \"value\": \"vanilla\",\n \"value_type\": \"single_line_text_field\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commerce_profile\": {\n \"customer_notes\": [\n {\n \"note\": \"Called about a late shipment.\"\n }\n ],\n \"metafields\": [\n {\n \"namespace\": \"profile\",\n \"key\": \"favorite_flavor\",\n \"value\": \"vanilla\",\n \"value_type\": \"single_line_text_field\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/members/{member_id}/commerce-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commerce_profile\": {\n \"customer_notes\": [\n {\n \"note\": \"Called about a late shipment.\"\n }\n ],\n \"metafields\": [\n {\n \"namespace\": \"profile\",\n \"key\": \"favorite_flavor\",\n \"value\": \"vanilla\",\n \"value_type\": \"single_line_text_field\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"commerce_profile": {
"id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
"member_id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
"legacy_customer_id": 4821907,
"legacy_user_company_id": 5510236,
"account_id": null,
"external_id": "DM-10442",
"first_name": "Holly",
"last_name": "Flax",
"full_name": "Holly Flax",
"email": "holly.flax@dundermifflin.com",
"phone": "+15705550142",
"created_at": "2026-03-14T16:20:41.512Z",
"is_discarded": false,
"active": true,
"is_rep": false,
"role": "customer",
"member_type_slug": "customer",
"username": "hollyflax",
"rank": null,
"language_code": "en",
"pending_email_change": null,
"default_address": {
"id": 88120431,
"uuid": "0192a3c5-1b2c-7d3e-8f40-516273849abc",
"address1": "1725 Slough Avenue",
"address2": "Suite 200",
"address3": null,
"city": "Scranton",
"state": "PA",
"postal_code": "18503",
"country_code": "US",
"country_id": 233,
"subdivision_code": "PA",
"name": "Holly Flax",
"first_name": "Holly",
"last_name": "Flax",
"phone": "+15705550142",
"default": true
},
"addresses": [
{
"id": 88120431,
"uuid": "0192a3c5-1b2c-7d3e-8f40-516273849abc",
"address1": "1725 Slough Avenue",
"address2": "Suite 200",
"address3": null,
"city": "Scranton",
"state": "PA",
"postal_code": "18503",
"country_code": "US",
"country_id": 233,
"subdivision_code": "PA",
"name": "Holly Flax",
"first_name": "Holly",
"last_name": "Flax",
"phone": "+15705550142",
"default": true
}
],
"fluid_pay_default_address_id": null,
"orders_count": 7,
"total_spent": 412.5,
"last_order_id": 9912034,
"first_order_at": "2026-03-20T14:05:12.000Z",
"first_subscription_order_at": null,
"tax_exempt": false,
"sales_tax_id": null,
"entity_use_code": null,
"email_marketing": true,
"sms_marketing": false,
"notes": "Prefers morning delivery.",
"customer_notes": [
{
"id": 3310,
"note": "Called about a late shipment.",
"created_at": "2026-04-02T13:11:09.000Z"
}
],
"metafields": [
{
"id": 7741,
"namespace": "profile",
"key": "favorite_flavor",
"value": "vanilla",
"value_type": "single_line_text_field"
}
]
},
"status": 200,
"meta": {
"request_id": "3d9f2b7e-61c4-4a85-9e0b-7f1a2c8d5e63",
"timestamp": "2026-11-30T15:00:00Z"
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}