{"openapi":"3.1.0","info":{"title":"Alice Public Product and Benefit Search API","version":"2.0.0","description":"Public read-only JSON search for AI/search tools. No authentication, cookies, or store-location verification. results[].product_id is the exact D1 productCode string, preserving leading zeroes; it is not a barcode. Barcode, stock, cost, and supplier data are not returned. catalog.updatedAt is public activation time; sourceSnapshotAt is the source price-observation instant; logicalDate is the calendar date in timeZone (Asia/Seoul); currency is KRW. Prices come from the published catalog, not live inventory or guaranteed checkout prices. Event terms can change; follow linked official sources."},"servers":[{"url":"https://www.giftshop-alice.com/"}],"paths":{"/api/public/catalog/search":{"get":{"operationId":"searchAliceProducts","summary":"Search product names and return published prices, product links, pagination, and official benefit highlights","security":[],"parameters":[{"name":"q","in":"query","required":false,"description":"Product name or distinctive part (2–80 characters). Omit q to receive usage instructions.","schema":{"type":"string","minLength":2,"maxLength":80},"example":"제주 키링"},{"name":"limit","in":"query","required":false,"description":"Maximum number of product matches per page.","schema":{"type":"integer","minimum":1,"maximum":10,"default":5}},{"name":"page","in":"query","required":false,"description":"One-based page number; maximum 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"utm_source","in":"query","required":false,"description":"Optional attribution parameter. Accepted and ignored; it does not affect matching or results.","schema":{"type":"string","maxLength":200}},{"name":"utm_medium","in":"query","required":false,"description":"Optional attribution parameter. Accepted and ignored; it does not affect matching or results.","schema":{"type":"string","maxLength":200}},{"name":"utm_campaign","in":"query","required":false,"description":"Optional attribution parameter. Accepted and ignored; it does not affect matching or results.","schema":{"type":"string","maxLength":200}},{"name":"utm_id","in":"query","required":false,"description":"Optional attribution parameter. Accepted and ignored; it does not affect matching or results.","schema":{"type":"string","maxLength":200}},{"name":"utm_term","in":"query","required":false,"description":"Optional attribution parameter. Accepted and ignored; it does not affect matching or results.","schema":{"type":"string","maxLength":200}},{"name":"utm_content","in":"query","required":false,"description":"Optional attribution parameter. Accepted and ignored; it does not affect matching or results.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Usage instructions when q is omitted, or product results and event benefits.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Usage"},{"$ref":"#/components/schemas/SearchResult"}]},"examples":{"search":{"value":{"schemaVersion":"2.0","query":"미니키링","resultCount":1,"results":[{"product_id":"000123","name":"미니키링 상품명","price":3000,"product_url":"https://www.giftshop-alice.com/products/000123"}],"pagination":{"page":1,"pageSize":10,"hasNext":false,"nextPage":null},"catalog":{"productCount":6800,"updatedAt":"2026-11-10T00:00:00.000Z","sourceSnapshotAt":null,"logicalDate":null,"timeZone":null,"currency":"KRW"},"benefitHighlights":[],"notices":[]}}}}}},"400":{"description":"Invalid query, limit, page, or unsupported parameter.","content":{"application/json":{"schema":{"type":"object","required":["schemaVersion","error","message"],"properties":{"schemaVersion":{"const":"2.0"},"error":{"type":"string","enum":["invalid_query","catalog_unavailable"]},"message":{"type":"string"}}}}}},"503":{"description":"Catalog disabled, inactive, or unavailable. This is not an empty search result.","content":{"application/json":{"schema":{"type":"object","required":["schemaVersion","error","message"],"properties":{"schemaVersion":{"const":"2.0"},"error":{"type":"string","enum":["invalid_query","catalog_unavailable"]},"message":{"type":"string"}}}}}}}}},"/products/{productCode}":{"get":{"operationId":"getAliceProductDetail","summary":"Open a canonical read-only page for a currently active public catalog product","security":[],"parameters":[{"name":"productCode","in":"path","required":true,"description":"Public product ID, equal to the productCode returned by search.","schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"Public product name, catalog price, and freshness context."},"404":{"description":"The product is not in the active public catalog."}}}}},"components":{"schemas":{"Usage":{"type":"object","required":["schemaVersion","type","endpoint","authentication","locationVerification","readOnly","openApi"],"properties":{"schemaVersion":{"const":"2.0"},"type":{"const":"usage"},"endpoint":{"type":"string","format":"uri"},"authentication":{"const":"none"},"locationVerification":{"const":false},"readOnly":{"const":true},"openApi":{"type":"string","format":"uri"},"example":{"type":"string","format":"uri"},"benefitHighlights":{"type":"array","items":{"$ref":"#/components/schemas/Benefit"}}}},"ProductResult":{"type":"object","required":["product_id","name","price","product_url"],"properties":{"product_id":{"type":"string","description":"Exact D1 productCode string; preserves leading zeroes and is not a barcode."},"name":{"type":"string"},"price":{"type":"integer","minimum":0,"description":"KRW integer amount."},"image":{"type":"string","format":"uri","description":"Optional; omitted unless a verified public image is available."},"product_url":{"type":"string","format":"uri"}}},"LegacyProduct":{"type":"object","required":["name","price","matchType"],"properties":{"name":{"type":"string"},"price":{"type":"object","required":["amount","currency","display"],"properties":{"amount":{"type":"integer","minimum":0},"currency":{"const":"KRW"},"display":{"type":"string"}}},"matchType":{"type":"string","enum":["exact","prefix","contains"]}}},"Benefit":{"type":"object","required":["id","title","summary","benefits","conditions","sourceUrls"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"benefits":{"type":"array","items":{"type":"string"}},"conditions":{"type":"array","items":{"type":"string"}},"sourceUrls":{"type":"array","items":{"type":"string","format":"uri"}}}},"SearchResult":{"type":"object","required":["schemaVersion","query","resultCount","results","pagination","products","hasMore","catalog","benefitHighlights","notices"],"properties":{"schemaVersion":{"const":"2.0"},"query":{"type":"string"},"resultCount":{"type":"integer"},"results":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/ProductResult"}},"pagination":{"type":"object","required":["page","pageSize","hasNext","nextPage"],"properties":{"page":{"type":"integer"},"pageSize":{"type":"integer"},"hasNext":{"type":"boolean"},"nextPage":{"type":["integer","null"]}}},"products":{"type":"array","description":"Deprecated v1 compatibility alias; use results.","items":{"$ref":"#/components/schemas/LegacyProduct"}},"hasMore":{"type":"boolean","deprecated":true},"catalog":{"type":"object","required":["productCount","updatedAt","sourceSnapshotAt","logicalDate","timeZone","currency"],"properties":{"productCount":{"type":"integer"},"updatedAt":{"type":"string","format":"date-time"},"sourceSnapshotAt":{"type":["string","null"],"format":"date-time"},"logicalDate":{"type":["string","null"],"format":"date"},"timeZone":{"type":["string","null"]},"currency":{"const":"KRW"}}},"benefitHighlights":{"type":"array","items":{"$ref":"#/components/schemas/Benefit"}},"notices":{"type":"array","items":{"type":"string"}}}}}}}