Skip to main content
GET
/
total-spent
Total Spent
curl --request GET \
  --url https://tokens.shakesco.com/total-spent \
  --header 'Authorization: Bearer <token>'
{ "total_spent": "50.0" }

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. Returns the lifetime total of tokens this customer has redeemed via /redeem-tokens. Never decreases.

Query Parameters

customer_ref
string
required
Your unique identifier for this customer

Response

total_spent
string
Lifetime redemptions as a plain decimal string
const res = await fetch(
  "https://tokens.shakesco.com/total-spent?customer_ref=customer-123",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { total_spent } = await res.json();
{ "total_spent": "50.0" }