{"openapi":"3.1.0","info":{"title":"Gurgaon Bakers Catalogue API","version":"2.0.0","description":"Read-only catalogue of Gurgaon Bakers (gurgaonbakers.com), online cake ordering in Gurgaon/Gurugram. Look up cakes, prices (INR, incl. GST), weights, egg/eggless options and delivery rules, and get a link for the customer to order on the website. No orders, payments or customer data. Cakes are eggless by default, egg on request. Max 10 results per call, no full listing. Every response carries status, request_id and data_as_of. Free-text search understands weight (\"1 kg\", \"half kg\", \"500 g\"), eggless/egg and budget (\"under 1500\").","contact":{"name":"Gurgaon Bakers","url":"https://gurgaonbakers.com"}},"servers":[{"url":"https://api.gurgaonbakers.com"}],"paths":{"/products":{"get":{"operationId":"searchCakes","summary":"Search cakes (max 10 results)","description":"Needs at least one of: search words, category, weight, eggless or max_price. Max 10 results, no pagination. status no_match comes with labelled alternatives.","parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":80},"description":"Free text, e.g. '1 kg eggless chocolate truffle birthday'; weight, egg/eggless and budget words are understood"},{"name":"category","in":"query","schema":{"type":"string","maxLength":80},"description":"Category slug from /categories, e.g. 'cakes-for-kids'"},{"name":"eggless","in":"query","schema":{"type":"boolean"},"description":"true = cakes available eggless; false = cakes available with egg"},{"name":"max_price","in":"query","schema":{"type":"integer","minimum":0},"description":"Maximum starting price in INR (incl. GST)"},{"name":"weight","in":"query","schema":{"type":"string"},"description":"e.g. '1 Kg', '500 g'; only cakes offering this weight are returned, with match.variant priced for it"}],"responses":{"200":{"description":"Up to 10 matching cakes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"429":{"description":"Rate limited (60/min, 2,000/day per IP; 15-minute block)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"400":{"description":"q or category missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{slug}":{"get":{"operationId":"getCake","summary":"One cake with all variants and order links","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cake details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CakeDetail"}}}},"429":{"description":"Rate limited (60/min, 2,000/day per IP; 15-minute block)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown slug","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/order-link":{"get":{"operationId":"getOrderLink","summary":"Order link with weight and egg option pre-selected","description":"Returns the cake page URL with the variant pre-selected. The customer adds flavour/message and pays on gurgaonbakers.com. Does not place an order.","parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string"}},{"name":"weight","in":"query","schema":{"type":"string"},"description":"e.g. '1 Kg', '0.5 Kg'"},{"name":"egg_option","in":"query","schema":{"type":"string","enum":["Eggless","Egg"],"default":"Eggless"}}],"responses":{"200":{"description":"Order link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderLink"}}}},"429":{"description":"Rate limited (60/min, 2,000/day per IP; 15-minute block)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"400":{"description":"Option not offered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown slug","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/categories":{"get":{"operationId":"listCategories","summary":"Category slugs, names and cake counts","responses":{"200":{"description":"Categories","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"count":{"type":"integer"}}}}}}}}},"429":{"description":"Rate limited (60/min, 2,000/day per IP; 15-minute block)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/delivery-info":{"get":{"operationId":"getDeliveryInfo","summary":"Cutoffs, hours, slots, fees, policies, delivery localities","parameters":[{"name":"locality","in":"query","schema":{"type":"string","maxLength":60},"description":"Optional, e.g. 'Sector 56': returns only that locality's delivery fee"}],"responses":{"200":{"description":"Delivery information","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"429":{"description":"Rate limited (60/min, 2,000/day per IP; 15-minute block)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health":{"get":{"operationId":"health","summary":"Service and sync status","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"503":{"description":"No catalogue loaded"}}}},"/check-delivery":{"get":{"operationId":"checkDelivery","summary":"Can a cake be delivered to a locality on a date/time?","description":"Uses the checkout's slots and rules: online orders up to 15 minutes before a slot starts; same-day online orders close 7:45 PM Mon–Fri and 8:45 PM Sat–Sun (whichever comes first); after that phone/WhatsApp until 9:45 PM; 11 PM–midnight is a special request. Times are IST. PIN lookup is not available yet.","parameters":[{"name":"locality","in":"query","schema":{"type":"string","maxLength":60},"description":"e.g. 'Sector 56', 'DLF Phase 2'"},{"name":"date","in":"query","schema":{"type":"string"},"description":"YYYY-MM-DD, 'today' (default) or 'tomorrow'"},{"name":"time","in":"query","schema":{"type":"string"},"description":"Optional, '15:30' or '3 pm'"},{"name":"pin","in":"query","schema":{"type":"string"},"description":"Not available yet; use locality"}],"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["available_online","phone_only","special_request","check_by_phone","not_a_standard_slot","not_available"]},"message":{"type":"string"},"date":{"type":"string"},"weekday":{"type":"string"},"same_day":{"type":"boolean"},"slots":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"order_online_by":{"type":"string"},"open_online":{"type":"boolean"}}}},"requested_slot":{"type":"object"},"locality":{"type":"object"},"contact":{"type":"object"},"slots_source":{"type":"string"}}}}}},"400":{"description":"Bad date/time or PIN lookup not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/business-info":{"get":{"operationId":"getBusinessInfo","summary":"Verified business identity, contact, ordering channels, hours, policies, coverage and what this API can/cannot do","responses":{"200":{"description":"Business info","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"ok, no_match, needs_input, not_found, option_not_available, unavailable, or a check_delivery status"},"message":{"type":["string","null"]},"request_id":{"type":"string"},"data_as_of":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":["string","null"]},"status":{"type":"string","description":"ok, no_match, needs_input, not_found, option_not_available, unavailable, or a check_delivery status"},"request_id":{"type":"string"},"data_as_of":{"type":["string","null"],"format":"date-time"}}},"CakeSummary":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"price_from":{"type":"integer"},"price_to":{"type":"integer"},"currency":{"type":"string","const":"INR"},"prices_include_gst":{"type":"boolean"},"weights":{"type":"array","items":{"type":"string"}},"eggless_available":{"type":"boolean"},"egg_available":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"thumbnail":{"type":"string","format":"uri"},"in_stock":{"type":"boolean"},"match":{"type":"object","properties":{"all_words":{"type":"boolean"},"variant":{"oneOf":[{"$ref":"#/components/schemas/Variant"},{"type":"null"}],"description":"Exact variant for the requested weight/egg option"}}}}},"SearchResult":{"type":"object","properties":{"query":{"type":"object"},"count":{"type":"integer"},"max_results":{"type":"integer"},"results":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/CakeSummary"}},"note":{"type":"string"},"status":{"type":"string","description":"ok, no_match, needs_input, not_found, option_not_available, unavailable, or a check_delivery status"},"message":{"type":["string","null"]},"request_id":{"type":"string"},"data_as_of":{"type":["string","null"],"format":"date-time"},"alternatives":{"type":"array","maxItems":5,"description":"Only with status no_match: cakes that ignore the weight/budget constraint and do NOT meet the request","items":{"$ref":"#/components/schemas/CakeSummary"}}}},"Variant":{"type":"object","properties":{"weight":{"type":["string","null"]},"egg_option":{"type":["string","null"]},"options":{"type":"object"},"price":{"type":"integer"},"in_stock":{"type":"boolean"},"order_url":{"type":"string","format":"uri"}}},"CakeDetail":{"allOf":[{"$ref":"#/components/schemas/CakeSummary"},{"type":"object","properties":{"image":{"type":"string","format":"uri"},"description":{"type":"string"},"categories":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}}}},"other_options":{"type":"object"},"variants":{"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"how_to_order":{"type":"string"}}}]},"OrderLink":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"weight":{"type":["string","null"]},"egg_option":{"type":["string","null"]},"price":{"type":"integer"},"currency":{"type":"string"},"prices_include_gst":{"type":"boolean"},"in_stock":{"type":"boolean"},"order_url":{"type":"string","format":"uri"},"note":{"type":"string"},"status":{"type":"string","description":"ok, no_match, needs_input, not_found, option_not_available, unavailable, or a check_delivery status"},"message":{"type":["string","null"]},"request_id":{"type":"string"},"data_as_of":{"type":["string","null"],"format":"date-time"}}}}}}