Raw schema
{
"type": "object",
"properties": {
"customer_type": {
"type": "string",
"enum": [
"contact",
"company"
],
"description": "Whether the customer is a contact or a company."
},
"customer_id": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
"description": "The customer's contact or company id."
},
"contact_person_id": {
"description": "For a company customer: the contact person.",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
},
"title": {
"type": "string",
"minLength": 1
},
"summary": {
"description": "The deal's remarks field.",
"type": "string"
},
"phase_id": {
"description": "Starting phase; defaults to the default pipeline's first phase.",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
},
"responsible_user_id": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
"description": "The user id (a UUID)."
},
"estimated_value_amount": {
"description": "Expected value; needs estimated_value_currency.",
"type": "number"
},
"estimated_value_currency": {
"type": "string",
"enum": [
"BAM",
"CAD",
"CHF",
"CLP",
"CNY",
"COP",
"CZK",
"DKK",
"EUR",
"GBP",
"INR",
"ISK",
"JPY",
"MAD",
"MXN",
"NOK",
"PEN",
"PLN",
"RON",
"SEK",
"TRY",
"USD",
"ZAR"
]
},
"estimated_probability": {
"description": "Win probability, 0 to 1.",
"type": "number",
"minimum": 0,
"maximum": 1
},
"estimated_closing_date": {
"description": "Expected closing date (YYYY-MM-DD).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"source_id": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
"description": "The deal source id (a UUID)."
},
"department_id": {
"description": "Department (company entity) id.",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
}
},
"required": [
"customer_type",
"customer_id",
"title"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}