Create a quote
To provide insurance coverage to contractors on your platform, you
first create a Quote object. If you use your test API keys,
everything will occur as if in production but the policy that's
generated will be a test policy.
Body
-
The ID of the contractor seeking a quote for insurance coverage.
-
An array of coverage types that can include one or more of the following insurance coverage values:
general,professional,workers-comp,media, andcyber. Note thatmediaandcybercoverage requiresgeneralcoverage, except for Hawaii (HI) residents where general liability is not available.Values are
general,professional,workers-comp,media, orcyber. -
The date when the insurance coverage is set to take effect. Measured in seconds since the Unix epoch. This date must be set in the future. The default effective_date is the next day.
-
The date when the insurance coverage is set to expire. Measured in seconds since the Unix epoch. This date must be after the effective date. If the end_date is on the same day as the effective_date, it will automatically be adjusted to the start of the next day. The default end_date is 30 days after the effective date.
-
The ID of the job assignment that the contractor will be working on.
curl \
--request POST 'https://api.1099policy.com/api/v1/quotes' \
--header "Content-Type: application/json" \
--data '{"$ref":"#/components/examples/quote"}'
{
"$ref": "#/components/examples/quote"
}
{
"contractor": "cn_Ehb3bYa",
"coverage_type": [
"general",
"workers-comp"
],
"created": 1646818364,
"effective_date": 1646818364,
"eligible": true,
"end_date": 1678334737,
"gl_net_rate": 20,
"id": "string",
"job": "jb_jsb9KEcTpc",
"net_rate": 65,
"quote_json": {
"gl": {
"net_rate": 20,
"stamping_fee": null,
"risk_purchasing_group_fee": null
},
"wc": {
"net_rate": 45
}
},
"wc_net_rate": 45
}