Skip to main content
GET
/
analytics
/
customer
/
{email}
Customer Analytics
curl --request GET \
  --url https://payments.shakesco.com/analytics/customer/{email} \
  --header 'Authorization: Bearer <token>'
{
  "payer_email": "customer@example.com",
  "overview": {
    "total_transactions": 8,
    "by_status": {
      "paid": 5,
      "pending": 1,
      "scanned": 0,
      "expired": 1,
      "void": 1
    }
  },
  "revenue": {
    "total_spent_gross": "7840.00",
    "total_spent_net": "7000.00"
  },
  "recent_transactions": [
    {
      "invoice_number": "INV-2026-9c8d7e6f",
      "payer_name": "Jane Doe",
      "payer_email": "customer@example.com",
      "asset": "ETH",
      "amount": "0.00045",
      "status": "paid",
      "paid_at": "2026-05-01T14:22:00.000000Z",
      "created_at": "2026-05-01T10:00:00.000000Z",
      "payer_display": "Jane Doe"
    }
  ],
  "last_transaction_at": "2026-05-01T14:22:00.000000Z"
}

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 a per-customer breakdown of payment activity scoped to your business. Use it to power customer dashboards or to surface a customer’s history in support tools.

Path Parameters

email
string
required
The customer’s email address (URL-encoded)

Response

payer_email
string
The customer’s email
overview
object
Transaction counts grouped by status
revenue
object
Gross and net revenue from this customer (both as decimal strings)
recent_transactions
array
Up to 10 most recent invoices for this customer
last_transaction_at
string | null
ISO 8601 timestamp of the customer’s last paid invoice
const email = encodeURIComponent("customer@example.com");
const res = await fetch(
  `https://payments.shakesco.com/analytics/customer/${email}`,
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const analytics = await res.json();
{
  "payer_email": "customer@example.com",
  "overview": {
    "total_transactions": 8,
    "by_status": {
      "paid": 5,
      "pending": 1,
      "scanned": 0,
      "expired": 1,
      "void": 1
    }
  },
  "revenue": {
    "total_spent_gross": "7840.00",
    "total_spent_net": "7000.00"
  },
  "recent_transactions": [
    {
      "invoice_number": "INV-2026-9c8d7e6f",
      "payer_name": "Jane Doe",
      "payer_email": "customer@example.com",
      "asset": "ETH",
      "amount": "0.00045",
      "status": "paid",
      "paid_at": "2026-05-01T14:22:00.000000Z",
      "created_at": "2026-05-01T10:00:00.000000Z",
      "payer_display": "Jane Doe"
    }
  ],
  "last_transaction_at": "2026-05-01T14:22:00.000000Z"
}