Submit bill for AP approval

POST/api/v1/bills/{bill_id}/submit-for-ap-approval

Manually route a forecasted bill into the firm's AP approval workflow. Use when a bill was approved before the workflow was provisioned or when automatic routing did not run. The bill moves from 'forecasted' to 'pending_approval' and posts to 'received' only once an approver signs off.

Operation ID: submit_bill_for_ap_approval_api_v1_bills__bill_id__submit_for_ap_approval_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

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

201Successful Response

successboolean
messagestring
codestring
dataSubmitBillForApApprovalResponse

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