Skip to main content
cURL

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The Etsy buyer's user ID. A buyer with no customer record in the workspace's shops is 404.

Pattern: ^[0-9]{1,20}$
Example:

"4242"

Query Parameters

fields
string

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

Response

OK

object
string
required
Allowed value: "workspace.customer"
id
string
required

The Etsy buyer's user ID.

shop_ids
string[]
required

The selected connected shops the customer ordered from (ascending). For one customer by ID whose merged numbers are null because they ordered from a connected shop whose customers step has not run yet, every connected shop they ordered from, that one included.

Etsy ID, as a string.

name
string | null
required

The customer's name as stored on the customer row of the shop they ordered from last.

image_url
string | null
required

The buyer's Etsy profile image (75px); null when Alura has not stored it.

location
object
required

Where the customer's orders ship, 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); a part Etsy did not give is null.

orders
integer | null
required

Orders placed, summed over the selected shops. A canceled order Etsy says was never paid is not an order: left out once Alura has stored every one of the customer's orders in a shop; until then, that shop's count is the stored count, which may include one. null when a shop's count is unknown, or, for one customer by ID, when they ordered from a connected shop whose customers step has not run yet.

items
integer | null
required

Units ordered, summed; null when Alura has not stored every order's items, or, for one customer by ID, when they ordered from a connected shop whose customers step has not run yet.

first_order_at
string | null
required

The customer's first order in the selected shops, ISO 8601, UTC; null when unknown, or, for one customer by ID, when they ordered from a connected shop whose customers step has not run yet.

last_order_at
string | null
required

The customer's latest order in the selected shops, ISO 8601, UTC; null when unknown, or, for one customer by ID, when they ordered from a connected shop whose customers step has not run yet.

repeat
boolean | null
required

Whether orders is 2 or more; null when orders is.

lifetime_value
object | null
required

What the customer paid, summed over the selected shops (Etsy's payment gross). null when Alura has not stored every payment, or, for one customer by ID, when they ordered from a connected shop whose customers step has not run yet, so a total is never short.

average_order_value
object | null
required

lifetime_value divided by orders (recomputed from the sums, never averaged); null when either is.

refunds
object
required

Refunds to the customer.

reviews
object
required

Reviews the customer left the selected shops.

as_of
string | null
required

When the customer was last computed: the oldest customers step of the customer's shops; null when one of them was never computed.