This endpoint creates an invoice that reflects the insurance premium owed by the contractor for the specified pay period.
POST
/api/v1/invoices
curl \
--request POST 'https://api.1099policy.com/api/v1/invoices' \
--header "Content-Type: application/json" \
--data '{"contractor":"string","gross_pay":42,"job":"string","paycycle_enddate":42,"paycycle_startdate":42}'
Request examples
{
"contractor": "string",
"gross_pay": 42,
"job": "string",
"paycycle_enddate": 42,
"paycycle_startdate": 42
}
Response examples (201)
{
"contractor": "cn_Ehb3bYa",
"created": 1646818364,
"gross_pay": 250000,
"id": "string",
"job": "jb_jsb9KEcTpc",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364,
"premium_due": 4325
}