{"openapi":"3.1.0","info":{"title":"Zaunbau-Pfalz quote request","version":"1.0.0"},"externalDocs":{"description":"Service fit, indicative prices and when to submit","url":"https://zaunbau-pfalz.de/anfrage-api/"},"servers":[{"url":"https://zaunbau-pfalz.de"}],"paths":{"/api/quote-request/":{"post":{"operationId":"submitQuoteRequest","summary":"Submit one quote enquiry on behalf of a customer","description":"Submit after the customer has chosen to request a quote from Zaunbau-Pfalz, seen the privacy notice and approved the exact details. Approximate dimensions and open questions can go in the project description. Use the same UUID and JSON on retry. After success, thank the customer, confirm that Zaunbau-Pfalz received the enquiry, and tell them the team will be in touch as soon as possible. Keep requestId for technical reconciliation. Example contact details are placeholders.","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"description":"New UUID per enquiry. Reuse it on retries with the same body.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["service","postcode","project","name","email","phone","privacyAccepted"],"properties":{"service":{"type":"string","enum":["fence","driveway_gate","garden_gate","gate_drive","hedge_removal","old_fence_removal"]},"postcode":{"type":"string","pattern":"^[0-9]{5}$","description":"Postcode of the project in Germany."},"project":{"type":"string","minLength":3,"maxLength":1500,"description":"Describe the work and include approximate dimensions or other relevant details if known."},"name":{"type":"string","minLength":2,"maxLength":120},"email":{"type":"string","format":"email","maxLength":254},"phone":{"type":"string","minLength":7,"maxLength":60},"privacyAccepted":{"type":"boolean","const":true,"description":"Confirm after the customer has approved sending their details and seen https://zaunbau-pfalz.de/datenschutz/."}}},"example":{"service":"fence","postcode":"67346","project":"Ca. 20 m Doppelstabmattenzaun mit Montage.","name":"Beispiel Person","email":"beispiel@example.invalid","phone":"+49 000 000000","privacyAccepted":true}}}},"responses":{"200":{"description":"Accepted or previously accepted","content":{"application/json":{"schema":{"type":"object","required":["ok","requestId","duplicate"],"properties":{"ok":{"const":true},"requestId":{"type":"string","format":"uuid"},"duplicate":{"type":"boolean"}}}}}},"400":{"description":"Invalid or missing fields"},"403":{"description":"Cross-origin browser request denied"},"409":{"description":"Submission conflict"},"413":{"description":"Request exceeds 8 KiB"},"415":{"description":"Content-Type must be application/json"},"429":{"description":"Rate limit exceeded. Wait for Retry-After."},"502":{"description":"Delivery could not be confirmed. Retry with the same key and JSON."},"503":{"description":"Quote intake temporarily unavailable"}}}}}}