{
  "openapi": "3.1.0",
  "info": {
    "title": "Homestead Harmony storefront API",
    "version": "2026-11-22",
    "summary": "Read-only catalog, search and cart endpoints for the Homestead Harmony shop.",
    "description": "Public JSON endpoints served by the Homestead Harmony Shopify storefront: small-batch beef tallow skincare, soap and bath bombs made in Massachusetts. Use them to list products and collections, search the catalog, read prices and availability, and build a cart.\n\nNo API key, account or sign-up is needed for any operation here. There is no separate sandbox and none is needed: reading the catalog and building a cart never charges anyone, because checkout always goes back to the shopper. Prices are in USD and orders ship within the United States.\n\nCheckout always needs the shopper's own approval. To hand a cart to the shopper, send them a cart permalink (see `openCartPermalink`), or use the store's Universal Commerce Protocol MCP endpoint at https://homesteadharmony.co/api/ucp/mcp (discovery: https://homesteadharmony.co/.well-known/ucp). Agent instructions: https://homesteadharmony.co/agents.md.\n\nAuthentication: none for the operations here. Shopper sign-in for UCP checkout uses OAuth 2.0 with named scopes; see the `shopifyCustomerAccount` security scheme.\n\nVersioning: `info.version` is the date this description last changed (YYYY-MM-DD). Changes are additive; existing operations, parameters and fields are not removed or renamed under the same version. A breaking change gets a new date and is listed under \"Versioning and changes\" in the developer guide at https://homesteadharmony.co/pages/developers#versioning at least 30 days before the old shape stops working. The paths themselves are Shopify's storefront endpoints, which are unversioned and kept backward compatible by Shopify.\n\nThese are cosmetics. Nothing returned by this API is a medical, healing or sun-protection claim.",
    "contact": {
      "name": "Homestead Harmony",
      "url": "https://homesteadharmony.co/pages/contact"
    },
    "termsOfService": "https://homesteadharmony.co/policies/terms-of-service",
    "x-api-versioning": {
      "scheme": "date",
      "current": "2026-11-22",
      "policy": "https://homesteadharmony.co/pages/developers#versioning",
      "deprecationNotice": "30 days"
    }
  },
  "externalDocs": {
    "description": "Developer and agent guide",
    "url": "https://homesteadharmony.co/pages/developers"
  },
  "servers": [
    {
      "url": "https://homesteadharmony.co",
      "description": "Live storefront"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Catalog",
      "description": "Products and collections."
    },
    {
      "name": "Search",
      "description": "Search the catalog by keyword."
    },
    {
      "name": "Cart",
      "description": "Session cart. The cart lives in the shopper's browser session (cookie), so build it in the shopper's browser or hand over a permalink."
    }
  ],
  "paths": {
    "/products.json": {
      "get": {
        "operationId": "listProducts",
        "tags": [
          "Catalog"
        ],
        "summary": "List every product for sale",
        "description": "Returns products with their variants, prices, availability and images. Prices in this endpoint are decimal strings in USD. Page through with `page` until an empty `products` array comes back.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Page"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of products.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductList"
                }
              }
            }
          }
        }
      }
    },
    "/products/{handle}.js": {
      "get": {
        "operationId": "getProduct",
        "tags": [
          "Catalog"
        ],
        "summary": "Get one product by handle",
        "description": "Returns one product with its description, options, variants and media. Prices in this endpoint are integers in cents (600 means 6.00 USD). Find handles with `listProducts` or `searchProducts`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProductHandle"
          }
        ],
        "responses": {
          "200": {
            "description": "The product.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AjaxProduct"
                }
              }
            }
          },
          "404": {
            "description": "No product has this handle."
          }
        }
      }
    },
    "/collections.json": {
      "get": {
        "operationId": "listCollections",
        "tags": [
          "Catalog"
        ],
        "summary": "List collections",
        "description": "Returns the store's collections, such as skincare, soap, bath bombs, and lip and hair care.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Page"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of collections.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionList"
                }
              }
            }
          }
        }
      }
    },
    "/collections/{handle}/products.json": {
      "get": {
        "operationId": "listCollectionProducts",
        "tags": [
          "Catalog"
        ],
        "summary": "List the products in one collection",
        "description": "Returns the products in a collection, in the same shape as `listProducts`. Use the handle `all` for every product.",
        "parameters": [
          {
            "$ref": "#/components/parameters/CollectionHandle"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Page"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of products in the collection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductList"
                }
              }
            }
          },
          "404": {
            "description": "No collection has this handle."
          }
        }
      }
    },
    "/search/suggest.json": {
      "get": {
        "operationId": "searchProducts",
        "tags": [
          "Search"
        ],
        "summary": "Search products by keyword",
        "description": "Predictive search over product titles, descriptions, types and tags. Returns up to 10 matching products with price and availability.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Search words, for example `tallow lip balm` or `bath bomb`.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "resources[type]",
            "in": "query",
            "required": false,
            "description": "Which kinds of results to return. Use `product` for products only.",
            "schema": {
              "type": "string",
              "default": "product",
              "enum": [
                "product",
                "collection",
                "article",
                "page",
                "product,collection",
                "product,article,page"
              ]
            }
          },
          {
            "name": "resources[limit]",
            "in": "query",
            "required": false,
            "description": "Maximum results per type.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestions"
                }
              }
            }
          }
        }
      }
    },
    "/recommendations/products.json": {
      "get": {
        "operationId": "getProductRecommendations",
        "tags": [
          "Catalog"
        ],
        "summary": "Get products related to one product",
        "description": "Returns products that pair well with the given product, for example a soap that goes with a body butter.",
        "parameters": [
          {
            "name": "product_id",
            "in": "query",
            "required": true,
            "description": "Numeric product id, from `id` in `getProduct` or `listProducts`.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of products.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 4
            }
          },
          {
            "name": "intent",
            "in": "query",
            "required": false,
            "description": "`related` for similar products, `complementary` for products bought together.",
            "schema": {
              "type": "string",
              "enum": [
                "related",
                "complementary"
              ],
              "default": "related"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recommended products.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Recommendations"
                }
              }
            }
          },
          "404": {
            "description": "No product has this id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "A parameter is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/cart.js": {
      "get": {
        "operationId": "getCart",
        "tags": [
          "Cart"
        ],
        "summary": "Read the current cart",
        "description": "Returns the cart for the current browser session, with line items and totals in cents.",
        "responses": {
          "200": {
            "description": "The cart.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          }
        }
      }
    },
    "/cart/add.js": {
      "post": {
        "operationId": "addToCart",
        "tags": [
          "Cart"
        ],
        "summary": "Add variants to the cart",
        "description": "Adds one or more variants to the session cart. Use a variant `id` from `getProduct`. When a variant is sold out or the quantity is more than is in stock, the response is a 422 error that says why.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "quantity"
                      ],
                      "properties": {
                        "id": {
                          "type": "integer",
                          "format": "int64",
                          "description": "Variant id."
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "How many to add."
                        }
                      }
                    }
                  }
                }
              },
              "example": {
                "items": [
                  {
                    "id": 44000000000001,
                    "quantity": 1
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The line items that were added.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/LineItem"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The variant does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The variant is sold out or the quantity is not available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/cart/change.js": {
      "post": {
        "operationId": "changeCartLine",
        "tags": [
          "Cart"
        ],
        "summary": "Change the quantity of one cart line",
        "description": "Sets the quantity of one line in the session cart. A quantity of 0 removes the line.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "quantity"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The line item `key` from `getCart`."
                  },
                  "quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "New quantity. 0 removes the line."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated cart.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "description": "The line key is not in the cart.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The quantity is not available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/cart/clear.js": {
      "post": {
        "operationId": "clearCart",
        "tags": [
          "Cart"
        ],
        "summary": "Empty the cart",
        "description": "Removes every line from the session cart.",
        "responses": {
          "200": {
            "description": "The empty cart.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          }
        }
      }
    },
    "/cart/{lines}": {
      "get": {
        "operationId": "openCartPermalink",
        "tags": [
          "Cart"
        ],
        "summary": "Hand a ready cart to the shopper",
        "description": "A link that fills a new cart and opens checkout in the shopper's browser, for example https://homesteadharmony.co/cart/44000000000001:1,44000000000002:2. Give this link to the shopper; the shopper reviews and pays. An agent should never complete checkout without the shopper's approval.",
        "parameters": [
          {
            "name": "lines",
            "in": "path",
            "required": true,
            "description": "Comma-separated `variantId:quantity` pairs.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+:[0-9]+(,[0-9]+:[0-9]+)*$"
            },
            "example": "44000000000001:1,44000000000002:2"
          }
        ],
        "responses": {
          "302": {
            "description": "Redirects the shopper to checkout with the cart filled."
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "Limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Items per page.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 250,
          "default": 30
        }
      },
      "Page": {
        "name": "page",
        "in": "query",
        "required": false,
        "description": "Page number, starting at 1.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        }
      },
      "ProductHandle": {
        "name": "handle",
        "in": "path",
        "required": true,
        "description": "Product handle, the last part of the product URL, for example `tallow-lip-balm`.",
        "schema": {
          "type": "string",
          "pattern": "^[a-z0-9-]+$"
        }
      },
      "CollectionHandle": {
        "name": "handle",
        "in": "path",
        "required": true,
        "description": "Collection handle, for example `all`.",
        "schema": {
          "type": "string",
          "pattern": "^[a-z0-9-]+$"
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Error body returned by the storefront JSON endpoints.",
        "properties": {
          "status": {
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "description": "HTTP status code, for example 422."
          },
          "message": {
            "type": "string",
            "description": "Short error name, for example `Cart Error`."
          },
          "description": {
            "type": "string",
            "description": "What went wrong and how to fix it, for example that only 2 are in stock."
          }
        },
        "required": [
          "status",
          "message"
        ]
      },
      "Image": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "src": {
            "type": "string",
            "format": "uri"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "alt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Variant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Variant id, used to add to the cart."
          },
          "title": {
            "type": "string"
          },
          "sku": {
            "type": [
              "string",
              "null"
            ]
          },
          "available": {
            "type": "boolean",
            "description": "True when it can be bought now."
          },
          "price": {
            "type": "string",
            "description": "Decimal price in USD, for example `6.00`."
          },
          "compare_at_price": {
            "type": [
              "string",
              "null"
            ]
          },
          "grams": {
            "type": "integer"
          },
          "requires_shipping": {
            "type": "boolean"
          },
          "option1": {
            "type": [
              "string",
              "null"
            ]
          },
          "option2": {
            "type": [
              "string",
              "null"
            ]
          },
          "option3": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "available",
          "price"
        ]
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "body_html": {
            "type": "string",
            "description": "Product description as HTML: what it is, what it is made with, and its size."
          },
          "vendor": {
            "type": "string"
          },
          "product_type": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "position": {
                  "type": "integer"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Variant"
            }
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          }
        },
        "required": [
          "id",
          "title",
          "handle",
          "variants"
        ]
      },
      "ProductList": {
        "type": "object",
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            }
          }
        },
        "required": [
          "products"
        ]
      },
      "AjaxVariant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "sku": {
            "type": [
              "string",
              "null"
            ]
          },
          "available": {
            "type": "boolean"
          },
          "price": {
            "type": "integer",
            "description": "Price in cents."
          },
          "compare_at_price": {
            "type": [
              "integer",
              "null"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "title",
          "available",
          "price"
        ]
      },
      "AjaxProduct": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "Product description as HTML."
          },
          "type": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "description": "Path of the product page."
          },
          "available": {
            "type": "boolean"
          },
          "price": {
            "type": "integer",
            "description": "Lowest variant price in cents."
          },
          "price_min": {
            "type": "integer"
          },
          "price_max": {
            "type": "integer"
          },
          "price_varies": {
            "type": "boolean"
          },
          "featured_image": {
            "type": [
              "string",
              "null"
            ]
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "position": {
                  "type": "integer"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AjaxVariant"
            }
          }
        },
        "required": [
          "id",
          "title",
          "handle",
          "available",
          "price",
          "variants"
        ]
      },
      "Collection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "products_count": {
            "type": "integer"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "image": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Image"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "title",
          "handle"
        ]
      },
      "CollectionList": {
        "type": "object",
        "properties": {
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Collection"
            }
          }
        },
        "required": [
          "collections"
        ]
      },
      "SearchProduct": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "price": {
            "type": "string",
            "description": "Decimal price in USD."
          },
          "available": {
            "type": "boolean"
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "title",
          "handle",
          "url"
        ]
      },
      "SearchSuggestions": {
        "type": "object",
        "properties": {
          "resources": {
            "type": "object",
            "properties": {
              "results": {
                "type": "object",
                "properties": {
                  "products": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/SearchProduct"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Recommendations": {
        "type": "object",
        "properties": {
          "intent": {
            "type": "string"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AjaxProduct"
            }
          }
        },
        "required": [
          "products"
        ]
      },
      "LineItem": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Line key, used by `changeCartLine`."
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Variant id."
          },
          "product_id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string"
          },
          "quantity": {
            "type": "integer"
          },
          "price": {
            "type": "integer",
            "description": "Unit price in cents."
          },
          "line_price": {
            "type": "integer",
            "description": "Line total in cents."
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "id",
          "quantity",
          "price"
        ]
      },
      "Cart": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "item_count": {
            "type": "integer"
          },
          "total_price": {
            "type": "integer",
            "description": "Total in cents."
          },
          "currency": {
            "type": "string",
            "example": "USD"
          },
          "requires_shipping": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            }
          }
        },
        "required": [
          "item_count",
          "total_price",
          "items"
        ]
      }
    },
    "securitySchemes": {
      "shopifyCustomerAccount": {
        "type": "oauth2",
        "description": "Shopify customer-account sign-in for this store (issuer https://shopify.com/authentication/100149789043, discovery at https://homesteadharmony.co/.well-known/openid-configuration; protected-resource metadata at https://homesteadharmony.co/.well-known/oauth-protected-resource). PKCE (S256) is required. Every operation in this file is public and needs no token. These scopes apply to the store's Universal Commerce Protocol MCP endpoint (https://homesteadharmony.co/api/ucp/mcp) and the customer account API, when a shopper signs in. Request only the scopes you need.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://shopify.com/authentication/100149789043/oauth/authorize",
            "tokenUrl": "https://shopify.com/authentication/100149789043/oauth/token",
            "refreshUrl": "https://shopify.com/authentication/100149789043/oauth/token",
            "scopes": {
              "openid": "Sign the shopper in (OpenID Connect).",
              "email": "Read the signed-in shopper's email address.",
              "dev.ucp.shopping.catalog.search:read": "Search the catalog through the UCP MCP endpoint as the signed-in shopper. Read-only.",
              "dev.ucp.shopping.checkout:manage": "Create and update a checkout for the signed-in shopper through UCP. The shopper still approves payment.",
              "customer-account-mcp-api:full": "Use the customer account MCP tools (orders, addresses) for the signed-in shopper.",
              "customer-account-api:full": "Full access to the signed-in shopper's customer account (orders, addresses, profile). Request only when needed."
            }
          }
        }
      }
    }
  }
}
