Streaming live at 10am (PST)

Update current collection item with js on live site?

Hi guys,

I have an idea to control booking flow for a cafe order ahead pick up site. They were overwhelmed at peak last week. The site would present a list of day time slots for Friday and sat. A customer would select a slot which would post an api call to update the item to unavailable. The customer is redirected to the page with add to cart menu items.

Has anyone implemented button api calls bound to the current cms item? Ideally I would want the selected slot passed to the checkout / cart (snipcart in my case).

Time slots would be managed by Integromat scenarios, adding future slots when required.