Push an upcoming bill into a real bill

POST/api/v1/bills/upcoming/{upcoming_bill_id}/convert

Creates a draft bill from the estimate and marks the forecast row converted. The bill posts nothing to the ledger until it is approved and marked received, exactly like a hand-entered bill.

Operation ID: convert_upcoming_bill_api_v1_bills_upcoming__upcoming_bill_id__convert_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

upcoming_bill_idstringrequired

Request body

amountinteger

Actual amount in cents. Defaults to the estimate.

due_datestring · date

Due date for the bill. Defaults to the expected date.

bill_numberstring

Vendor's invoice number, when known.

s3_keystring

Attachment key for the received document.

Responses

201Successful Response

successboolean
messagestring
codestring
dataUpcomingBillResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject