Skip to main content
cURL

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Query Parameters

shop_id
string[]

Only these connected shops, comma-separated; default every connected shop of the workspace. A shop outside the workspace is 404.

ordered_after
string

Only customers with an order at or after this time (a date is midnight UTC).

Pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
ordered_before
string

Only customers with an order before this time.

Pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
sort
enum<string>

lifetime_value, orders, last_order, first_order; prefix - for descending. Default -last_order. lifetime_value ranks by the lifetime total Alura stored for each customer, in USD at the request's exchange rates: a customer whose total Alura cannot verify against the stored orders keeps that rank with lifetime_value: null (the lifetime_value_ranked_by_stored_total notice says so), and customers with no stored total come last. orders ranks by the order count Alura stored for each customer, which may include canceled orders Etsy says were never paid (the served orders leaves those out). For the other sorts, customers whose value is unknown come last. Ties go by customer ID.

Available options:
lifetime_value,
orders,
last_order,
first_order,
-lifetime_value,
-orders,
-last_order,
-first_order
Example:

"-lifetime_value"

repeat
enum<string>

true: only customers with 2 or more orders; false: only customers with one. By the order count Alura stored for each customer, which may include canceled orders Etsy says were never paid, so a customer's served repeat can differ.

Available options:
true,
false
Example:

"true"

limit
integer

Page size: default 25, at most 100.

Required range: 1 <= x <= 100
cursor
string

The next_cursor of the previous page. Bound to the query, the workspace and the key.

fields
string

Comma-separated dotted paths to return; id, object and as_of always come back.

Response

OK

object
string
required
Allowed value: "list"
data
object[]
required
has_more
boolean
required
next_cursor
string | null
required
total
object
required
summary
object
required