{
    "id": "20260504_184445_14f5018f",
    "timestamp": "2026-05-04T18:44:45+00:00",
    "meta": {
        "method": "POST",
        "uri": "/trudel/V2/DEV/FinDeVisite.php?action=create_all",
        "query": {
            "action": "create_all"
        },
        "ip": "142.182.64.94",
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36",
        "http_code": 200,
        "note": "create_all",
        "OpportunityId": "006bZ00000VvqcjQAB",
        "VisitId": "a03bZ00000Xd29pQAB"
    },
    "input": {
        "Agent": {
            "FirstName": "Thomas",
            "LastName": "Raymond",
            "Email": "thomas.raymond@trudel.ca",
            "Job": "Architecte de Solutions "
        },
        "Clients": [
            {
                "FirstName": "James",
                "LastName": "Bond",
                "Email": "James.bond@trudel.ca",
                "Phone": "",
                "Post": ""
            }
        ],
        "Projects": [
            {
                "ProjectName": "Le18Juillet",
                "Favorites": {
                    "Units": [
                        "1050_Le18Juillet-2",
                        "826_Le18Juillet-1",
                        "1177_Le18Juillet-2"
                    ],
                    "CommonAreas": [
                        "Piscine au toit"
                    ],
                    "Surroundings": [
                        "Place des Quatre-Bourgeois"
                    ]
                },
                "Estimates": [
                    {
                        "Unit": "1177",
                        "ServicesAndOptionsIncluded": [
                            "Piscine extérieure au toit",
                            "Salle de mise en forme",
                            "Cuisine d’été",
                            "Salle de réception ($)",
                            "Suite d’invité locative ($)",
                            "Stations lave-auto",
                            "Salle de rangement à vélos sécurisée",
                            "Eau chaude",
                            "Air climatisé"
                        ],
                        "ServicesAndOptions": [],
                        "ServicesAndOptionsMultiple": [
                            {
                                "Name": "Rangement grillagé sur étage (à partir de)",
                                "Number": 1,
                                "Price": 75
                            },
                            {
                                "Name": "Rangement grillagé souterrain (à partir de)",
                                "Number": 1,
                                "Price": 55
                            },
                            {
                                "Name": "Stationnement moto (à partir de)",
                                "Number": 1,
                                "Price": 35
                            }
                        ],
                        "ServicesAndOptionsPrice": 165,
                        "UnitPrice": 2795,
                        "Deduction": 0,
                        "OtherFees": 0,
                        "FinalPrice": 2960
                    }
                ],
                "ProjectTime": {
                    "TimeSpent": 65.64731597900390625,
                    "Subsections": {
                        "Immeuble": {
                            "TimeSpent": 2.524808406829833984375,
                            "Subsections": []
                        },
                        "Unite": {
                            "TimeSpent": 46.823932647705078125,
                            "Subsections": []
                        },
                        "Estimation": {
                            "TimeSpent": 1.924480438232421875,
                            "Subsections": []
                        },
                        "Favoris": {
                            "TimeSpent": 2.09710693359375,
                            "Subsections": []
                        },
                        "Entourage": {
                            "TimeSpent": 5.68798065185546875,
                            "Subsections": []
                        },
                        "Espace commun": {
                            "TimeSpent": 4.70948028564453125,
                            "Subsections": []
                        },
                        "Fin de visite": {
                            "TimeSpent": 1.87952423095703125,
                            "Subsections": []
                        }
                    }
                }
            }
        ],
        "GeneralInfo": {
            "Date": "2026.05.04",
            "VisitTime": 65.64731597900390625,
            "Pet": "",
            "UnitsSeeked": [],
            "Comment": ""
        }
    },
    "output": {
        "ok": true,
        "LeadConversion": null,
        "LeadToOpportunityAutoPayload": [],
        "LeadToOpportunityAutoUpdate": null,
        "Opportunity": {
            "http": 201,
            "resp": {
                "id": "006bZ00000VvqcjQAB",
                "success": true,
                "errors": []
            },
            "id": "006bZ00000VvqcjQAB"
        },
        "Roles": [
            {
                "http": 201,
                "resp": {
                    "id": "00KbZ00000ApIGTUA3",
                    "success": true,
                    "errors": []
                },
                "role": {
                    "ContactId": "003bZ00000XdGoPQAV",
                    "Role": "Client principal",
                    "IsPrimary": true
                }
            }
        ],
        "Visit__c": {
            "mode": "create",
            "id": "a03bZ00000Xd29pQAB",
            "http": 201,
            "payload": {
                "Opportunity__c": "006bZ00000VvqcjQAB",
                "Assign_to__c": "005OF000001ng5aYAA",
                "Contact_1__c": "003bZ00000XdGoPQAV",
                "Meeting_Date_Time__c": "2026-05-04T18:44:42Z",
                "Meeting_Notes__c": "",
                "Visit_Duration__c": 2
            }
        },
        "Visited_Unit__c": [
            {
                "ok": true,
                "unit": "1050_Le18Juillet-2",
                "id": "a01bZ00000NqcnAQAR",
                "http": 201
            },
            {
                "ok": true,
                "unit": "826_Le18Juillet-1",
                "id": "a01bZ00000NqUPnQAN",
                "http": 201
            },
            {
                "ok": true,
                "unit": "1177_Le18Juillet-2",
                "id": "a01bZ00000Nqf5NQAR",
                "http": 201
            }
        ]
    }
}