Skip to main content
GET
Customer analytics

Authorizations

X-Suby-Api-Key
string
header
required

Secret API key. sk_live_… (production) or sk_sandbox_… (sandbox).

Path Parameters

id
string
required
Example:

"cus_abc123"

Query Parameters

startDate
integer

Window start, epoch milliseconds.

Required range: x >= 0
endDate
integer

Window end, epoch milliseconds.

Required range: x >= 0

Response

Customer KPIs + revenue trend

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload.

message
string