{"openapi":"3.1.0","info":{"title":"Pod.AI store agent API","version":"1.0.0","description":"Public, read-only shopping API for AI agents. The shopper completes payment on the store's own checkout. Pod.AI never takes payment. Prices are the current catalogue prices; shipping, taxes and discounts are calculated at checkout."},"servers":[{"url":"https://podai.swisspro.site/agent/v1"}],"paths":{"/stores/{store}":{"get":{"operationId":"getStore","summary":"Store manifest","parameters":[{"name":"store","in":"path","required":true,"schema":{"type":"string"},"description":"Store key: WooCommerce site id (ws_…) or Shopify shop domain (<shop>.myshopify.com)"}],"responses":{"200":{"description":"Manifest"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stores/{store}/products":{"get":{"operationId":"searchProducts","summary":"Search in-stock products","parameters":[{"name":"store","in":"path","required":true,"schema":{"type":"string"},"description":"Store key: WooCommerce site id (ws_…) or Shopify shop domain (<shop>.myshopify.com)"},{"name":"query","in":"query","schema":{"type":"string"}},{"name":"min_price","in":"query","schema":{"type":"number"}},{"name":"max_price","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20}}],"responses":{"200":{"description":"Products","content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"count":{"type":"integer"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stores/{store}/products/{product_id}":{"get":{"operationId":"getProduct","summary":"One in-stock product","parameters":[{"name":"store","in":"path","required":true,"schema":{"type":"string"},"description":"Store key: WooCommerce site id (ws_…) or Shopify shop domain (<shop>.myshopify.com)"},{"name":"product_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Product","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stores/{store}/checkout-link":{"post":{"operationId":"createCheckoutLink","summary":"Prefilled cart / checkout link (shopper pays on the store)","parameters":[{"name":"store","in":"path","required":true,"schema":{"type":"string"},"description":"Store key: WooCommerce site id (ws_…) or Shopify shop domain (<shop>.myshopify.com)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","properties":{"product_id":{"type":"string"},"variant_id":{"type":"string","description":"Required when the product has several variants"},"quantity":{"type":"integer","minimum":1,"maximum":99,"default":1}},"required":["product_id"],"additionalProperties":false}},"coupon":{"type":"string","description":"Optional discount code the shopper has (validated by the store at checkout)"}},"required":["items"],"additionalProperties":false}}}},"responses":{"200":{"description":"Checkout link","content":{"application/json":{"schema":{"type":"object","properties":{"checkout_url":{"type":"string","format":"uri"},"subtotal":{"type":"number"},"currency":{"type":"string"},"items":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stores/{store}/mcp":{"post":{"operationId":"mcp","summary":"Model Context Protocol endpoint (Streamable HTTP, JSON-RPC 2.0)","parameters":[{"name":"store","in":"path","required":true,"schema":{"type":"string"},"description":"Store key: WooCommerce site id (ws_…) or Shopify shop domain (<shop>.myshopify.com)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"JSON-RPC response"},"202":{"description":"Notification accepted"}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"Product":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"compare_at_price":{"type":"number"},"currency":{"type":"string"},"url":{"type":"string","format":"uri"},"image":{"type":["string","null"]},"in_stock":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"price":{"type":"number"},"in_stock":{"type":"boolean"}}}},"purchase":{"type":"string"}}}}}}