calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.21k stars 7.53k forks source link

Sending SMS via the API is not working. #16253

Closed StibnIT closed 1 week ago

StibnIT commented 3 weeks ago

Issue Summary

When I book an appointment through the calendar page (GUI), I receive the SMS. However, when I send a POST request via the API, it is executed correctly, and I also receive the email confirmation, but no SMS is sent.

My json: { "eventTypeId": , "userId": , "start": "", "end": "", "responses": { "name": "name", "email": "mail@gmail.com", "Mobilnummer": "+135463546", "notes": "", "metadata": {}, "location": "Google Meet", "smsReminderNumber": "+3423467" }, "metadata": {}, "timeZone": "Europe/Berlin", "language": "de", "title": "Termin mit ....", "description": null, "status": "PENDING" }

Steps to Reproduce

1.´testet in cal.com gui sms comes

  1. Build API and send post req. sms does not come

Expected behavior

The SMS should be sent after a successful API POST request.

Other information

No response

Screenshots

No response

Environment

Desktop (please complete the following information)

- cal.com gui
- api post req. at make.com
sameersuman573 commented 3 weeks ago

Please assign me sir

sameersuman573 commented 3 weeks ago

iisue iisue sir i am not getting the option of assigning phone number

sameersuman573 commented 3 weeks ago

[Uploading Screenshot from 2024-08-18 12-35-26.png…]() The receipt Iteslf write that "We sent an email with a calendar invitation with the details to everyone." so there no talk about the phone number

sameersuman573 commented 3 weeks ago

Screenshot from 2024-08-18 12-35-26 check here

StibnIT commented 3 weeks ago

Uploading Screenshot from 2024-08-18 12-35-26.png… The receipt Iteslf write that "We sent an email with a calendar invitation with the details to everyone." so there no talk about the phone number

If you have the paid version, you have the function to create a workflow to automatically send an email with the appointment confirmation, then you get this field here:

image

That is the "smsReminderNumber" field. And if i book it from the booking page that works, but from the api not.

vijayraghav-io commented 3 weeks ago

@StibnIT , can you try the payload like this having smsReminderNumber outside responses object

New Booking example: value: { "eventTypeId": 2323232, "start": "2023-05-24T13:00:00.000Z", "end": "2023-05-24T13:30:00.000Z", "responses":{ "name": "Hello Hello", "email": "hello@gmail.com", "metadata": {}, "location": "Calcom HQ", }, "timeZone": "Europe/London", "language": "en", "title": "Debugging between Syed Ali Shahbaz and Hello Hello", "description": null, "status": "PENDING", "smsReminderNumber": null }

StibnIT commented 3 weeks ago

I Have This Error: Error: 400 Bad Request {"message":"custom in 'responses': {name}error_required_field; Legacy Props: smsReminderNumber. They can't be used with responses"}

@StibnIT , can you try the payload like this having smsReminderNumber outside responses object

New Booking example: value: { "eventTypeId": 2323232, "start": "2023-05-24T13:00:00.000Z", "end": "2023-05-24T13:30:00.000Z", "responses":{ "name": "Hello Hello", "email": "hello@gmail.com", "metadata": {}, "location": "Calcom HQ", }, "timeZone": "Europe/London", "language": "en", "title": "Debugging between Syed Ali Shahbaz and Hello Hello", "description": null, "status": "PENDING", "smsReminderNumber": null }

CarinaWolli commented 1 week ago

{ "eventTypeId": , "userId": , "start": "", "end": "", "responses": { "name": "name", "email": "mail@gmail.com", "Mobilnummer": "+135463546", "notes": "", "metadata": {}, "location": "Google Meet", "smsReminderNumber": "+3423467" }, "metadata": {}, "timeZone": "Europe/Berlin", "language": "de", "title": "Termin mit ....", "description": null, "status": "PENDING" }

This is working now. As shown here, smsReminderNumber needs to be inside responses