200Successful Response
Schema: SuccessEnvelope_DealResponse_
successbooleanmessagestringcodestringdataDealResponse
/api/v1/o2c/deals/{deal_id}Edit a deal's stage, notes, and expected-commercials estimates. Blocked once the deal has converted to an order (order_id set) -- manage it from Orders instead. Stage changes are validated against the model's allowed transitions.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
deal_idstringrequiredSchema: DealUpdate
stagestringOne of ['closed_lost', 'closed_won', 'negotiation', 'proposal', 'prospecting', 'qualified'] (open stages only).
notesstringFree-text notes.
expected_value_centsintegerEstimated deal value in cents.
expected_hoursnumber | stringEstimated hours.
expected_term_monthsintegerEstimated contract term in months.
expected_start_datestring · dateEstimated start date.
expected_close_datestring · dateEstimated close date.
Schema: SuccessEnvelope_DealResponse_
successbooleanmessagestringcodestringdataDealResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject