Skip to main content
GET
/
analytics
/
customer
/
{email}
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": "SKS-2026-0005",
      "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. The analytics endpoint gives you a per-customer breakdown of payment activity scoped to your business.
All analytics endpoints are under https://payments.shakesco.com and require your API key.

GET /analytics/customer/:email

Analytics for a specific customer, scoped to your business. Use this to show customers their own payment history or to build personalised dashboards.

Path Parameter

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

Response

Returns transaction counts by status, gross and net revenue from this customer, their 10 most recent invoices, and the timestamp of their last payment.
{
  "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": "SKS-2026-0005",
      "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"
}

Error Codes

CodeMeaning
400Bad request, invalid email format
401Unauthorized, invalid API key
404Not Found, no data for this customer
500Internal Server Error, contact support