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

Fetching bookings not fetching the ones belonging to a team #14947

Open
tomasmarenco opened this issue May 8, 2024 · 3 comments
Open

Fetching bookings not fetching the ones belonging to a team #14947

tomasmarenco opened this issue May 8, 2024 · 3 comments
Labels
api area: API, enterprise API, access token, OAuth 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync teams area: teams, round robin, collective, managed event-types

Comments

@tomasmarenco
Copy link

tomasmarenco commented May 8, 2024

Issue Summary

I have currently 3 event types that belong to my user only. Also, i have an event type that belongs to a team.
The problem i am facing is that when making a request to get the bookings,i am not getting all of them.
There are a few missing and those missing belong to an event of a team.
I tried creating different users to try and see if i could find something in common and this didn't all the time.
For a user that I created yesterday, when i create some bookings for a team, i see them when fetching the total bookings.
I would like to know if something like this has ever happened before.
Could it have something to do with the payment that one has to make in order to access to the team features?

My guess is that something like this happened:

  • Created my original account
  • Made a payment to access to the team features
  • Booked some meetings for me and my team
  • When getting the bookings i get all of them (my team meetings and my personal meetings)
  • Stopped paying or rejected the payment
  • My team is still there so i book another meeting for the team.
  • Now that i am not paying, the team booking doesn't appear when i get all the bookings.

Does that have something to do?

Everything i did i did it with Postman (creating bookings, searching for them, etc).
Yes, i am passing the apiKey in the URL. Is there maybe a filter that i could add in the request to get only the team ones? Is there a limit for the bookings that i can get? Does it have something to do with the payment? Any other idea?

Thank you very much!

@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth teams area: teams, round robin, collective, managed event-types labels May 8, 2024
Copy link

dosubot bot commented May 8, 2024

It appears the issue with not fetching team bookings might be linked to the subscription status change for team features. When your team feature subscription was active, you had access to all bookings, including team events. However, after the subscription ended, access to team bookings seems to have been restricted.

To address this, you should:

  1. Verify the API Key: Ensure the API key used is valid and has the necessary permissions to access team bookings.
  2. Check Subscription Status: Access to team bookings might be limited by your current subscription status. Adjusting your subscription or contacting support could resolve this.
  3. Review API Request: Double-check the API request in Postman for any errors and ensure the API key is correctly included.
  4. Contact Support: If the issue persists, reaching out to support could clarify any account or subscription-specific restrictions.

Regarding filters for team bookings or limits on the number of bookings you can fetch, the API differentiates team bookings based on the teamId associated with the API key. There is also a limit on the number of bookings that can be fetched, which is determined by the IntervalLimit configurations. Adjusting these configurations can change the booking limits.

If you need further assistance or have more questions, feel free to ask.

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.

@tomasmarenco
Copy link
Author

tomasmarenco commented May 9, 2024 via email

Copy link

dosubot bot commented May 9, 2024

To address the issue of some team bookings not appearing in your API request, consider using the userId query parameter to specify the IDs of team members whose bookings you want to fetch. For example, if you're trying to fetch bookings for team members with user IDs 2, 3, and 4, your request URL should look something like this:

https://api.cal.com/v1/bookings?apiKey=[APIKEY]&userId=[2,3,4]

Make sure to replace [APIKEY] with your actual API key and [2,3,4] with the actual user IDs. This approach should help ensure that you're fetching all relevant bookings, including those belonging to a team.

If you continue to face issues, it's important to check the response of your API request for any specific error messages or status codes. These could provide further insights into why some bookings are not being fetched as expected.

Additionally, it's worth noting that there have been recent updates to the system, including new approaches to fetching bookings and new API endpoints. These changes might affect how bookings are fetched, especially for team events. If the problem persists, reviewing these updates and adjusting your request accordingly might be necessary.

Remember, there's no explicitly defined limit in the API documentation for the number of bookings that can be returned in a single request, so the issue is unlikely to be related to hitting a maximum limit.

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.

@ciaranha ciaranha added 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync labels May 14, 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 teams area: teams, round robin, collective, managed event-types
Projects
None yet
Development

No branches or pull requests

2 participants