Body
-
The URL the contractor will be directed to if they are ineligible or decide to abandon the insurance application and return to your website.
-
The ID of the contractor (required for general opt-in sessions). For standard sessions, this is derived from the quote.
-
The work state for general opt-in sessions (e.g., "CA", "NY"). Required when
is_general_opt_inistrue. -
Set to
trueto create a general opt-in session (not tied to a specific job/quote). Whentrue,contractorandwork_stateare required, andquoteis not required. -
The ID of an existing quote to be associated with the insurance application session.
-
The URL to which 1099Policy should direct independent contractors when a contractor successfully procures insurance coverage.
POST
/api/v1/apply/sessions
curl \
--request POST 'https://api.1099policy.com/api/v1/apply/sessions' \
--header "Content-Type: application/json" \
--data '{"cancel_url":"string","contractor":"string","general_opt_in_work_state":"string","is_general_opt_in":true,"quote":"string","success_url":"string"}'
Request examples
{
"cancel_url": "string",
"contractor": "string",
"general_opt_in_work_state": "string",
"is_general_opt_in": true,
"quote": "string",
"success_url": "string"
}
Response examples (201)
{
"cancel_url": "https://1099jobcloud.com/1099policy/cancel",
"created": 1646818364,
"expired": false,
"id": "string",
"quote": "qt_5DciVga8Kt",
"step": "final_review",
"success_url": "https://1099jobcloud.com/1099policy/success",
"url": "http://apply.1099policy.com/..."
}