A Customer is a buyer the store keeps on file, with contact details, saved payment methods and tax ids. Find customers by their fields with the search route below. Deleting a customer sends only customer.deleted: its saved payment methods keep their customer.
Send every request to https://api.fluveo.com/v1 with your secret key as a Bearer token. This page lists only what Fluveo serves; the OpenAPI file holds the same operations.
An operation or a parameter marked Preview works, but it is not locked yet and may change: what Preview means.
Creates a customer#
POST/v1/customersrak_customer_write
Send a unique key, 1 to 255 characters, on every POST. A retry with the same key and the same body returns the first answer instead of acting twice (with Idempotent-Replayed: true); the same key with another body is refused. Keys are kept 7 days, except on POST /v1/checkout/sessions, POST /v1/checkout/sessions/{session} and POST /v1/webhook_endpoints, where a key holds 24 hours; webhook endpoint keys are also capped at the newest 32 per store and mode. Do not rely on a replay after that window. GET and DELETE ignore it.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
The customer's address: line1, line2, city, state, postal_code, country.
Free text for your own records.
The customer's email address.
Up to 50 key-value pairs of your own, sent as metadata[key]=value: keys of 1 to 40 characters, values up to 500. Keys starting with fluveo_ are reserved. On an update, an empty value removes a key.
The name of the person or the company you bill.
The customer's phone number.
The customer's languages, most preferred first, as IETF language tags such as en-US or pt-BR, sent as preferred_locales[]=en-US. Each tag is stored in its usual letter case (en-us becomes en-US); a tag that is not one is refused. Send preferred_locales= to empty the list.
Shipping name, address and phone for the order.
The customer's tax status: none, exempt or reverse. An empty value is ignored, so a new customer is none and an update keeps the status it had. It is kept and shown only.
One of:
none,exempt,reverse.The Customer's tax ids, created with it as its tax_ids list: tax_id_data[0][type] and tax_id_data[0][value], then [1] and so on. Pix and Boleto read the payer's CPF or CNPJ from here.
Use only the documented body parameters. Send a new Idempotency-Key with each new request, and the same key again only to retry that request.
Returns a customer object.
curl https://api.fluveo.com/v1/customers \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: $(uuidgen)" \
--data-urlencode "email=ada@example.com" \
--data-urlencode "name=Ada Lovelace"const response = await fetch("https://api.fluveo.com/v1/customers", {
method: "POST",
headers: {
"Authorization": "Bearer sk_test_...",
"Idempotency-Key": crypto.randomUUID(),
},
body: new URLSearchParams([["email","ada@example.com"],["name","Ada Lovelace"]]),
});
console.log(await response.json());import uuid
import requests
response = requests.post(
"https://api.fluveo.com/v1/customers",
headers={"Authorization": "Bearer sk_test_...", "Idempotency-Key": str(uuid.uuid4())},
data=[("email", "ada@example.com"), ("name", "Ada Lovelace")],
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
"Idempotency-Key: " . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => "email=ada%40example.com&name=Ada%20Lovelace",
]);
echo curl_exec($ch);{
"created": 1767225600,
"email": "ada@example.com",
"id": "cus_123",
"livemode": false,
"metadata": {},
"name": "Ada Lovelace",
"object": "customer"
}Lists customer objects, newest first#
GET/v1/customersrak_customer_read
Filter on the creation time, a Unix timestamp: created=<t> for an exact match, or created[gt], created[gte], created[lt], created[lte].
Only the customers with exactly this email, up to 512 characters.
Cursor: the id of the first object of the current page, to get the previous page. Do not send it with starting_after.
How many objects to return, from 1 to 100. Default 10.
Cursor: the id of the last object of the previous page, to get the next page. Do not send it with ending_before.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
Returns a list of customer objects.
curl -G https://api.fluveo.com/v1/customers \
-H "Authorization: Bearer sk_test_..." \
--data-urlencode "email=ada@example.com"const response = await fetch("https://api.fluveo.com/v1/customers" + "?" + new URLSearchParams([["email","ada@example.com"]]), {
method: "GET",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.get(
"https://api.fluveo.com/v1/customers",
headers={"Authorization": "Bearer sk_test_..."},
params=[("email", "ada@example.com")],
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers?email=ada%40example.com");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);{
"data": [
{
"created": 1767225600,
"email": "ada@example.com",
"id": "cus_123",
"livemode": false,
"metadata": {},
"name": "Ada Lovelace",
"object": "customer"
}
],
"has_more": false,
"object": "list",
"url": "/v1/customers"
}Updates a customer#
POST/v1/customers/{customer}rak_customer_write
The Customer's id.
Send a unique key, 1 to 255 characters, on every POST. A retry with the same key and the same body returns the first answer instead of acting twice (with Idempotent-Replayed: true); the same key with another body is refused. Keys are kept 7 days, except on POST /v1/checkout/sessions, POST /v1/checkout/sessions/{session} and POST /v1/webhook_endpoints, where a key holds 24 hours; webhook endpoint keys are also capped at the newest 32 per store and mode. Do not rely on a replay after that window. GET and DELETE ignore it.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
The customer's address: line1, line2, city, state, postal_code, country.
Free text for your own records.
The customer's email address.
Up to 50 key-value pairs of your own, sent as metadata[key]=value: keys of 1 to 40 characters, values up to 500. Keys starting with fluveo_ are reserved. On an update, an empty value removes a key.
The name of the person or the company you bill.
The customer's phone number.
The customer's languages, most preferred first, as IETF language tags such as en-US or pt-BR, sent as preferred_locales[]=en-US. Each tag is stored in its usual letter case (en-us becomes en-US); a tag that is not one is refused. Send preferred_locales= to empty the list.
Shipping name, address and phone for the order.
The customer's tax status: none, exempt or reverse. An empty value is ignored, so a new customer is none and an update keeps the status it had. It is kept and shown only.
One of:
none,exempt,reverse.
Use only the documented body parameters. Send a new Idempotency-Key with each new request, and the same key again only to retry that request.
Returns a customer object.
curl https://api.fluveo.com/v1/customers/cus_123 \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: $(uuidgen)" \
--data-urlencode "phone=+15555550123"const response = await fetch("https://api.fluveo.com/v1/customers/cus_123", {
method: "POST",
headers: {
"Authorization": "Bearer sk_test_...",
"Idempotency-Key": crypto.randomUUID(),
},
body: new URLSearchParams([["phone","+15555550123"]]),
});
console.log(await response.json());import uuid
import requests
response = requests.post(
"https://api.fluveo.com/v1/customers/cus_123",
headers={"Authorization": "Bearer sk_test_...", "Idempotency-Key": str(uuid.uuid4())},
data=[("phone", "+15555550123")],
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
"Idempotency-Key: " . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => "phone=%2B15555550123",
]);
echo curl_exec($ch);{
"created": 1767225600,
"email": "ada@example.com",
"id": "cus_123",
"livemode": false,
"metadata": {},
"name": "Ada Lovelace",
"object": "customer"
}Retrieves a customerPreview#
GET/v1/customers/{customer}rak_customer_read
Preview: this operation works, but it is not locked yet; it may change.
The Customer's id.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
Returns a customer object.
curl https://api.fluveo.com/v1/customers/cus_123 \
-H "Authorization: Bearer sk_test_..."const response = await fetch("https://api.fluveo.com/v1/customers/cus_123", {
method: "GET",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.get(
"https://api.fluveo.com/v1/customers/cus_123",
headers={"Authorization": "Bearer sk_test_..."},
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);{
"created": 1767225600,
"email": "ada@example.com",
"id": "cus_123",
"livemode": false,
"metadata": {},
"name": "Ada Lovelace",
"object": "customer"
}Deletes a deleted customer#
DELETE/v1/customers/{customer}rak_customer_write
The Customer's id.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
curl -X DELETE https://api.fluveo.com/v1/customers/cus_123 \
-H "Authorization: Bearer sk_test_..."const response = await fetch("https://api.fluveo.com/v1/customers/cus_123", {
method: "DELETE",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.delete(
"https://api.fluveo.com/v1/customers/cus_123",
headers={"Authorization": "Bearer sk_test_..."},
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);{
"deleted": true,
"id": "cus_123",
"object": "customer"
}Searches customer objects with a query, newest firstPreview#
GET/v1/customers/searchrak_customer_read
Preview: this operation works, but it is not locked yet; it may change.
A query is one or more clauses, each a field, an operator and a quoted value, such as email:"ada@example.com" or name~"ada". The customer fields are email, name, phone, created and metadata["key"]. The operator : matches a run of whole words of email, name or phone, in order and in any case, so email:"ada@example.com" finds that address only. The operator ~ finds a part of email, name or phone of at least three characters; a shorter part matches nothing. created takes a whole number of seconds with =, :, >, >=, < or <=, such as created>1700000000. A - before a clause negates it. field:null matches a field that is absent or empty. Join clauses with AND or OR (a space means AND), never both in one query and never with parentheses, up to 10 clauses. When has_more is true, send next_page as page with the same query for the next page. Add expand[]=total_count to get total_count, the number of matches. A customer is found as soon as its write returns, and a deleted one never.
How many objects to return, from 1 to 100. Default 10.
The next_page of the previous answer, to get the page after it. Send the same query with it.
The search query, in the language the description above gives.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
Returns a list of customer objects.
curl -G https://api.fluveo.com/v1/customers/search \
-H "Authorization: Bearer sk_test_..." \
--data-urlencode "query=email:\"ada@example.com\""const response = await fetch("https://api.fluveo.com/v1/customers/search" + "?" + new URLSearchParams([["query","email:\"ada@example.com\""]]), {
method: "GET",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.get(
"https://api.fluveo.com/v1/customers/search",
headers={"Authorization": "Bearer sk_test_..."},
params=[("query", "email:\"ada@example.com\"")],
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/search?query=email%3A%22ada%40example.com%22");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);{
"data": [
{
"created": 1767225600,
"email": "ada@example.com",
"id": "cus_123",
"livemode": false,
"metadata": {},
"name": "Ada Lovelace",
"object": "customer"
}
],
"has_more": false,
"next_page": null,
"object": "search_result",
"url": "/v1/customers/search"
}Creates a tax IDPreview#
POST/v1/customers/{customer}/tax_idsrak_customer_write
Preview: this operation works, but it is not locked yet; it may change.
The Customer's id.
Send a unique key, 1 to 255 characters, on every POST. A retry with the same key and the same body returns the first answer instead of acting twice (with Idempotent-Replayed: true); the same key with another body is refused. Keys are kept 7 days, except on POST /v1/checkout/sessions, POST /v1/checkout/sessions/{session} and POST /v1/webhook_endpoints, where a key holds 24 hours; webhook endpoint keys are also capped at the newest 32 per store and mode. Do not rely on a replay after that window. GET and DELETE ignore it.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
The kind of tax id: br_cpf for a CPF, br_cnpj for a CNPJ.
One of:
br_cpf,br_cnpj.The tax id itself, for example a CPF or CNPJ.
Use only the documented body parameters. Send a new Idempotency-Key with each new request, and the same key again only to retry that request.
Returns a tax_id object.
curl https://api.fluveo.com/v1/customers/cus_123/tax_ids \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: $(uuidgen)" \
--data-urlencode "type=br_cpf" \
--data-urlencode "value=123.456.789-09"const response = await fetch("https://api.fluveo.com/v1/customers/cus_123/tax_ids", {
method: "POST",
headers: {
"Authorization": "Bearer sk_test_...",
"Idempotency-Key": crypto.randomUUID(),
},
body: new URLSearchParams([["type","br_cpf"],["value","123.456.789-09"]]),
});
console.log(await response.json());import uuid
import requests
response = requests.post(
"https://api.fluveo.com/v1/customers/cus_123/tax_ids",
headers={"Authorization": "Bearer sk_test_...", "Idempotency-Key": str(uuid.uuid4())},
data=[("type", "br_cpf"), ("value", "123.456.789-09")],
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123/tax_ids");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
"Idempotency-Key: " . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => "type=br_cpf&value=123.456.789-09",
]);
echo curl_exec($ch);Lists tax ID objects of the parent objectPreview#
GET/v1/customers/{customer}/tax_idsrak_customer_read
Preview: this operation works, but it is not locked yet; it may change.
The Customer's id.
Cursor: the id of the first object of the current page, to get the previous page. Do not send it with starting_after.
How many objects to return, from 1 to 100. Default 10.
Cursor: the id of the last object of the previous page, to get the next page. Do not send it with ending_before.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
Returns a list of tax_id objects.
curl https://api.fluveo.com/v1/customers/cus_123/tax_ids \
-H "Authorization: Bearer sk_test_..."const response = await fetch("https://api.fluveo.com/v1/customers/cus_123/tax_ids", {
method: "GET",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.get(
"https://api.fluveo.com/v1/customers/cus_123/tax_ids",
headers={"Authorization": "Bearer sk_test_..."},
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123/tax_ids");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);Retrieves a tax IDPreview#
GET/v1/customers/{customer}/tax_ids/{id}rak_customer_read
Preview: this operation works, but it is not locked yet; it may change.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
Returns a tax_id object.
curl https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123 \
-H "Authorization: Bearer sk_test_..."const response = await fetch("https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123", {
method: "GET",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.get(
"https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123",
headers={"Authorization": "Bearer sk_test_..."},
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);Deletes a deleted tax idPreview#
DELETE/v1/customers/{customer}/tax_ids/{id}rak_customer_write
Preview: this operation works, but it is not locked yet; it may change.
Optional. The only version Fluveo serves is 2026-05-27.dahlia; any other value is refused with a 400. Every answer names that version in its own Fluveo-Version header, except the refusals Fluveo gives before it reads the request (no key, an unknown key, an unknown URL, a body that is not a form) and a file's bytes, which name no version and no Request-Id.
One of:
2026-05-27.dahlia.
curl -X DELETE https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123 \
-H "Authorization: Bearer sk_test_..."const response = await fetch("https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123", {
method: "DELETE",
headers: {
"Authorization": "Bearer sk_test_...",
},
});
console.log(await response.json());import requests
response = requests.delete(
"https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123",
headers={"Authorization": "Bearer sk_test_..."},
)
print(response.json())<?php
$ch = curl_init("https://api.fluveo.com/v1/customers/cus_123/tax_ids/txi_123");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer sk_test_...",
],
]);
echo curl_exec($ch);{
"deleted": true,
"id": "txi_123",
"object": "tax_id"
}The tax_id object#
Ids start with txi_.
createdintegerAn id by default; send
expand[]=customerto get the full customer object.idstringlivemodebooleanobjectenumOne of:
tax_id.typeenumOne of:
ad_nrt,ae_trn,al_tin,am_tin,ao_tin,ar_cuit,au_abn,au_arn,aw_tin,az_tin,ba_tin,bb_tin,bd_bin,bf_ifu,bg_uic,bh_vat,bj_ifu,bo_tin,br_cnpj,br_cpf,bs_tin,by_tin,ca_bn,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,ca_qst,cd_nif,ch_uid,ch_vat,cl_tin,cm_niu,cn_tin,co_nit,cr_tin,cv_nif,de_stn,do_rcn,ec_ruc,eg_tin,es_cif,et_tin,eu_oss_vat,eu_vat,fo_vat,gb_vat,ge_vat,gi_tin,gn_nif,hk_br,hr_oib,hu_tin,id_npwp,il_vat,in_gst,is_vat,it_cf,jp_cn,jp_rn,jp_trn,ke_pin,kg_tin,kh_tin,kr_brn,kz_bin,la_tin,li_uid,li_vat,lk_vat,ma_vat,md_vat,me_pib,mk_vat,mr_nif,mx_rfc,my_frp,my_itn,my_sst,ng_tin,no_vat,no_voec,np_pan,nz_gst,om_vat,pe_ruc,ph_tin,pl_nip,py_ruc,ro_tin,rs_pib,ru_inn,ru_kpp,sa_vat,sg_gst,sg_uen,si_tin,sn_ninea,sr_fin,sv_nit,th_vat,tj_tin,tr_tin,tw_vat,tz_vat,ua_vat,ug_tin,unknown,us_ein,uy_ruc,uz_tin,uz_vat,ve_rif,vn_tin,za_vat,zm_tin,zw_tin.valuestring