201Successful Response
Schema: app__core__success__SuccessEnvelope_OrderResponse___1
successbooleanmessagestringcodestringdataapp__api__v1__schemas__orders__OrderResponse
/api/v1/ordersCreate a new draft order with per-line billing rules.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: OrderCreate
customer_idstringrequiredCustomer the order is for.
project_idstringProject / job (optional).
order_descriptionstringOrder description.
order_start_datestringOrder start (YYYY-MM-DD).
first_invoice_datestringFirst invoice date (YYYY-MM-DD); anchors the term clock.
term_monthsintegerTerm length in months.
discount_centsintegerContract-level discount (cents).
tax_treatmentstringTax treatment label.
currencystringCurrency code.
linesarray · OrderLineInputOrderLineInputOrder-form lines.
catalog_item_idstringCatalog item this line is based on (optional).
descriptionstringLine description.
qtynumber | stringrequiredOrdered quantity / hours.
unit_price_centsintegerrequiredUnit price in cents.
billing_rulestringflat, per_unit, recurring, usage_metered, or prepaid_block.
billing_timingstringRecurring only: each_period, first_upfront, all_upfront.
ramp_scheduleobjectPre-agreed step qty/price schedule (frozen at signing).
Schema: app__core__success__SuccessEnvelope_OrderResponse___1
successbooleanmessagestringcodestringdataapp__api__v1__schemas__orders__OrderResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject