{
  "openapi": "3.1.0",
  "info": {
    "title": "AlphonsoMango.in Public Storefront API",
    "version": "1.0.0",
    "description": "Public, unauthenticated endpoints for browsing the GI-certified Alphonso mango and gourmet foods catalog. Payments are completed by human customers via Shopify-hosted checkout (UPI/cards via Razorpay); no machine-payment endpoints are offered.",
    "contact": {
      "email": "support@alphonsomango.in",
      "url": "https://alphonsomango.in/pages/about-us"
    }
  },
  "servers": [
    {
      "url": "https://alphonsomango.in"
    }
  ],
  "paths": {
    "/products.json": {
      "get": {
        "summary": "Full product catalog (Shopify JSON)",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "maximum": 250
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Products with variants, prices (INR) and availability"
          }
        }
      }
    },
    "/collections.json": {
      "get": {
        "summary": "Collections list (Shopify JSON)",
        "responses": {
          "200": {
            "description": "Collections"
          }
        }
      }
    },
    "/search/suggest.json": {
      "get": {
        "summary": "Product search suggestions",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching products, collections and pages"
          }
        }
      }
    },
    "/cart/{items}": {
      "get": {
        "summary": "Prefilled cart permalink",
        "parameters": [
          {
            "name": "items",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "variant_id:quantity pairs, comma-separated (variant IDs from /products.json)"
          }
        ],
        "responses": {
          "302": {
            "description": "Redirects the human customer to a prefilled cart"
          }
        },
        "x-payment-info": {
          "currency": "INR",
          "methods": [
            "upi",
            "card",
            "netbanking"
          ],
          "flow": "human_hosted_checkout",
          "processor": "razorpay-via-shopify-checkout",
          "automated": false,
          "description": "Payment is completed by the human customer on Shopify-hosted checkout after the cart handoff; no machine-executed payments."
        }
      }
    }
  },
  "x-payment-info": {
    "currency": "INR",
    "automated": false,
    "flow": "human_hosted_checkout"
  }
}