{"openapi":"3.1.0","info":{"title":"Brindle test site API","version":"0.1.0","description":"Test product only. This is not insurance and nothing can be bought.\n\nReturns the same test annual price as the quote form, with a quote reference, a handover link and the product facts the customer should be shown."},"servers":[{"url":"https://brindlecover.co.uk"}],"paths":{"/api/product":{"get":{"operationId":"get_product_facts","summary":"Get product facts","description":"Returns the facts for the Brindle test home contents product: single-item limit, excess, bike cover away from home, and what is not included. Test product only.","x-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"responses":{"200":{"description":"Product facts","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"type":"string"},"single_item_limit":{"type":"string"},"excess":{"type":"string"},"bikes_away_from_home":{"type":"string"},"must_display":{"type":"string"},"notice":{"type":"string"}},"required":["product","single_item_limit","excess","bikes_away_from_home","must_display","notice"]}}}}}}},"/api/quote":{"post":{"operationId":"get_test_quote","summary":"Get a test quote","description":"Returns a test annual price for the Brindle test home contents product, with a quote reference and the product facts. Test product only: this is not insurance and nothing can be bought.\n\nReturns the same test annual price as the quote form, with a quote reference, a handover link and the product facts the customer should be shown.","x-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode of the home, for example AB1 2CD"},"contents_cover":{"type":"integer","minimum":1000,"maximum":250000,"description":"Contents cover amount in whole pounds"},"bedrooms":{"type":"integer","minimum":0,"maximum":10,"description":"Number of bedrooms"},"claims_last_5_years":{"type":"integer","minimum":0,"maximum":10,"description":"Number of claims in the last 5 years"},"bike_addon":{"type":"boolean","description":"Include the bike add-on"},"start_date":{"type":"string","format":"date","description":"Cover start date, YYYY-MM-DD"}},"required":["postcode","contents_cover","bedrooms","claims_last_5_years","bike_addon","start_date"]}}}},"responses":{"200":{"description":"A test quote","content":{"application/json":{"schema":{"type":"object","properties":{"ref":{"type":"string","description":"Quote reference"},"annual_price":{"type":"string","description":"Annual price in pounds with two decimals, for example 262.50"},"annual_price_display":{"type":"string","description":"Annual price as displayed, for example £262.50"},"currency":{"type":"string","const":"GBP"},"breakdown":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"amount":{"type":"string"}},"required":["label","amount"]}},"inputs":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode of the home, for example AB1 2CD"},"contents_cover":{"type":"integer","minimum":1000,"maximum":250000,"description":"Contents cover amount in whole pounds"},"bedrooms":{"type":"integer","minimum":0,"maximum":10,"description":"Number of bedrooms"},"claims_last_5_years":{"type":"integer","minimum":0,"maximum":10,"description":"Number of claims in the last 5 years"},"bike_addon":{"type":"boolean","description":"Include the bike add-on"},"start_date":{"type":"string","format":"date","description":"Cover start date, YYYY-MM-DD"}}},"facts":{"type":"object","properties":{"product":{"type":"string"},"single_item_limit":{"type":"string"},"excess":{"type":"string"},"bikes_away_from_home":{"type":"string"},"must_display":{"type":"string"},"notice":{"type":"string"}},"required":["product","single_item_limit","excess","bikes_away_from_home","must_display","notice"]},"must_display":{"type":"string"},"handover_url":{"type":"string","format":"uri"},"notice":{"type":"string"}},"required":["ref","annual_price","annual_price_display","currency","breakdown","inputs","facts","must_display","handover_url","notice"]}}}},"400":{"description":"The request body or inputs are not valid","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"error":{"type":"string","const":"validation_failed"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}},"required":["field","message"]}}},"required":["error","errors"]},{"type":"object","properties":{"error":{"type":"string","const":"invalid_json"},"message":{"type":"string"}},"required":["error","message"]}]}}}}}}}}}