Attach files to a draft bill
Attaches invoices or receipts whose bytes you have already uploaded. Each entry names an upload session from Start a file upload for a draft bill — this endpoint does not carry file content itself. Requires the work_orders:write permission.
Authorization
AuthorizationstringrequiredPath parameters
workOrderIdstringrequiredThe work order to act on. A Snowflake id, sent as a decimal string.
draftBillIdstringrequiredThe draft bill on this work order. A Snowflake id, sent as a decimal string.
Body
application/json
filesobject[]requiredThe uploads to attach.
Response
200 · The draft bill, with the new files in `files`.
idstringrequiredThe draft bill. Once converted, this is the id of the real vendor bill instead.
billDatestring · daterequiredThe bill's date, in the company's timezone.
dueDatestring · dateWhen the bill is due, in the company's timezone. Absent when no date was set.
lineItemsobject[]requiredWhat is being charged.
filesobject[]requiredInvoices and receipts attached to the bill. An empty array when there are none.
addedOnstring · date-timerequiredWhen the draft bill was added, in the company's timezone and without an offset.
addedByVendorbooleanrequiredWhether the vendor added it through their own portal rather than staff adding it here.
approvedbooleanrequiredWhether the draft has been approved. Drafts created through this API are approved from the start.
vendorIdstringThe vendor to be paid. Absent while unset — it is needed before the bill can be converted.
billIdstringThe real vendor bill this draft became. Absent until it is converted.