Raw schema
{
"type": "object",
"properties": {
"customerConfirmed": {
"type": "boolean",
"const": true,
"description": "Must be true. Set only after the user reviewed and confirmed first name, last name, email, phone, full delivery address, products, and delivery date."
},
"request": {
"type": "object",
"properties": {
"firstName": {
"type": "string",
"minLength": 1,
"description": "Customer's first name."
},
"lastName": {
"type": "string",
"minLength": 1,
"description": "Customer's last name."
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "Customer's email address."
},
"phone": {
"type": "string",
"minLength": 10,
"description": "Customer's phone number, at least 10 digits."
},
"address": {
"type": "string",
"minLength": 1,
"description": "Full delivery address: street, city, state, and ZIP."
},
"deliveryDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Delivery date, YYYY-MM-DD."
},
"duration": {
"description": "How long the rental is needed, such as 7 days or 2 weeks.",
"anyOf": [
{
"type": "string",
"minLength": 0,
"description": ""
},
{
"type": "null",
"description": ""
}
]
},
"projectDetails": {
"description": "Required when requesting more than one product (e.g. porta + dumpster). Goes on the Form Lead as Project Details.",
"anyOf": [
{
"type": "string",
"minLength": 0,
"description": ""
},
{
"type": "null",
"description": ""
}
]
},
"rentalType": {
"type": "string",
"enum": [
"construction",
"event",
"personal",
"commercial"
],
"description": "Job type. Dumpster-only must be construction or personal. Porta + dumpster may use construction (typical job site)."
},
"products": {
"description": "Porta-potty / sanitation product ids from get_service_availability. Include every sanitation product the customer wants, on this same request as any dumpster or siteServices[].",
"type": "array",
"items": {
"type": "string",
"enum": [
"porta-potty",
"holding-tanks",
"ada-porta-potty",
"flushable",
"restroom-trailer",
"potty-with-sink",
"handwash-station",
"other"
]
}
},
"units": {
"description": "How many units to deliver, if the customer specified a count.",
"anyOf": [
{
"type": "string",
"minLength": 0,
"description": ""
},
{
"type": "null",
"description": ""
}
]
},
"crewSize": {
"description": "Approximate crew size, used to size sanitation for the job.",
"anyOf": [
{
"type": "string",
"minLength": 0,
"description": ""
},
{
"type": "null",
"description": ""
}
]
},
"projectType": {
"description": "Kind of project, such as roofing, remodel, or event.",
"anyOf": [
{
"type": "string",
"minLength": 0,
"description": ""
},
{
"type": "null",
"description": ""
}
]
},
"dumpsterSize": {
"description": "Dumpster size id from get_service_availability. Put this on the SAME request as products[] when the customer also wants a porta potty.",
"type": "string",
"enum": [
"10-yard-roll-off-dumpster",
"12-yard-roll-off-dumpster",
"20-yard-roll-off-dumpster",
"30-yard-roll-off-dumpster",
"40-yard-roll-off-dumpster"
]
},
"disposalMaterial": {
"description": "Required whenever dumpsterSize is set.",
"anyOf": [
{
"type": "string",
"enum": [
"mixed-debris",
"construction-debris",
"yard-waste",
"concrete-dirt-asphalt",
"roofing-shingles",
"household-junk"
]
},
{
"type": "null"
}
]
},
"dumpsterRentalOption": {
"description": "Dumpster rental category, when the customer named one.",
"anyOf": [
{
"type": "string",
"enum": [
"construction-dumpster-rentals",
"yard-waste-dumpster-rentals",
"residential-dumpster-rentals",
"roofing-dumpster-rentals",
"commercial-dumpster-rentals",
"emergency-dumpster-rentals"
]
},
{
"type": "null"
}
]
},
"siteServices": {
"description": "Other jobsite services from get_service_availability siteServices (fencing, storage, water, power). Put them on this same request as dumpster and sanitation.",
"type": "array",
"items": {
"type": "string",
"enum": [
"temporary-fencing",
"storage-containers",
"water",
"power",
"other-site-services"
]
}
}
},
"required": [
"firstName",
"lastName",
"email",
"phone",
"address",
"deliveryDate",
"rentalType"
],
"description": "One quote request: contact, full delivery address, delivery date, and every product for the job."
}
},
"required": [
"customerConfirmed",
"request"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}