Create an invoice
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 '{"$ref":"#/components/examples/invoice"}'
Request example
{
"$ref": "#/components/examples/invoice"
}
Response examples (201)
{
"contractor": "cn_Ehb3bYa",
"created": 1646818364,
"gross_pay": 250000,
"id": "in_4RviYgc2Wt",
"job": "jb_jsb9KEcTpc",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364,
"premium_due": 4325
}