Create estimate

POST/api/v1/estimates

Create a new estimate in draft status.

Operation ID: create_estimate_api_v1_estimates_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

customer_idstringrequired

Customer to send estimate to

line_itemsarray · EstimateLineItemrequiredEstimateLineItem

Line items

5 fields
variant_idstring

Product variant ID or null for custom

descriptionstringrequired

Line item description

quantityinteger

Quantity

unit_priceintegerrequired

Unit price in cents

amountintegerrequired

Total amount in cents (qty * unit_price)

due_datestring

Proposed payment due date (YYYY-MM-DD)

expiration_datestring

Estimate expiration date (YYYY-MM-DD)

descriptionstring

Estimate description

internal_notesstring

Internal notes

currencystring

Currency code

Responses

201Successful Response

successboolean
messagestring
codestring
dataEstimateResponse

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