Skip to content

Get store by ID

GET
/v1/stores/{store_id}
curl --request GET \
--url https://api.loyx.se/partners/v1/stores/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Retrieve a single store by its internal UUID.

store_id
required
Store Id

The store’s internal UUID.

string format: uuid

The store’s internal UUID.

The requested store.

Media typeapplication/json
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

Example generated

{
"_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"
}

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"
}

Store not found.

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"
}