Using Square API, how can I pause online order?

I’m developing the website using Square API for a restaurant, but how can I control if the location is taking online orders or not? Let’s say that they want to pause it or they closed for several days, I know there’s a feature in the Dashboard that actually pauses square site orders, but how can we catch the event in the API? is there any endpoint?

At this time the ability to control whether or not a Square account is accepting online orders with our APIs isn’t currently possible. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face: