Store and Customers
Read the store an app is installed on: its name, its address, its markets and currencies, its plan and its custom order statuses. Then list its customers.
Both endpoints need a permission only an app can hold, so they accept an app access token only.
Get the Store
GET
/v1/storePermission required:
store:readThe store comes from the token, so the request takes no parameter. Call it first: the market codes and currencies it returns are what the filters and prices of every other endpoint refer to.
Example Request
cURL
curl "https://api.storeep.com/v1/store" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
200 OK
{
"data": {
"store_id": "234567890123456789",
"name": "Atlas Shop",
"storefront_url": "https://example.com",
"theme": "velvet",
"time_zone": "Africa/Casablanca",
"weight_unit": "kg",
"is_published": true,
"created_at": "2026-09-03 02:22:48",
"plan": {
"name": "business",
"term": "monthly",
"renews_at": "2026-12-03 02:22:48",
"sales_remaining": 48250.5,
"orders_remaining": 1830
},
"markets": [
{
"market_id": "234567890123456790",
"market": "MA",
"currency": "MAD",
"symbol": "DH",
"symbol_position": "after_space",
"is_primary": true,
"is_enabled": true
}
],
"custom_statuses": [
{
"status": "custom-1",
"name": "Waiting for stock"
}
]
}
}Store Object
| Field | Type | Description |
|---|---|---|
store_id | string | The store's id. |
name | string | The store's name. |
storefront_url | string | The address of the storefront, on the store's main domain. |
theme | string | The name of the theme the storefront uses. |
time_zone | string | The store's time zone, for example Africa/Casablanca. |
weight_unit | string | The unit of every weight of the store: kg, g, lb or oz. |
is_published | boolean | Whether the storefront is open to visitors. |
created_at | string | When the store was created (UTC). |
plan | object | The store's Storeep plan, see below. |
markets | array | Every market the store sells in, the main one first. |
custom_statuses | array | The order statuses the merchant added, up to six. Each has the status an order carries, custom-1 to custom-6, and the name the merchant gave it. Empty when the store has none. |
Plan Object
| Field | Type | Description |
|---|---|---|
name | string | The plan's name. starter is the plan of a store with no subscription. |
term | string | null | monthly or annual, null on starter. |
renews_at | string | null | When the current period ends (UTC), null on starter. |
sales_remaining | float | null | The sales the plan still covers in this period, null on starter. |
orders_remaining | integer | null | The orders the plan still covers in this period, null on starter. |
Market Object
| Field | Type | Description |
|---|---|---|
market_id | string | The market's id. |
market | string | Its two letter country code, for example MA. This is the value the market filters and fields of the API take. |
currency | string | The currency code of its prices, for example MAD. |
symbol | string | The currency symbol the storefront prints. |
symbol_position | string | Where the symbol sits beside an amount: before, before_space, after or after_space. |
is_primary | boolean | Whether it is the store's main market. Its currency is the store currency. |
is_enabled | boolean | Whether the market is open. A market that is off keeps its prices and sells nothing. |
List Customers
GET
/v1/customersPermission required:
customers:readLists the store's customers, newest first, each with the name, email and phone of their latest order. A customer is someone who placed at least one order the merchant can still see.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
search | string | None | Keeps the customers whose name, email or phone holds this text. Max 255 characters. |
limit | integer | 20 | Number of customers per page. Range: 1–50. |
page | integer | 1 | Page number. Range: 1–10000. A higher page answers 422. |
Example Request
cURL
curl "https://api.storeep.com/v1/customers?search=sara&limit=10" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
200 OK
{
"data": {
"customers": [
{
"customer_id": "215623984886239232",
"fullname": "Sara Alami",
"email": "sara@example.com",
"phone": "+212612345678",
"created_at": "2026-11-28 10:15:28",
"orders": 3,
"lifetime_value": 1734
}
],
"currency": "MAD",
"pagination": {
"total": 1,
"count": 1,
"page": 1,
"limit": 10,
"total_pages": 1
}
}
}This list is shaped differently from the others. The customers sit under
data.customers, and the paging under data.pagination, with page and limit. There is no meta and no links.next: ask for the next page until it reaches total_pages.Customer Object
| Field | Type | Description |
|---|---|---|
customer_id | string | The customer's id, the same one order events carry. |
fullname | string | null | The name on their latest order. |
email | string | null | The email on their latest order, null when they gave none. |
phone | string | null | The phone on their latest order. |
created_at | string | When the customer was created (UTC). |
orders | integer | How many orders they placed. Abandoned checkouts are not counted. |
lifetime_value | number | The total of those orders, converted into data.currency, the currency of the store's main market. |
When a customer is removed from the store, your app receives customer-redact and must delete its copy.