Freelance Quote API Simulation
- Elisha Antunes
- Jun 11
- 2 min read
Updated: Jun 24
Insurance APIs often require precision across multiple linked fields — projects, coverage options, certificate holders, and business rules must all align before a quote is generated. This project simulates that complexity through a fully structured API mock for freelance insurance quotes.
While there’s no live backend, the details of the API have been carefully built to reflect real-world quoting logic — and it’s fully testable using a public Postman Workspace. The goal was to replicate a realistic insurance submission flow and demonstrate how automation scripts can validate business rules, enforce structure, and simulate outcomes.
What This Project Covers
This simulated API accepts a structured JSON payload for freelance insurance quotes. It includes:
Client information
Up to three freelance projects (each with value, dates, and an eventId)
Mapped certificate holders tied to those eventIds
Dynamically selected coverages (e.g., liability, cyber, enhancements)
Application questions that trigger inclusion/exclusion rules
Despite being a simulation, the system is modular, repeatable, and testable — making it a valuable way to showcase workflow automation and validation logic.
Project Design & Intent
The core idea behind this initiative was to:
Replicate complex real-world business rules seen in quoting APIs
Provide a safe, fully simulated environment where prospective employers can see how I think about request structure, validation, and data integrity
Highlight the value of Postman as a test automation tool, not just a manual API client
This project mirrors how insurance carriers might process multi-project freelance submissions — enforcing date constraints, validating certificate holder alignment, and auto-including coverages based on responses.
Pre-Request Scripts:
Generate realistic start/end dates
Dynamically create UUIDs for each project’s eventId
Ensure each certificate holder maps correctly to a project
Randomize values across industries, coverage types, and application questions
Post-Request Scripts:
Validate that the eventId links between projects and certificate holders match
Confirm that policy start and end dates are derived from project ranges
Enforce business rules (e.g., rented equipment is auto-added if equipmentRental = "Yes")
Generate detailed error feedback when rules are broken
Sample Test Cases Included
Valid multi-project quote with correct mappings
Failing requests due to invalid email, mismatched eventId, or date issues
Dynamic test generation using seeded environments
Try It Yourself
Public Postman Workspace ➡️ Click here to open in Postman
This workspace includes:
The full API collection
Environment setup
Dynamic payload generation
All scripts preloaded for testing
What It Shows
Even without a live backend, this API simulation demonstrates:
Real-world insurance flows
Use of Postman for automated request generation and validation
Robust pre/post scripts to mirror production API behavior
Combination of domain logic with testable payloads to create meaningful validation checkpoints



