201Successful Response
Schema: SuccessEnvelope_DealBulkCreateResponse_
successbooleanmessagestringcodestringdataDealBulkCreateResponse
/api/v1/o2c/deals/bulkCreate up to 250 pipeline deals in one request — the import path behind the Pipeline page's Import button, for moving an existing pipeline spreadsheet in.
Rows are independent: one invalid row does not reject the rest. Every row comes back in results with its 1-based row number and, on failure, the reason — so a caller fixes and re-submits only what failed. Each row needs prospect_name or customer_id, and expected_value_cents is in CENTS.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: DealBulkCreateRequest
dealsarray · DealBulkRowrequiredDealBulkRowDeals to create (1-250).
prospect_namestringFree-text prospect/company name, used before a real customer record exists. Required unless customer_id is set.
customer_idstringExisting customer this deal is for (expansion deal). Required unless prospect_name is set.
namestringDeal name. Defaults to the prospect/customer name.
contact_namestringSales contact.
contact_emailstringSales contact email. Never written to the customer record -- may later become the order signer.
sourcestringValidated per row; an unknown source fails that row.
stagestringValidated per row; an unknown stage fails that row.
is_expansionbooleanTrue if this is expansion revenue on an existing customer.
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.
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_typestringValidated per row; an unknown value fails that row.
Schema: SuccessEnvelope_DealBulkCreateResponse_
successbooleanmessagestringcodestringdataDealBulkCreateResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject