Docs

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/store
Permission required: store:read

The 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

FieldTypeDescription
store_idstringThe store's id.
namestringThe store's name.
storefront_urlstringThe address of the storefront, on the store's main domain.
themestringThe name of the theme the storefront uses.
time_zonestringThe store's time zone, for example Africa/Casablanca.
weight_unitstringThe unit of every weight of the store: kg, g, lb or oz.
is_publishedbooleanWhether the storefront is open to visitors.
created_atstringWhen the store was created (UTC).
planobjectThe store's Storeep plan, see below.
marketsarrayEvery market the store sells in, the main one first.
custom_statusesarrayThe 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

FieldTypeDescription
namestringThe plan's name. starter is the plan of a store with no subscription.
termstring | nullmonthly or annual, null on starter.
renews_atstring | nullWhen the current period ends (UTC), null on starter.
sales_remainingfloat | nullThe sales the plan still covers in this period, null on starter.
orders_remaininginteger | nullThe orders the plan still covers in this period, null on starter.

Market Object

FieldTypeDescription
market_idstringThe market's id.
marketstringIts two letter country code, for example MA. This is the value the market filters and fields of the API take.
currencystringThe currency code of its prices, for example MAD.
symbolstringThe currency symbol the storefront prints.
symbol_positionstringWhere the symbol sits beside an amount: before, before_space, after or after_space.
is_primarybooleanWhether it is the store's main market. Its currency is the store currency.
is_enabledbooleanWhether the market is open. A market that is off keeps its prices and sells nothing.

List Customers

GET/v1/customers
Permission required: customers:read

Lists 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

ParameterTypeDefaultDescription
searchstringNoneKeeps the customers whose name, email or phone holds this text. Max 255 characters.
limitinteger20Number of customers per page. Range: 1–50.
pageinteger1Page 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

FieldTypeDescription
customer_idstringThe customer's id, the same one order events carry.
fullnamestring | nullThe name on their latest order.
emailstring | nullThe email on their latest order, null when they gave none.
phonestring | nullThe phone on their latest order.
created_atstringWhen the customer was created (UTC).
ordersintegerHow many orders they placed. Abandoned checkouts are not counted.
lifetime_valuenumberThe 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.