{
    "type": "object",
    "properties": {
        "locations": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "The unique identifier for the sub-account"
                    },
                    "businessName": {
                        "type": "string",
                        "description": "The business name of the sub-account"
                    },
                    "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"
                    },
                    "firstName": {
                        "type": "string",
                        "description": "Contact first name"
                    },
                    "lastName": {
                        "type": "string",
                        "description": "Contact last name"
                    },
                    "email": {
                        "type": "string",
                        "description": "Contact email address"
                    },
                    "phone": {
                        "type": "string",
                        "description": "Contact phone number"
                    },
                    "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"
                            }
                        }
                    },
                    "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", "businessName"]
            }
        },
        "meta": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "Total number of sub-accounts"
                },
                "currentPage": {
                    "type": "integer",
                    "description": "Current page number"
                },
                "nextPage": {
                    "type": "integer",
                    "description": "Next page number"
                },
                "prevPage": {
                    "type": "integer",
                    "description": "Previous page number"
                },
                "totalPages": {
                    "type": "integer",
                    "description": "Total number of pages"
                }
            },
            "required": ["total", "currentPage", "totalPages"]
        }
    },
    "required": ["locations", "meta"]
}
