Set/Activate a temporary closing for the store
const url = 'https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/scheduling/stores/your-store-id-123/closing';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"until":"2024-12-20T10:00:00+01:00"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/scheduling/stores/your-store-id-123/closing \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "until": "2024-12-20T10:00:00+01:00" }'Allows temporarily closing a store until a specified future date and time. This will override the normal operating hours defined in the store’s schedule, forcing the store to be closed until the specified date and time.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Unique identifier of the store.
Example
your-store-id-123Request Bodyrequired
Section titled “Request Bodyrequired”Date and time until which the store will be closed.
Request body for setting a temporary store closing.
object
The date and time (with UTC offset) until which the store will be temporarily closed. ISO-8601 format.
Example
2024-12-20T10:00:00+01:00Responses
Section titled “Responses”Operation successful. Temporary closing has been set.
Bad Request (e.g., invalid payload, date in the past, invalid storeId format).
object
Error message.
Examplegenerated
{ "error": "example"}Unauthorized (invalid API token).
Forbidden (API token does not have permissions for this store or action).
Not Found (store with the specified storeId was not found).
Internal Server Error (unexpected error on Glovo’s side or in this proxy).