Raw schema
{
"type": "object",
"properties": {
"customer_id": {
"type": "string",
"minLength": 1,
"description": "The customer id."
},
"address_id": {
"description": "An existing address of the customer.",
"type": "string"
},
"address": {
"description": "A new address, if no address_id.",
"type": "object",
"properties": {
"street": {
"type": "string"
},
"street_line_2": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"zip": {
"type": "string"
},
"country": {
"type": "string"
}
}
},
"options": {
"description": "The estimate's options.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Option name, e.g. 'Standard repair'.",
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Line item name."
},
"description": {
"type": "string"
},
"unit_price": {
"description": "Selling price of one unit, in CENTS.",
"type": "number"
},
"unit_cost": {
"description": "Direct cost of one unit to the company, in CENTS (job costing).",
"type": "number"
},
"quantity": {
"description": "Quantity; up to two decimal places.",
"type": "number"
}
},
"required": [
"name"
]
}
}
}
}
},
"note": {
"type": "string"
},
"message": {
"description": "Message to the customer.",
"type": "string"
},
"assigned_employee_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"lead_source": {
"type": "string"
},
"schedule": {
"description": "When the estimate visit is scheduled.",
"type": "object",
"properties": {
"start_time": {
"description": "ISO-8601 start.",
"type": "string"
},
"end_time": {
"description": "ISO-8601 end.",
"type": "string"
},
"arrival_window_in_minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"notify_customer": {
"type": "boolean"
}
}
},
"estimate_number": {
"description": "Must be unique across the company's estimates; auto-assigned if omitted.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"job_type_id": {
"description": "From housecall_list_job_types.",
"type": "string"
},
"business_unit_id": {
"type": "string"
}
},
"required": [
"customer_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}