[#1243] SimplyMeet.Me API CreateEvent endpoint returning errors

Migrated from Redmine #1243 | Author: Robin M
Status: Closed | Priority: Normal | Created: 2024-06-20


Hello,

I have asked the SimplyMeet live chat for assistance on this issue, and was redirected to this support forum, so I hope that this is the correct place.

I am attempting to set up functions in our system to communicate with the SimplyMeet.Me endpoints. I am running tests on the various endpoints that we want to use, and while most of them are working, I am running into problems with the CreateEvent endpoint. The endpoint gives me either 400 errors for data not being validated if that is not correctly entered, but other than that it is consistently giving me a 500 error, with no way to troubleshoot the actual issue. Are you able to tell me what is wrong in my data that could be causing an error? Or is there a problem with the endpoint on the receiving end?

This is the HTTP call being made (with specific data obscured for security/privacy reasons):

POST /panel/api/event HTTP/1.1
Host: secure.simplymeet.me
User-Agent: OutSystemsPlatform
X-API-KEY: [APIKEY]
Content-Type: application/json; charset=utf-8
{
    "scheduledAt": "2024-06-24T09:15:00+00:00",
    "eventType": 112275,
    "invitee": {
         "fullName":"CreateEvent APITest",
         "email":"[VALIDEMAIL]",
         "timezone":"Europe/Amsterdam",
         "phoneNumber":"+31612345678",
         "locale":"nl",
         "cancellation_policy":"user_5"
    },
    "durationId": null,
    "answers": [],
    "participants": [],
    "locationType": null,
    "location": null
}

And this is the data being returned:

HTTP/1.1 500 InternalServerError
Transfer-Encoding: chunked
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: max-age=0, must-revalidate, private
Content-Type: text/html; charset=UTF-8
Date: Thu, 20 Jun 2024 08:11:51 GMT
Expires: Thu, 20 Jun 2024 08:11:51 GMT
Set-Cookie: PHPSESSID=86piljeql76j537th3l8vmtrd9; path=/; secure; HttpOnly
Server: nginx
    

    
        
        An Error Occurred: Internal Server Error
        
            body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
            .container { margin: 30px; max-width: 600px; }
            h1 { color: #dc3545; font-size: 24px; }
            h2 { font-size: 18px; }
        
</head>
<body>
    <div class="container">
        <h1>Oops! An Error Occurred</h1>
        <h2>The server returned a "500 Internal Server Error".</h2>

        <p>
            Something is broken. Please let us know what you were doing when this error occurred.
            We will fix it as soon as possible. Sorry for any inconvenience caused.
        </p>
    </div>
</body>

I have double-checked the eventType Id and cancellation policy to make sure those are existing ones, and I have tried various options for filling / not filling other fields, but the only difference seems to be that sometimes they will fail validation. Regardless of what I try I cannot get it to work succesfully.

I hope you will be able to help me figure out what is wrong.

Thanks in advance.

Nicholas Alias wrote:

fixed.

(Short original content)