200Successful Response
Schema: SuccessEnvelope_ContractResponse_
successbooleanmessagestringcodestringdataContractResponse
/api/v1/contracts/{contract_id}Edit a contract's descriptive/schedule fields (number, first invoice date, estimated end date). Running tallies (billed/recognized/value) are maintained by the billing engine and cannot be edited.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
contract_idstringrequiredSchema: ContractUpdate
numberstringContract reference number.
statusstringManual lifecycle change: 'completed' to close the contract, 'on_hold'/'paused' to pause billing, or 'active'/'resume' to resume a paused contract. Routed through the contract's lifecycle guards (can_be_paused / can_be_resumed).
first_invoice_datestring · dateAnchor date for the contract's term clock.
end_datestring · dateEstimated end of term.
line_itemsarray · ContractLineItemUpdatePer-line edits to the contract's order lines. Lines omitted from the list are left untouched (this is not a wholesale replacement).
Schema: SuccessEnvelope_ContractResponse_
successbooleanmessagestringcodestringdataContractResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject