{
    "openapi": "3.1.0",
    "info": {
        "title": "Harmonija public product discovery",
        "version": "5.19.0",
        "description": "Read-only product discovery. Primary market SI; declared delivery countries: SI. Verify current product page, price and delivery. Bounded candidates; no guarantee of catalog-wide cheapest price."
    },
    "servers": [
        {
            "url": "https://harmonija.net"
        }
    ],
    "paths": {
        "/wp-json/lcps/v1/products": {
            "get": {
                "operationId": "searchHarmonijaProducts",
                "summary": "Search public Harmonija products with optional filters",
                "description": "Filter and sort the bounded relevant candidate pool. Use next_offset to continue. Only public stock; verify final prices and dimensions at product URL.",
                "x-openai-isConsequential": false,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Keywords, not identifiers or URLs; 3–160 chars, at least one letter.",
                        "schema": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 160
                        }
                    },
                    {
                        "name": "min_price",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive stored active simple-product price in store base currency, not final checkout price.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000000
                        }
                    },
                    {
                        "name": "max_price",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive stored active simple-product price in store base currency, not final checkout price.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000000
                        }
                    },
                    {
                        "name": "material",
                        "in": "query",
                        "required": false,
                        "description": "Exact stored material attribute",
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                        }
                    },
                    {
                        "name": "color",
                        "in": "query",
                        "required": false,
                        "description": "Exact stored color attribute",
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                        }
                    },
                    {
                        "name": "brand",
                        "in": "query",
                        "required": false,
                        "description": "Exact stored brand attribute",
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "description": "Exact assigned category name or slug (not descendants)",
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                        }
                    },
                    {
                        "name": "min_width",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive width in cm, requires explicit unambiguous product attribute; simple products only.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000
                        }
                    },
                    {
                        "name": "max_width",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive width in cm, requires explicit unambiguous product attribute; simple products only.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000
                        }
                    },
                    {
                        "name": "min_height",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive height in cm, requires explicit unambiguous product attribute; simple products only.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000
                        }
                    },
                    {
                        "name": "max_height",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive height in cm, requires explicit unambiguous product attribute; simple products only.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000
                        }
                    },
                    {
                        "name": "min_depth",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive depth in cm, requires explicit unambiguous product attribute; simple products only.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000
                        }
                    },
                    {
                        "name": "max_depth",
                        "in": "query",
                        "required": false,
                        "description": "Inclusive depth in cm, requires explicit unambiguous product attribute; simple products only.",
                        "schema": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100000
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort over bounded relevant candidate set before paging.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "relevance",
                                "price_asc",
                                "price_desc"
                            ],
                            "default": "relevance"
                        }
                    },
                    {
                        "name": "in_stock",
                        "in": "query",
                        "required": false,
                        "description": "1 only in stock; 0 also on backorder. Never out of stock.",
                        "schema": {
                            "type": "integer",
                            "enum": [
                                0,
                                1
                            ],
                            "default": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Page size; max 50. Follow next_offset.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 24
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "1-based page. Do not combine with offset. Effective bound depends on query. Effective cap depends on query; follow next_offset.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 2400
                        }
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "required": false,
                        "description": "0-based offset. Follow next_offset while has_more. Do not combine with page. Effective bound depends on query; use returned next_offset. Effective cap depends on query; follow next_offset.",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 2399
                        }
                    },
                    {
                        "name": "match",
                        "in": "query",
                        "required": false,
                        "description": "All literal whole words in the product title with title_words; bounded candidates; no inflection.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "default",
                                "title_words"
                            ],
                            "default": "default"
                        }
                    },
                    {
                        "name": "lcps_probe",
                        "in": "query",
                        "required": false,
                        "description": "Optional opaque correlation marker; not a search filter. Use only a random lowercase hex value, never personal data.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{24}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bounded product search result. Empty result is valid.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "q": {
                                            "type": "string"
                                        },
                                        "filters": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "sort": {
                                            "type": "string"
                                        },
                                        "in_stock": {
                                            "type": "integer"
                                        },
                                        "limit": {
                                            "type": "integer"
                                        },
                                        "offset": {
                                            "type": "integer"
                                        },
                                        "next_offset": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        },
                                        "has_more": {
                                            "type": "boolean"
                                        },
                                        "count": {
                                            "type": "integer"
                                        },
                                        "matched_candidates": {
                                            "type": "integer"
                                        },
                                        "candidates_examined": {
                                            "type": "integer"
                                        },
                                        "candidate_limit": {
                                            "type": "integer"
                                        },
                                        "candidate_cap_reached": {
                                            "type": "boolean"
                                        },
                                        "search_mode": {
                                            "type": "string"
                                        },
                                        "live_excluded_on_page": {
                                            "type": "integer"
                                        },
                                        "currency": {
                                            "type": "string"
                                        },
                                        "filter_currency": {
                                            "type": "string"
                                        },
                                        "price_basis": {
                                            "type": "string"
                                        },
                                        "scope": {
                                            "type": "string"
                                        },
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "product_id": {
                                                        "type": "integer"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "url": {
                                                        "type": "string",
                                                        "format": "uri"
                                                    },
                                                    "sku": {
                                                        "type": "string"
                                                    },
                                                    "ean": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "availability": {
                                                        "type": "string",
                                                        "enum": [
                                                            "instock",
                                                            "onbackorder"
                                                        ]
                                                    },
                                                    "product_type": {
                                                        "type": "string"
                                                    },
                                                    "price": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "filter_price": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "price_text": {
                                                        "type": "string"
                                                    },
                                                    "attributes": {
                                                        "type": "object",
                                                        "properties": {
                                                            "material": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "color": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "brand": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "category": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "dimensions_cm": {
                                                        "type": "object",
                                                        "properties": {
                                                            "width": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            },
                                                            "height": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            },
                                                            "depth": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "dimension_sources": {
                                                        "type": "object",
                                                        "description": "Evidence source for each axis; null means unverified. Explicit labelled overall public description measurements may fill missing axes during dimension-filtered search.",
                                                        "properties": {
                                                            "width": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "named_attribute",
                                                                    "public_description_explicit_axes",
                                                                    null
                                                                ]
                                                            },
                                                            "height": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "named_attribute",
                                                                    "public_description_explicit_axes",
                                                                    null
                                                                ]
                                                            },
                                                            "depth": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "named_attribute",
                                                                    "public_description_explicit_axes",
                                                                    null
                                                                ]
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "merchant": {
                                            "type": "object",
                                            "properties": {
                                                "primary_market": {
                                                    "type": "string"
                                                },
                                                "delivery_countries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "locale": {
                                                    "type": "string"
                                                },
                                                "delivery_note": {
                                                    "type": "string"
                                                },
                                                "currency": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "api_version": {
                                            "type": "string",
                                            "description": "LCPS version at response generation"
                                        },
                                        "checked_at_utc": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "UTC response generation time, not a guarantee of external retrieval freshness"
                                        },
                                        "match": {
                                            "type": "string",
                                            "enum": [
                                                "default",
                                                "title_words"
                                            ]
                                        },
                                        "request_id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "description": "Origin correlation ID; match against operator trace, not proof of AI identity."
                                        },
                                        "probe_id": {
                                            "type": "string",
                                            "pattern": "^[a-f0-9]{24}$",
                                            "description": "Echo of an optional opaque diagnostic marker."
                                        },
                                        "candidate_refinement": {
                                            "type": "object",
                                            "description": "Optional bounded candidate passes, including price/stock prefilter before LIMIT.",
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "not_needed",
                                                        "applied",
                                                        "unavailable"
                                                    ]
                                                },
                                                "base_candidates": {
                                                    "type": "integer"
                                                },
                                                "additional_candidates": {
                                                    "type": "integer"
                                                },
                                                "max_candidates": {
                                                    "type": "integer"
                                                },
                                                "additional_pool_cap_reached": {
                                                    "type": "boolean"
                                                },
                                                "passes": {
                                                    "type": [
                                                        "object",
                                                        "array"
                                                    ],
                                                    "description": "Per-pass status and added candidates; empty array if no passes."
                                                }
                                            }
                                        },
                                        "filter_exclusions": {
                                            "type": "object",
                                            "description": "Counts by first failing criterion only, not a catalog-wide audit.",
                                            "additionalProperties": {
                                                "type": "integer"
                                            }
                                        },
                                        "result_status": {
                                            "type": "string",
                                            "enum": [
                                                "items_found",
                                                "empty_page_more_available",
                                                "empty_bounded_candidates",
                                                "empty_checked_candidates"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "error": {
                                            "type": "string"
                                        },
                                        "parameter": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Search disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "error": {
                                            "type": "string"
                                        },
                                        "parameter": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limited; retry later",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "error": {
                                            "type": "string"
                                        },
                                        "parameter": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Catalog temporarily unavailable; retry same offset",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "error": {
                                            "type": "string"
                                        },
                                        "parameter": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/lcps/v1/lookup": {
            "get": {
                "operationId": "lookupHarmonijaProduct",
                "summary": "Exact EAN or SKU lookup",
                "description": "Read-only exact lookup. Max 5 public results. Verify matching SKU/EAN and product page. Shared rate limit approximately 30/min/IP.",
                "x-openai-isConsequential": false,
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ean",
                                "sku",
                                "vidaxl_sku"
                            ]
                        }
                    },
                    {
                        "name": "value",
                        "in": "query",
                        "required": true,
                        "description": "EAN, exact local SKU or original vidaXL SKU.",
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 190
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Exact result; count=0 means not available, not a transport failure.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "count": {
                                            "type": "integer"
                                        },
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "product_id": {
                                                        "type": "integer"
                                                    },
                                                    "product_type": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "sku": {
                                                        "type": "string"
                                                    },
                                                    "ean": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    },
                                                    "image_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "availability": {
                                                        "type": "string"
                                                    },
                                                    "price": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount": {
                                                                "type": "string"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            },
                                                            "indicative": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    },
                                                    "vidaxl_sku": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        },
                                        "result_status": {
                                            "type": "string"
                                        },
                                        "lookup_source": {
                                            "type": "string"
                                        },
                                        "html_url": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "merchant": {
                                            "type": "object",
                                            "properties": {
                                                "primary_market": {
                                                    "type": "string"
                                                },
                                                "delivery_countries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "locale": {
                                                    "type": "string"
                                                },
                                                "currency": {
                                                    "type": "string"
                                                },
                                                "delivery_note": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "price_note": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid identifier"
                    },
                    "403": {
                        "description": "Disabled or denied"
                    },
                    "429": {
                        "description": "Rate limited; respect Retry-After"
                    },
                    "503": {
                        "description": "Temporarily unavailable"
                    }
                }
            }
        },
        "/wp-json/lcps/v1/vidaxl": {
            "get": {
                "operationId": "lookupHarmonijaVidaXL",
                "summary": "Exact vidaXL SKU, EAN or URL lookup",
                "description": "Read-only exact lookup. Max 5 public results. Verify matching SKU/EAN and product page. Shared rate limit approximately 30/min/IP.",
                "x-openai-isConsequential": false,
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ean",
                                "sku",
                                "url"
                            ]
                        }
                    },
                    {
                        "name": "value",
                        "in": "query",
                        "required": true,
                        "description": "EAN, original numeric SKU or supported vidaXL product/image URL, URL encoded.",
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Exact result; count=0 means not available, not a transport failure.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "count": {
                                            "type": "integer"
                                        },
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "product_id": {
                                                        "type": "integer"
                                                    },
                                                    "product_type": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "sku": {
                                                        "type": "string"
                                                    },
                                                    "ean": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    },
                                                    "image_url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "availability": {
                                                        "type": "string"
                                                    },
                                                    "price": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "amount": {
                                                                "type": "string"
                                                            },
                                                            "currency": {
                                                                "type": "string"
                                                            },
                                                            "indicative": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    },
                                                    "vidaxl_sku": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        },
                                        "result_status": {
                                            "type": "string"
                                        },
                                        "lookup_source": {
                                            "type": "string"
                                        },
                                        "html_url": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "merchant": {
                                            "type": "object",
                                            "properties": {
                                                "primary_market": {
                                                    "type": "string"
                                                },
                                                "delivery_countries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "locale": {
                                                    "type": "string"
                                                },
                                                "currency": {
                                                    "type": "string"
                                                },
                                                "delivery_note": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "price_note": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid identifier"
                    },
                    "403": {
                        "description": "Disabled or denied"
                    },
                    "429": {
                        "description": "Rate limited; respect Retry-After"
                    },
                    "503": {
                        "description": "Temporarily unavailable"
                    }
                }
            }
        }
    }
}
