Skip to content

List products

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

List products with offset pagination. Returns an empty array if no products are defined for the company.

limit
Limit

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

integer
default: 20 >= 1 <= 200

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

offset
Offset

Number of products to skip.

integer
0

Number of products to skip.

Paginated list of products.

Media typeapplication/json
ProductListResponse

Paginated list of products.

object
data
required
Data
Array<object>
ProductResponse

Catalog-only product response.

Per-store pricing lives in the stores_products schemas (GET /stores/{store_id}/products).

object
_id
required
Id
string format: uuid
brand
Any of:
string
categories
Categories
Array<string>
company_category
Any of:
string
company_display_name
Any of:
string
company_logo_url
Any of:
string
created_at
required
Created At
string format: date-time
description
Any of:
string
external_product_id
Any of:
string
identifiers
Identifiers
Array<object>
IdentifierResponse

Typed product identifier in API responses.

object
type
required
Type
string
value
required
Value
string
image_link
Any of:
string
is_loyalty_program_eligible
required
Is Loyalty Program Eligible
boolean
loyx_app_active
required
Loyx App Active
boolean
loyx_business_app_active
required
Loyx Business App Active
boolean
name
required
Name
string
page_url
Any of:
string
price
required
Any of:
PriceSchema

Monetary amount in minor units + currency code + formatting metadata (response).

Includes minor_units (divisor to convert to major units) and locale (RFC 5646) so the client can display prices without hardcoding rules.

object
currency
Currency

ISO 4217 currency code

string
default: SEK
locale
required
Locale

RFC 5646 locale for formatting (e.g. sv-SE)

string
minor_units
required
Minor Units

Divisor to convert to major units (e.g. 100 for SEK)

integer
value
required
Value

Amount in minor units (e.g. öre, cents)

integer
unit
required
Unit
string
updated_at
required
Updated At
string format: date-time
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

{
"data": [
{
"price": {
"currency": "SEK"
}
}
]
}

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