List stores
const url = 'https://api.loyx.se/partners/v1/stores?limit=20&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Maximum number of stores to return (1–200).
Maximum number of stores to return (1–200).
Number of stores to skip.
Number of stores to skip.
Responses
Section titled “Responses”Paginated list of stores.
Paginated list of stores.
object
Full store response — excludes company_id.
object
object
Geo location in response.
object
Media reference in response.
object
Media reference in response.
object
Pagination metadata for list responses.
object
Whether more items exist
Maximum items per page
Number of items skipped
Total number of items
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.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
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.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}Validation Error
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
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.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
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.
Standard error response format.
object
Error detail structure (Stripe-like format).
object
Machine-readable error code
One failing field of a validation error.
object
Why the value was refused
Dotted path of the field, e.g. items.0.unit_price.value
Human-readable error message
Error type category
Example generated
{ "error": { "code": "example", "details": [ { "message": "example", "param": "example" } ], "doc_url": "example", "message": "example", "param": "example", "type": "example" }, "request_id": "example"}