201Successful Response
Schema: SuccessEnvelope_DrawdownResponse_
successbooleanmessagestringcodestringdataDrawdownResponse
/api/v1/contracts/inbound/hoursTurn a parsed Slack or email hours reply into a pending drawdown entry awaiting approval (the hours gate). The caller supplies the already-parsed fields; the target contract must belong to the business.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: HoursSubmissionRequest
contract_idstringrequiredContract the hours draw against.
hoursnumber | stringrequiredHours consumed.
entry_datestringrequiredDate the work happened (YYYY-MM-DD).
submitted_bystringWho submitted the hours (Slack user / email sender).
submitted_viastringInbound channel: slack, email, or manual.
source_message_idstringID of the Slack/email message that created this entry.
descriptionstringOptional note.
order_line_idstringOrder line the hours are drawn against (optional).
Schema: SuccessEnvelope_DrawdownResponse_
successbooleanmessagestringcodestringdataDrawdownResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject