{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "The unique identifier for the created sub-account"
        },
        "name": {
            "type": "string",
            "description": "The name of the sub-account"
        },
        "phone": {
            "type": "string",
            "description": "Business phone number"
        },
        "companyId": {
            "type": "string",
            "description": "The agency company ID"
        },
        "address": {
            "type": "string",
            "description": "Business address"
        },
        "city": {
            "type": "string",
            "description": "Business city"
        },
        "state": {
            "type": "string",
            "description": "Business state/province"
        },
        "country": {
            "type": "string",
            "description": "Business country code"
        },
        "postalCode": {
            "type": "string",
            "description": "Business postal/ZIP code"
        },
        "timezone": {
            "type": "string",
            "description": "Business timezone"
        },
        "website": {
            "type": "string",
            "description": "Business website URL"
        },
        "prospectInfo": {
            "type": "object",
            "properties": {
                "firstName": {
                    "type": "string",
                    "description": "Prospect first name"
                },
                "lastName": {
                    "type": "string",
                    "description": "Prospect last name"
                },
                "email": {
                    "type": "string",
                    "description": "Prospect email address"
                }
            },
            "required": ["firstName", "lastName", "email"]
        },
        "settings": {
            "type": "object",
            "properties": {
                "allowDuplicateContact": {
                    "type": "boolean",
                    "description": "Whether duplicate contacts are allowed"
                },
                "allowDuplicateOpportunity": {
                    "type": "boolean",
                    "description": "Whether duplicate opportunities are allowed"
                },
                "allowFacebookNameMerge": {
                    "type": "boolean",
                    "description": "Whether Facebook name merging is enabled"
                },
                "disableContactTimezone": {
                    "type": "boolean",
                    "description": "Whether contact timezone is disabled"
                }
            }
        },
        "snapshot": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "description": "Snapshot ID applied to the sub-account"
                },
                "type": {
                    "type": "string",
                    "enum": ["own", "imported", "vertical"],
                    "description": "Type of snapshot applied"
                }
            }
        },
        "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the sub-account was created"
        },
        "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the sub-account was last updated"
        }
    },
    "required": ["id", "name", "phone", "companyId", "address", "city", "state", "country", "postalCode", "timezone", "prospectInfo"]
}
