[#868] Multiple bookings with multiple service providers

Migrated from Redmine #868 | Author: Antonio Graterol
Status: New | Priority: Normal | Created: 2022-04-06


Hi Guys, I hope you’re doing great.

I had developed for the company I work a reporting system based on the data stored in your platform, the thing is that I thought of a situation that never happened before but I like to prepare the system for it.

I some cases a client can book multiple sessions at once, the problem comes when by some reason the client decides to change of service provider, so besides of having more than one booking code in one invoice there also will be multiple service providers.

I attach a example picture of an object having multiple bookings but one service provider.

I use this URL ‘https://user-api-v2.simplybook.me/admin/bookings?page=&on_page=100&filter[providers]=’ to make and API call to get the service providers associated, so my question to solve is, Where and how this object will hold the data for the different service providers? Will it be an array of objects like in the “lines” attributes on the picture attached?

Antonio Graterol wrote:

Alternative to see the attached image https://ibb.co/5xWSVmM