{
    "id": "20260430_175500_3d425163",
    "timestamp": "2026-04-30T17:55:00+00:00",
    "meta": {
        "method": "POST",
        "uri": "/trudel/V2/DEV/FinDeVisite.php?action=create_all",
        "query": {
            "action": "create_all"
        },
        "ip": "34.34.248.52",
        "user_agent": "python-requests/2.33.1",
        "http_code": 200,
        "note": "create_all",
        "OpportunityId": "006bZ00000VfvRuQAJ",
        "VisitId": "a03bZ00000XTbIxQAL"
    },
    "input": {
        "Agent": {
            "FirstName": "Thomas",
            "LastName": "Raymond",
            "Email": "thomas.raymond@trudel.ca",
            "Job": "Architecte de Solutions "
        },
        "Clients": [
            {
                "FirstName": "Bruce",
                "LastName": "Wayne",
                "Email": "thomas.raymond+bruce.wayne@trudel.ca",
                "Phone": "",
                "Post": ""
            }
        ],
        "Projects": [
            {
                "ProjectName": "Le18Juillet",
                "Favorites": {
                    "Units": [
                        "1050_Le18Juillet-2"
                    ],
                    "CommonAreas": [],
                    "Surroundings": []
                },
                "Estimates": [],
                "ProjectTime": {
                    "TimeSpent": 16.629329681396484375,
                    "Subsections": {
                        "Immeuble": {
                            "TimeSpent": 5.00943660736083984375,
                            "Subsections": []
                        },
                        "Unite": {
                            "TimeSpent": 8.946475982666015625,
                            "Subsections": []
                        },
                        "Fin de visite": {
                            "TimeSpent": 2.67341709136962890625,
                            "Subsections": []
                        }
                    }
                }
            }
        ],
        "GeneralInfo": {
            "Date": "2026.04.30",
            "VisitTime": 16.629329681396484375,
            "Pet": "",
            "UnitsSeeked": [],
            "Comment": ""
        }
    },
    "output": {
        "ok": true,
        "LeadConversion": {
            "leadId": "00QbZ00000G6QcxUAF",
            "http": 200,
            "payload": {
                "convertedStatus": "Qualified",
                "doNotCreateOpportunity": false,
                "opportunityName": "Bruce Wayne",
                "ownerId": "005OF000001ng5aYAA"
            },
            "res": {
                "errors": [
                    "ConvertLead failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, La conversion de prospect a échoué, car la valeur du champ Deceased_Relative__c n'est pas valide. La valeur provient du champ de piste mappé avec le champ Deceased_Relative__c. Demandez à votre administrateur de vérifier les mappages de champ.: []"
                ],
                "success": false
            }
        },
        "LeadToOpportunityAutoPayload": [],
        "LeadToOpportunityAutoUpdate": null,
        "Opportunity": {
            "http": 201,
            "resp": {
                "id": "006bZ00000VfvRuQAJ",
                "success": true,
                "errors": []
            },
            "id": "006bZ00000VfvRuQAJ"
        },
        "Roles": [
            {
                "http": 201,
                "resp": {
                    "id": "00KbZ00000Am9CvUAJ",
                    "success": true,
                    "errors": []
                },
                "role": {
                    "ContactId": "003bZ00000XT2hvQAD",
                    "Role": "Client principal",
                    "IsPrimary": true
                }
            }
        ],
        "Visit__c": {
            "mode": "create",
            "id": "a03bZ00000XTbIxQAL",
            "http": 201,
            "payload": {
                "Opportunity__c": "006bZ00000VfvRuQAJ",
                "Assign_to__c": "005OF000001ng5aYAA",
                "Contact_1__c": "003bZ00000XT2hvQAD",
                "Meeting_Date_Time__c": "2026-04-30T17:54:59Z",
                "Meeting_Notes__c": "",
                "Visit_Duration__c": 1
            }
        },
        "Visited_Unit__c": [
            {
                "ok": true,
                "unit": "1050_Le18Juillet-2",
                "id": "a01bZ00000NlG5qQAF",
                "http": 201
            }
        ]
    }
}