Remove a file from a draft bill
Takes one file off a draft bill and returns the bill without it. 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.
fileIdstringrequiredThe file to remove. This is the id of an entry in the draft bill's files array, not an upload session id.
Response
200 · The draft bill, with the file gone from `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.