Skip to main content
GET
List top customers

Authorizations

X-App-Id
string
header
required

App ID for authentication

X-Api-Key
string
header
required

API Key for authentication

Query Parameters

basis
enum<string>
default:sales

sales ranks by invoices issued in the range. cash ranks by payments received in it.

Available options:
sales,
cash
start_date
string<date>

First day of the range, as YYYY-MM-DD. The range can be at most 24 months.

end_date
string<date>

Last day of the range, as YYYY-MM-DD.

page
integer
default:1

Page number, from 1 to 10000.

Required range: 1 <= x <= 10000
per_page
integer
default:20

Number of rows per page, from 1. Values above 100 are treated as 100.

Required range: x >= 1

Response

Successful operation

currency
enum<string>

ISO currency code. Most resources support these. Products are limited to USD, CAD, EUR, GBP, AUD.

Available options:
USD,
CAD,
GBP,
EUR,
AUD,
JPY,
INR
basis
enum<string>

What the list ranks by, as sent.

Available options:
sales,
cash
customer_count
integer

Number of customers with an amount in the range, across every page.

Example:

86

total
integer

Every customer's amount in the range, in cents. Matches Get monthly sales and payments for the same months.

Example:

511000000

data
object[]
meta
object