Skip to main content
cURL

Authorizations

Authorization
string
header
required

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

Query Parameters

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.

Body

application/json
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
repeat
boolean

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.

country
string

Only customers whose orders ship to this country (ISO 3166-1 alpha-2), as stored on the customer row of the shop they ordered from last. That row keeps one ship-to per shop, not necessarily the latest order's, so a customer whose ship-to changed can be missed.

Pattern: ^[A-Za-z]{2}$
q
string

A part of the customer's name (case-insensitive), as any of the selected shops stores it.

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