Mark bill as received

PATCH/api/v1/bills/{bill_id}/receipt

Mark a bill as received and create journal entry

Operation ID: mark_bill_received_api_v1_bills__bill_id__receipt_patch·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

bill_idstringrequired

Request body

bill_idstring

UUID of the bill (set automatically from URL path).

amountintegerrequired

Actual bill amount in cents. Must be greater than 0.

ledger_idstringrequired

UUID of the expense ledger account to categorize this bill. Required for creating the journal entry.

s3_keystring

S3 key of the bill document.

journal_entry_datestring · date-time | string · date | string

Date for the accounting journal entry (ISO 8601 or YYYY-MM-DD).

received_onstring · date-time | string · date | string

Date the bill/goods were received (ISO 8601 or YYYY-MM-DD).

due_onstring · date-time | string · date | string

Payment due date (ISO 8601 or YYYY-MM-DD).

Responses

200Successful Response

successboolean
messagestring
codestring
dataBillResponse

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