{
    "id": "20260318_135710_2efc478b",
    "timestamp": "2026-03-18T13:57:10+00:00",
    "meta": {
        "method": "POST",
        "uri": "/trudel/FinDeVisite.php?action=create_all",
        "query": {
            "action": "create_all"
        },
        "ip": "34.34.248.67",
        "user_agent": "python-requests/2.32.5",
        "http_code": 200,
        "note": "create_all",
        "OpportunityId": "006OF00000YoORlYAN",
        "VisitId": "a03OF00000UZl7eYAD"
    },
    "input": {
        "Agent": {
            "FirstName": "Allyson",
            "LastName": "Andrews",
            "Email": "Allyson.andrews@trudel.ca",
            "Job": "Conseillère en location"
        },
        "Clients": [
            {
                "FirstName": "John",
                "LastName": "Wick",
                "Email": "thomas.raymond+wick@trudel.ca",
                "Phone": "",
                "Post": ""
            }
        ],
        "Projects": [
            {
                "ProjectName": "Le18Juillet",
                "Favorites": {
                    "Units": [
                        "550_Le18Juillet-2",
                        "1250_Le18Juillet-2"
                    ],
                    "CommonAreas": [],
                    "Surroundings": []
                },
                "Estimates": [],
                "ProjectTime": {
                    "TimeSpent": 55.65773773193359375,
                    "Subsections": {
                        "Immeuble": {
                            "TimeSpent": 10.5610218048095703125,
                            "Subsections": []
                        },
                        "Unite": {
                            "TimeSpent": 42.08447265625,
                            "Subsections": []
                        },
                        "Fin de visite": {
                            "TimeSpent": 3.012241363525390625,
                            "Subsections": []
                        }
                    }
                }
            }
        ],
        "GeneralInfo": {
            "Date": "2026.03.18",
            "VisitTime": 55.65773773193359375,
            "Pet": "",
            "UnitsSeeked": [
                "3.5",
                "3.5 avec bureau"
            ],
            "Comment": ""
        }
    },
    "output": {
        "ok": true,
        "LeadConversion": null,
        "Opportunity": {
            "http": 201,
            "resp": {
                "id": "006OF00000YoORlYAN",
                "success": true,
                "errors": []
            },
            "id": "006OF00000YoORlYAN"
        },
        "Roles": [
            {
                "http": 400,
                "resp": [
                    {
                        "message": "Unable to create/update fields: CreatedById, LastModifiedById. Please check the security settings of this field and verify that it is read/write for your profile or permission set.",
                        "errorCode": "INVALID_FIELD_FOR_INSERT_UPDATE",
                        "fields": [
                            "CreatedById",
                            "LastModifiedById"
                        ]
                    }
                ],
                "role": {
                    "ContactId": "003OF00000UZpUbYAL",
                    "Role": "Client principal",
                    "IsPrimary": true
                }
            }
        ],
        "Visit__c": {
            "mode": "create",
            "id": "a03OF00000UZl7eYAD",
            "http": 201,
            "payload": {
                "Opportunity__c": "006OF00000YoORlYAN",
                "Assign_to__c": "005OF000004BKvZYAW",
                "Contact_1__c": "003OF00000UZpUbYAL",
                "Meeting_Date_Time__c": "2026-03-18T13:57:07Z",
                "Meeting_Notes__c": "",
                "Visit_Duration__c": 55
            }
        },
        "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: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            },
            {
                "ok": false,
                "unit": "1250_Le18Juillet-2",
                "http": 400,
                "res": [
                    {
                        "message": "Record Type ID: this ID value isn't valid for the user: 012000000000000AAA",
                        "errorCode": "INVALID_CROSS_REFERENCE_KEY",
                        "fields": [
                            "RecordTypeId"
                        ]
                    }
                ]
            }
        ]
    }
}