Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAL-3742] smsReminderNumber throws error #15030

Open
GeneralKugelBlitz opened this issue May 14, 2024 · 2 comments
Open

[CAL-3742] smsReminderNumber throws error #15030

GeneralKugelBlitz opened this issue May 14, 2024 · 2 comments
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync
Milestone

Comments

@GeneralKugelBlitz
Copy link

GeneralKugelBlitz commented May 14, 2024

Issue Summary

Using smsReminderNumber throws error

{
  "message": "Legacy Props: smsReminderNumber. They can't be used with `responses`"
}

Steps to Reproduce:

Please use this curl to reproduce.

curl -X POST https://api.cal.com/v1/bookings?apiKey={apikey}
-H "Content-Type: application/json"
-d '{
"eventTypeId": 4,
"start": "2024-05-17T14:00:00-04:00",
"responses": {
"name": "John",
"email": "sean@cal.com",
"location": "Calcom HQ"
},
"metadata": {
"phone": "+1234334235"
},
"timeZone": "America/Chicago",
"language": "en",
"title": "Debug - sean",
"description": "bdcbdib",
"smsReminderNumber": "+14159076135"
}'

CAL-3742

Copy link

dosubot bot commented May 14, 2024

The error you're encountering is because smsReminderNumber is considered a legacy property and cannot be used together with the responses field in your API request to Cal.com. To fix this issue, you should either remove the smsReminderNumber from your request when using responses or avoid using responses if you need to include legacy properties like smsReminderNumber.

The smsReminderNumber is intended for sending SMS reminders and should be handled differently with the new API structure. If you're looking to include SMS reminder functionality with the responses field, the system now looks for an attendee match based on the email provided in responses for sending SMS reminders, rather than directly using smsReminderNumber.

For more detailed handling of SMS reminders with the new API structure, you might need to adjust your implementation to align with how Cal.com now processes booking data and attendee information for SMS reminders.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working labels May 14, 2024
@GeneralKugelBlitz
Copy link
Author

then please change your api reference to show these changes and explain how to add attendees with phone numbers etc. Thanks

@PeerRich PeerRich added this to the v4.2 milestone May 16, 2024
@PeerRich PeerRich added the Medium priority Created by Linear-GitHub Sync label May 16, 2024
@PeerRich PeerRich changed the title smsReminderNumber throws error [CAL-3742] smsReminderNumber throws error May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants