{ "openapi": "3.1.0", "info": { "title": "SOL KYST storefront API", "version": "2026-11-21", "summary": "Public catalog, search and cart endpoints for solkyst.ca, size-inclusive sunglasses in Standard, Soft Wide and Wide fits.", "description": "Read the catalog, search products and build a cart on https://www.solkyst.ca. No key is needed. Prices are integers in the smallest unit of the shopper's currency (cents). Black Friday and deal-of-the-day discounts are applied automatically at cart and checkout, so catalog prices are before those discounts; read total_discount on /cart.js for the discounted total. To search, build carts and check out on a buyer's behalf through an agent protocol, use Shopify's Universal Commerce Protocol (UCP) profile at https://www.solkyst.ca/.well-known/ucp. Orders are placed only with the buyer's authorization.", "contact": { "name": "SOL KYST", "url": "https://www.solkyst.ca/pages/contact" } }, "externalDocs": { "description": "Agent shopping on this store: UCP profile, MCP endpoint and rules", "url": "https://www.solkyst.ca/llms.txt" }, "servers": [ { "url": "https://www.solkyst.ca" } ], "tags": [ { "name": "Catalog", "description": "Products and collections, read only." }, { "name": "Search", "description": "Predictive product search." }, { "name": "Cart", "description": "The shopper's cart in this browser session (cookie based)." } ], "paths": { "/products.json": { "get": { "tags": ["Catalog"], "operationId": "listProducts", "summary": "List published products", "parameters": [ { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 250, "default": 30 } }, { "name": "page", "in": "query", "schema": { "type": "integer", "minimum": 1, "default": 1 } } ], "responses": { "200": { "description": "A page of products.", "content": { "application/json": { "schema": { "type": "object", "properties": { "products": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogProduct" } } } } } } } } } }, "/collections/{collection_handle}/products.json": { "get": { "tags": ["Catalog"], "operationId": "listCollectionProducts", "summary": "List the products in a collection", "description": "Use the handle 'all' for every product.", "parameters": [ { "name": "collection_handle", "in": "path", "required": true, "schema": { "type": "string" }, "example": "all" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 250, "default": 30 } }, { "name": "page", "in": "query", "schema": { "type": "integer", "minimum": 1, "default": 1 } } ], "responses": { "200": { "description": "A page of products in the collection.", "content": { "application/json": { "schema": { "type": "object", "properties": { "products": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogProduct" } } } } } } }, "404": { "description": "No collection with that handle." } } } }, "/products/{product_handle}.js": { "get": { "tags": ["Catalog"], "operationId": "getProduct", "summary": "Get one product with its variants, prices and stock state", "parameters": [ { "name": "product_handle", "in": "path", "required": true, "schema": { "type": "string" }, "example": "mvp" } ], "responses": { "200": { "description": "The product. Served as text/javascript; the body is JSON.", "content": { "text/javascript": { "schema": { "$ref": "#/components/schemas/Product" } } } }, "404": { "description": "No published product with that handle." } } } }, "/search/suggest.json": { "get": { "tags": ["Search"], "operationId": "searchProducts", "summary": "Search products by text", "parameters": [ { "name": "q", "in": "query", "required": true, "schema": { "type": "string" }, "example": "wide" }, { "name": "resources[type]", "in": "query", "schema": { "type": "string", "default": "product" }, "description": "Comma separated: product, collection, page, article, query." }, { "name": "resources[limit]", "in": "query", "schema": { "type": "integer", "minimum": 1, "maximum": 10, "default": 10 } } ], "responses": { "200": { "description": "Matching results.", "content": { "application/json": { "schema": { "type": "object", "properties": { "resources": { "type": "object", "properties": { "results": { "type": "object", "properties": { "products": { "type": "array", "items": { "$ref": "#/components/schemas/SearchProduct" } } } } } } } } } } } } } }, "/cart.js": { "get": { "tags": ["Cart"], "operationId": "getCart", "summary": "Get the current cart, with automatic discounts applied", "responses": { "200": { "description": "The cart. Served as text/javascript; the body is JSON.", "content": { "text/javascript": { "schema": { "$ref": "#/components/schemas/Cart" } } } } } } }, "/cart/add.js": { "post": { "tags": ["Cart"], "operationId": "addToCart", "summary": "Add variants to the cart", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": ["items"], "properties": { "items": { "type": "array", "items": { "type": "object", "required": ["id", "quantity"], "properties": { "id": { "type": "integer", "description": "Variant id from getProduct." }, "quantity": { "type": "integer", "minimum": 1 }, "properties": { "type": "object", "additionalProperties": { "type": "string" } } } } } } } } } }, "responses": { "200": { "description": "The added line items." }, "422": { "description": "Not added, for example the variant is sold out." } } } }, "/cart/change.js": { "post": { "tags": ["Cart"], "operationId": "changeCartLine", "summary": "Set the quantity of one cart line (0 removes it)", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": ["quantity"], "properties": { "id": { "type": "string", "description": "Line item key from getCart." }, "line": { "type": "integer", "minimum": 1, "description": "1-based line number, instead of id." }, "quantity": { "type": "integer", "minimum": 0 } } } } } }, "responses": { "200": { "description": "The updated cart.", "content": { "text/javascript": { "schema": { "$ref": "#/components/schemas/Cart" } } } } } } } }, "components": { "schemas": { "Money": { "type": "integer", "description": "Amount in the smallest unit of the cart or presentment currency (cents)." }, "CatalogProduct": { "type": "object", "properties": { "id": { "type": "integer" }, "title": { "type": "string" }, "handle": { "type": "string" }, "product_type": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "variants": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "title": { "type": "string" }, "price": { "type": "string", "description": "Decimal string in the store's base currency, before automatic discounts." }, "compare_at_price": { "type": ["string", "null"] }, "available": { "type": "boolean" } } } }, "images": { "type": "array", "items": { "type": "object", "properties": { "src": { "type": "string", "format": "uri" } } } } } }, "Product": { "type": "object", "properties": { "id": { "type": "integer" }, "title": { "type": "string" }, "handle": { "type": "string" }, "description": { "type": "string", "description": "HTML." }, "type": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "available": { "type": "boolean" }, "price": { "$ref": "#/components/schemas/Money" }, "price_min": { "$ref": "#/components/schemas/Money" }, "price_max": { "$ref": "#/components/schemas/Money" }, "compare_at_price": { "oneOf": [ { "$ref": "#/components/schemas/Money" }, { "type": "null" } ] }, "options": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "values": { "type": "array", "items": { "type": "string" } } } } }, "variants": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "title": { "type": "string" }, "options": { "type": "array", "items": { "type": "string" } }, "price": { "$ref": "#/components/schemas/Money" }, "compare_at_price": { "oneOf": [ { "$ref": "#/components/schemas/Money" }, { "type": "null" } ] }, "available": { "type": "boolean" }, "sku": { "type": ["string", "null"] } } } }, "url": { "type": "string" }, "featured_image": { "type": ["string", "null"] } } }, "SearchProduct": { "type": "object", "properties": { "id": { "type": "integer" }, "title": { "type": "string" }, "handle": { "type": "string" }, "url": { "type": "string" }, "price": { "type": "string" }, "available": { "type": "boolean" }, "image": { "type": ["string", "null"] } } }, "Cart": { "type": "object", "properties": { "item_count": { "type": "integer" }, "currency": { "type": "string", "example": "USD" }, "original_total_price": { "$ref": "#/components/schemas/Money" }, "total_discount": { "$ref": "#/components/schemas/Money" }, "total_price": { "$ref": "#/components/schemas/Money" }, "items": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "variant_id": { "type": "integer" }, "product_title": { "type": "string" }, "variant_title": { "type": ["string", "null"] }, "quantity": { "type": "integer" }, "original_line_price": { "$ref": "#/components/schemas/Money" }, "final_line_price": { "$ref": "#/components/schemas/Money" } } } } } } } } }