Ga naar hoofdinhoud

Products API

The Products API allows you to fetch product information including attributes.

Endpoints

Get Products by Location

GET /v1/{domain}/products/{locationId}

Returns all products available for a specific location.

Search Products

POST /v1/appsalon-search

Global search endpoint that returns products across all organizations.

Get Products by Categories and Location

POST /v1/{domain}/products

Filter products by selected categories and location.

Response Format

All product endpoints return products with the following structure:

{
"id": 1,
"name": "Nails",
"description": "Nail treatment",
"price": "25.00",
"price_type": "static",
"duration": 60,
"file_path": "products/nails.jpg",
"categories": [
{
"id": 1,
"name": "Beauty"
}
],
"subcategories": [
{
"id": 1,
"name": "Nails"
}
],
"attributes": [
{
"category_id": 1,
"category_name": "Length",
"values": [
{
"attribute_id": 1,
"attribute_name": "1CM"
}
]
}
]
}

Attributes

Products can have attributes organized by category. See Product Attributes for more details.