Working Hours
vGrubs calls youPOST
{your_base_url}/merchants/working-hoursvGrubs calls this endpoint when working hours change on our side, to ensure no orders are placed outside of the merchant's operating hours.
vGrubs also sends the hours about 2 seconds after a store is connected. To receive them again at any time, call Sync Schedule (POST /partner/sync-schedule/{webhookPath}).
Request body
merchant_idstringrequired
The partner's store ID.
business_hoursarrayrequired
Weekly business hours schedule.
delivery_hoursarrayrequired
Weekly delivery hours schedule. Same structure as business_hours.
Responses
200OK
successboolean
Whether the working hours were successfully updated.
400Bad Request
Missing or invalid fields in the request body.
401Unauthorized
Invalid or missing API key.