Create a contract

POST/api/v1/contracts

Create a contract directly from the Contracts UI. Provide either an existing order to promote (order_id) or a full order payload (order) to draft and countersign in one step. Both paths run the order through countersign, so the contract keeps a frozen order as its provenance.

Operation ID: create_contract_api_v1_contracts_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.

Request body

order_idstring

Existing order to promote into a contract.

orderOrderCreate

New order to create and countersign in one step.

Responses

201Successful 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