{
    "id": "20260504_172341_f7e6437b",
    "timestamp": "2026-05-04T17:23:41+00:00",
    "meta": {
        "method": "POST",
        "uri": "/trudel/V2/PREPROD/FinDeVisite.php?action=create_all",
        "query": {
            "action": "create_all"
        },
        "ip": "34.34.248.24",
        "user_agent": "python-requests/2.33.1",
        "http_code": 200,
        "note": "create_all",
        "OpportunityId": "006bZ00000VvmakQAB",
        "VisitId": "a03bZ00000XdNhrQAF"
    },
    "input": {
        "Agent": {
            "FirstName": "Thomas",
            "LastName": "Raymond",
            "Email": "thomas.raymond@trudel.ca",
            "Job": "Architecte de Solutions "
        },
        "Clients": [
            {
                "FirstName": "Yannick",
                "LastName": "Gilbert",
                "Email": "yannick@minuitmoinsune.com",
                "Phone": "",
                "Post": ""
            }
        ],
        "Projects": [
            {
                "ProjectName": "Le18Juillet",
                "Favorites": {
                    "Units": [
                        "550_Le18Juillet-2",
                        "530_Le18Juillet-1"
                    ],
                    "CommonAreas": [
                        "Piscine au toit"
                    ],
                    "Surroundings": [
                        "Place des Quatre-Bourgeois"
                    ]
                },
                "Estimates": [
                    {
                        "Unit": "550",
                        "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": "Location borne de recharge",
                                "Number": 1,
                                "Price": 35
                            },
                            {
                                "Name": "Rangement grillagé souterrain (à partir de)",
                                "Number": 1,
                                "Price": 55
                            }
                        ],
                        "ServicesAndOptionsPrice": 90,
                        "UnitPrice": 2775,
                        "Deduction": 0,
                        "OtherFees": 0,
                        "FinalPrice": 2865
                    }
                ],
                "ProjectTime": {
                    "TimeSpent": 39.812946319580078125,
                    "Subsections": {
                        "Immeuble": {
                            "TimeSpent": 2.3321206569671630859375,
                            "Subsections": []
                        },
                        "Unite": {
                            "TimeSpent": 12.92130374908447265625,
                            "Subsections": []
                        },
                        "Espace commun": {
                            "TimeSpent": 4.18617534637451171875,
                            "Subsections": []
                        },
                        "Entourage": {
                            "TimeSpent": 5.21895599365234375,
                            "Subsections": []
                        },
                        "Favoris": {
                            "TimeSpent": 2.2704677581787109375,
                            "Subsections": []
                        },
                        "Fin de visite": {
                            "TimeSpent": 12.883922576904296875,
                            "Subsections": []
                        }
                    }
                }
            }
        ],
        "GeneralInfo": {
            "Date": "2026.05.04",
            "VisitTime": 39.812946319580078125,
            "Pet": "",
            "UnitsSeeked": [],
            "Comment": ""
        }
    },
    "output": {
        "ok": true,
        "LeadConversion": null,
        "LeadToOpportunityAutoPayload": [],
        "LeadToOpportunityAutoUpdate": null,
        "Opportunity": {
            "http": 201,
            "resp": {
                "id": "006bZ00000VvmakQAB",
                "success": true,
                "errors": []
            },
            "id": "006bZ00000VvmakQAB"
        },
        "Roles": [
            {
                "http": 201,
                "resp": {
                    "id": "00KbZ00000ApGD3UAN",
                    "success": true,
                    "errors": []
                },
                "role": {
                    "ContactId": "003bZ00000XdCWwQAN",
                    "Role": "Client principal",
                    "IsPrimary": true
                }
            }
        ],
        "Visit__c": {
            "mode": "create",
            "id": "a03bZ00000XdNhrQAF",
            "http": 201,
            "payload": {
                "Opportunity__c": "006bZ00000VvmakQAB",
                "Assign_to__c": "005OF000001ng5aYAA",
                "Contact_1__c": "003bZ00000XdCWwQAN",
                "Meeting_Date_Time__c": "2026-05-04T17:23:39Z",
                "Meeting_Notes__c": "",
                "Visit_Duration__c": 1
            }
        },
        "Visited_Unit__c": [
            {
                "ok": false,
                "unit": "550_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 0128a000000tkjSAAQ",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "530_Le18Juillet-1",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 0128a000000tkjSAAQ",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            }
        ]
    }
}