> ## 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.

# Total Spent

> Lifetime tokens redeemed by a customer

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Returns the lifetime total of tokens this customer has redeemed via `/redeem-tokens`. Never decreases.

### Query Parameters

<ParamField query="customer_ref" type="string" required>
  Your unique identifier for this customer
</ParamField>

### Response

<ResponseField name="total_spent" type="string">
  Lifetime redemptions as a plain decimal string
</ResponseField>

```javascript theme={null}
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();
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "total_spent": "50.0" }
  ```
</ResponseExample>
