Update an invoice
Invoices that haven't been paid are fully editable. Once an invoice is paid, it becomes uneditable.
Path parameters
-
The ID of the desired invoice (e.g.,
in_4RviYgc2Wt
).
PUT /api/v1/invoices/{invoice_id}
curl \
-X PUT https://api.1099policy.com/api/v1/invoices/{invoice_id} \
-H "Content-Type: application/json" \
-d '{"job":"jb_jsb9KEcTpc","gross_pay":10000,"contractor":"cn_Ehb3bYa","paycycle_enddate":1678334737,"paycycle_startdate":1646818364}'
Request example
{
"job": "jb_jsb9KEcTpc",
"gross_pay": 10000,
"contractor": "cn_Ehb3bYa",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364
}
Response examples (200)
{
"contractor": "cn_Ehb3bYa",
"created": 1646818364,
"gross_pay": 250000,
"id": "in_4RviYgc2Wt",
"job": "jb_jsb9KEcTpc",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364,
"premium_due": 4325
}