Invoices that haven't been paid are fully editable. Once an invoice is paid, it becomes uneditable.
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.
Provide a value to set or change it — an explicit value overrides the default inherited from the job's
custom_metadata. Send an empty string ("") to clear it, or omit the field to leave the current value unchanged. This is how you change only the purchase order number when nothing else about the invoice has changed. Not editable once the invoice is paid in full.
PUT
/api/v1/invoices/{invoice}
curl \
--request PUT 'https://api.1099policy.com/api/v1/invoices/in_4RviYgc2Wt' \
--header "Content-Type: application/json" \
--data '{"contractor":"cn_Ehb3bYa","gross_pay":10000,"job":"jb_jsb9KEcTpc","paycycle_enddate":1678334737,"paycycle_startdate":1646818364,"purchase_order_number":"PO-12345678"}'
Request example
{
"contractor": "cn_Ehb3bYa",
"gross_pay": 10000,
"job": "jb_jsb9KEcTpc",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364,
"purchase_order_number": "PO-12345678"
}
Response examples (200)
{
"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"
}