Record a drawdown (hours consumed)

POST/api/v1/contracts/{contract_id}/drawdowns

Records hours consumed as a pending entry awaiting approval.

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

contract_idstringrequired

Request body

order_line_idstring

Order line the hours are drawn against.

catalog_item_idstring

Catalog item.

hoursnumber | stringrequired

Hours consumed.

entry_datestringrequired

Date the work happened (YYYY-MM-DD).

descriptionstring

Optional note.

submitted_bystring

Who submitted the hours.

submitted_viastring

slack, email, or manual.

source_message_idstring

ID of the reply that created this entry.

Responses

201Successful Response

successboolean
messagestring
codestring
dataDrawdownResponse

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