This endpoint creates an invoice that reflects the insurance premium owed by the contractor for the specified pay period.
Body
-
ID of the contractor
-
The gross pay that the contractor earned in the last pay period.
-
ID of the job that the contractor was paid to do.
-
Pay period end date.
-
Pay period start date.
-
The purchase order number for this invoice. Optional.
By default an invoice inherits the
purchase_order_numberset on the job'scustom_metadata. Send this field to override that default for this invoice — an explicit value always wins over the job default. Send an empty string ("") to create the invoice with no purchase order number, or omit the field to inherit the job's default.If a later gross_pay change re-prices this invoice, the replacement invoice keeps this purchase order number; it is not re-inherited from the job.
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,"purchase_order_number":"string"}'
{
"contractor": "string",
"gross_pay": 42,
"job": "string",
"paycycle_enddate": 42,
"paycycle_startdate": 42,
"purchase_order_number": "string"
}
{
"contractor": "cn_Ehb3bYa",
"created": 1646818364,
"gross_pay": 250000,
"id": "string",
"job": "jb_jsb9KEcTpc",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364,
"premium_due": 4325,
"purchase_order_number": "12345678"
}