200Successful Response
Schema: SuccessEnvelope_DealResponse_
successbooleanmessagestringcodestringdataDealResponse
/api/v1/o2c/deals/{deal_id}Edit a deal's stage, notes, owner / deal type / revenue type, 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.
owner_namestringSales rep / deal owner. Free text (reps are often not DayZero users); the pipeline's owner filter matches on it exactly.
deal_typestringBusiness-defined deal category, e.g. 'Subcontractor', 'EPC', 'Developer'. Free text -- every business slices deals differently.
revenue_typestringHow the money arrives: 'recurring' (monthly) or 'one_time' (prepaid up front).
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