Skip to main content
GET
/
cashback-progress
Cashback Progress
curl --request GET \
  --url https://tokens.shakesco.com/cashback-progress \
  --header 'Authorization: Bearer <token>'
{
  "spent": "320.00",
  "threshold": "500.00",
  "remaining": "180.00",
  "currency": "KES"
}

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 how much the customer has spent toward their next cashback payout. Use this to show progress bars or “spend X more to earn Y tokens” prompts.

Query Parameters

customer_ref
string
required
Your unique identifier for this customer
currency
string
required
Currency to display amounts in (e.g. KES, USD)

Response

spent
string
How much the customer has spent in the current cycle (in requested currency, 2 decimals)
threshold
string
Spend threshold for one cashback payout
remaining
string
Amount still to spend before the next payout
currency
string
Currency code matching the request
const res = await fetch(
  "https://tokens.shakesco.com/cashback-progress?customer_ref=customer-123&currency=KES",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const progress = await res.json();
{
  "spent": "320.00",
  "threshold": "500.00",
  "remaining": "180.00",
  "currency": "KES"
}