Docs
API 2026-05-27.dahlia Dashboard

API reference

4 operations, with parameters and examples.

A Charge is the record of one attempt to move money for a PaymentIntent. Fluveo creates charges only through PaymentIntents: the legacy POST /v1/charges and POST /v1/charges/{charge}/capture answer a refusal that names the PaymentIntent to capture instead. You may read, list and search charges and change their description and metadata.

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.

Lists charge objects, newest first#

GET/v1/chargesrak_charge_read

Query parameters
  • createdobjectOptionalPreview

    Filter on the creation time, a Unix timestamp: created=<t> for an exact match, or created[gt], created[gte], created[lt], created[lte].

  • customerstringOptional

    Only the charges of this customer.

  • ending_beforestringOptional

    Cursor: the id of the first object of the current page, to get the previous page. Do not send it with starting_after.

  • limitintegerOptional

    How many objects to return, from 1 to 100. Default 10.

  • payment_intentstringOptional

    Only the charges of this PaymentIntent.

  • starting_afterstringOptional

    Cursor: the id of the last object of the previous page, to get the next page. Do not send it with ending_before.

Headers
  • Fluveo-VersionenumOptional

    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 charge objects.

Request
curl -G https://api.fluveo.com/v1/charges \
  -H "Authorization: Bearer sk_test_..." \
  --data-urlencode "payment_intent=pi_123"
const response = await fetch("https://api.fluveo.com/v1/charges" + "?" + new URLSearchParams([["payment_intent","pi_123"]]), {
  method: "GET",
  headers: {
    "Authorization": "Bearer sk_test_...",
  },
});
console.log(await response.json());
import requests

response = requests.get(
    "https://api.fluveo.com/v1/charges",
    headers={"Authorization": "Bearer sk_test_..."},
    params=[("payment_intent", "pi_123")],
)
print(response.json())
<?php
$ch = curl_init("https://api.fluveo.com/v1/charges?payment_intent=pi_123");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer sk_test_...",
    ],
]);
echo curl_exec($ch);
Response (abridged example)
{
  "data": [
    {
      "amount": 2000,
      "amount_captured": 2000,
      "captured": true,
      "created": 1767225600,
      "currency": "usd",
      "id": "ch_123",
      "livemode": false,
      "metadata": {},
      "object": "charge",
      "paid": true,
      "payment_intent": "pi_123",
      "payment_method": "pm_123",
      "status": "succeeded"
    }
  ],
  "has_more": false,
  "object": "list",
  "url": "/v1/charges"
}

Updates a charge#

POST/v1/charges/{charge}rak_charge_write

Path parameters
  • chargestringRequired

    The Charge's id.

Headers
  • Idempotency-KeystringOptional

    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.

  • Fluveo-VersionenumOptional

    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.

Body parameters
  • descriptionstringOptional

    Free text for your own records.

  • fraud_detailsobjectOptionalPreview

    Your fraud report on the charge: fraud_details[user_report] is fraudulent or safe, and an empty value clears it. Fluveo passes the report on before the charge keeps it.

    1 child field
  • metadataobjectOptional

    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.

  • receipt_emailstringOptionalPreview

    Email address that receives the payment receipt.

  • shippingobjectOptionalPreview

    Shipping name, address and phone for the order.

    5 child fields

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 charge object.

Request
curl https://api.fluveo.com/v1/charges/ch_123 \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  --data-urlencode "description=Order 1042" \
  --data-urlencode "metadata[order_id]=1042"
const response = await fetch("https://api.fluveo.com/v1/charges/ch_123", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_test_...",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: new URLSearchParams([["description","Order 1042"],["metadata[order_id]","1042"]]),
});
console.log(await response.json());
import uuid

import requests

response = requests.post(
    "https://api.fluveo.com/v1/charges/ch_123",
    headers={"Authorization": "Bearer sk_test_...", "Idempotency-Key": str(uuid.uuid4())},
    data=[("description", "Order 1042"), ("metadata[order_id]", "1042")],
)
print(response.json())
<?php
$ch = curl_init("https://api.fluveo.com/v1/charges/ch_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 => "description=Order%201042&metadata%5Border_id%5D=1042",
]);
echo curl_exec($ch);
Response (abridged example)
{
  "amount": 2000,
  "amount_captured": 2000,
  "captured": true,
  "created": 1767225600,
  "currency": "usd",
  "id": "ch_123",
  "livemode": false,
  "metadata": {},
  "object": "charge",
  "paid": true,
  "payment_intent": "pi_123",
  "payment_method": "pm_123",
  "status": "succeeded"
}

Retrieves a charge#

GET/v1/charges/{charge}rak_charge_read

Path parameters
  • chargestringRequired

    The Charge's id.

Headers
  • Fluveo-VersionenumOptional

    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 charge object.

Request
curl https://api.fluveo.com/v1/charges/ch_123 \
  -H "Authorization: Bearer sk_test_..."
const response = await fetch("https://api.fluveo.com/v1/charges/ch_123", {
  method: "GET",
  headers: {
    "Authorization": "Bearer sk_test_...",
  },
});
console.log(await response.json());
import requests

response = requests.get(
    "https://api.fluveo.com/v1/charges/ch_123",
    headers={"Authorization": "Bearer sk_test_..."},
)
print(response.json())
<?php
$ch = curl_init("https://api.fluveo.com/v1/charges/ch_123");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer sk_test_...",
    ],
]);
echo curl_exec($ch);
Response (abridged example)
{
  "amount": 2000,
  "amount_captured": 2000,
  "captured": true,
  "created": 1767225600,
  "currency": "usd",
  "id": "ch_123",
  "livemode": false,
  "metadata": {},
  "object": "charge",
  "paid": true,
  "payment_intent": "pi_123",
  "payment_method": "pm_123",
  "status": "succeeded"
}

GET/v1/charges/searchrak_charge_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 value, such as status:"succeeded" or amount>1000. The charge fields are amount, created, currency, customer, disputed, refunded, status, billing_details.address.postal_code, payment_method_details.card.brand, exp_month, exp_year, fingerprint and last4 (and the same under card_present and interac_present), and metadata["key"]. amount and created take :, =, <, <=, > and >= with a whole number, quoted or not. Every other field takes only :, which matches the whole value in any case; disputed and refunded take true or false, status takes failed, pending or succeeded, and refunded:null finds the charges not fully refunded. A - before a clause negates it. field:null matches a field that is absent or empty, and -field:null one that is set. Join clauses with AND or OR (a space means AND), never both in one query and never with parentheses, up to 10 clauses. Quote text values with single or double quotes. A query Fluveo cannot read answers invalid_request_error with the reason. 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 charge is found as soon as its PaymentIntent's answer returns.

Query parameters
  • limitintegerOptional

    How many objects to return, from 1 to 100. Default 10.

  • pagestringOptional

    The next_page of the previous answer, to get the page after it. Send the same query with it.

  • querystringRequired

    The search query, in the language the description above gives.

Headers
  • Fluveo-VersionenumOptional

    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 charge objects.

Request
curl -G https://api.fluveo.com/v1/charges/search \
  -H "Authorization: Bearer sk_test_..." \
  --data-urlencode "query=status:\"succeeded\" AND metadata[\"order_id\"]:\"1042\""
const response = await fetch("https://api.fluveo.com/v1/charges/search" + "?" + new URLSearchParams([["query","status:\"succeeded\" AND metadata[\"order_id\"]:\"1042\""]]), {
  method: "GET",
  headers: {
    "Authorization": "Bearer sk_test_...",
  },
});
console.log(await response.json());
import requests

response = requests.get(
    "https://api.fluveo.com/v1/charges/search",
    headers={"Authorization": "Bearer sk_test_..."},
    params=[("query", "status:\"succeeded\" AND metadata[\"order_id\"]:\"1042\"")],
)
print(response.json())
<?php
$ch = curl_init("https://api.fluveo.com/v1/charges/search?query=status%3A%22succeeded%22%20AND%20metadata%5B%22order_id%22%5D%3A%221042%22");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer sk_test_...",
    ],
]);
echo curl_exec($ch);
Response (abridged example)
{
  "data": [
    {
      "amount": 2000,
      "amount_captured": 2000,
      "captured": true,
      "created": 1767225600,
      "currency": "usd",
      "id": "ch_123",
      "livemode": false,
      "metadata": {},
      "object": "charge",
      "paid": true,
      "payment_intent": "pi_123",
      "payment_method": "pm_123",
      "status": "succeeded"
    }
  ],
  "has_more": false,
  "next_page": null,
  "object": "search_result",
  "url": "/v1/charges/search"
}

The charge object#

Ids start with ch_.

Attributes