Skip to content

List stores

GET
/v1/stores
curl --request GET \
--url 'https://api.loyx.se/partners/v1/stores?limit=20&offset=0' \
--header 'Authorization: Bearer <token>'

List stores with offset pagination. Filter by status and/or type to narrow results.

limit
Limit

Maximum number of stores to return (1–200).

integer
default: 20 >= 1 <= 200

Maximum number of stores to return (1–200).

offset
Offset

Number of stores to skip.

integer
0

Number of stores to skip.

status
Any of:
string

Filter by store status (e.g. active, inactive).

type
Any of:
string

Filter by store type (e.g. physical, online, warehouse).

Paginated list of stores.

Media typeapplication/json
StoreListResponse

Paginated list of stores.

object
data
required
Data
Array<object>
StoreResponse

Full store response — excludes company_id.

object
_id
required
Id
string format: uuid
address
Any of:
AddressResponse

Address in response.

object
city
required
City
string
country
required
Country
string
postal_code
required
Postal Code
string
region
Any of:
string
street1
required
Street1
string
street2
Any of:
string
contact
Any of:
StoreContactResponse

Contact info in response.

object
email
Any of:
string
phone
Any of:
string
website
Any of:
string
created_at
required
Created At
string format: date-time
external_ids
External Ids
object
key
additional properties
string
external_store_id
Any of:
string
geo
Any of:
GeoLocationResponse

Geo location in response.

object
latitude
required
Latitude
number
longitude
required
Longitude
number
icon
Any of:
StoreMediaResponse

Media reference in response.

object
content_type
required
Content Type
string
url
required
Url
string
logo
Any of:
StoreMediaResponse

Media reference in response.

object
content_type
required
Content Type
string
url
required
Url
string
name
required
Name
string
org_number
Any of:
string
status
required
Status
string
tags
Tags
Array<string>
timezone
required
Timezone
string
type
required
Type
string
updated_at
required
Updated At
string format: date-time
vat_number
Any of:
string
pagination
required
PaginationMeta

Pagination metadata for list responses.

object
has_more
required
Has More

Whether more items exist

boolean
limit
required
Limit

Maximum items per page

integer
offset
required
Offset

Number of items skipped

integer
total
required
Total

Total number of items

integer

Example generated

{
"data": [
{
"_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"address": {
"city": "example",
"country": "example",
"postal_code": "example",
"region": "example",
"street1": "example",
"street2": "example"
},
"contact": {
"email": "example",
"phone": "example",
"website": "example"
},
"created_at": "2026-04-15T12:00:00Z",
"external_ids": {
"additionalProperty": "example"
},
"external_store_id": "example",
"geo": {
"latitude": 1,
"longitude": 1
},
"icon": {
"content_type": "example",
"url": "example"
},
"logo": {
"content_type": "example",
"url": "example"
},
"name": "example",
"org_number": "example",
"status": "example",
"tags": [
"example"
],
"timezone": "example",
"type": "example",
"updated_at": "2026-04-15T12:00:00Z",
"vat_number": "example"
}
],
"pagination": {
"has_more": true,
"limit": 1,
"offset": 1,
"total": 1
}
}

missing_token, invalid_authorization_header or invalid_token: get a new access token and retry once.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

insufficient_scope: the API key lacks the scope this route needs.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

Validation Error

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

rate_limit_exceeded: wait Retry-After seconds.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}

internal_server_error or database_error (type internal_error): our fault. Retry with backoff; quote request_id.

Media typeapplication/json
ErrorResponse

Standard error response format.

object
error
required
ErrorDetail

Error detail structure (Stripe-like format).

object
code
required
Code

Machine-readable error code

string
details
Any of:
Array<object>
FieldErrorDetail

One failing field of a validation error.

object
message
required
Message

Why the value was refused

string
param
required
Param

Dotted path of the field, e.g. items.0.unit_price.value

string
doc_url
Any of:
string
message
required
Message

Human-readable error message

string
param
Any of:
string
type
required
Type

Error type category

string
request_id
Any of:
string

Example generated

{
"error": {
"code": "example",
"details": [
{
"message": "example",
"param": "example"
}
],
"doc_url": "example",
"message": "example",
"param": "example",
"type": "example"
},
"request_id": "example"
}