Edit contract

PATCH/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.

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

contract_idstringrequired

Request body

numberstring

Contract reference number.

first_invoice_datestring · date

Anchor date for the contract's term clock.

end_datestring · date

Estimated end of term.

Responses

200Successful Response

successboolean
messagestring
codestring
dataContractResponse

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