My Business
5.7K members online now
5.7K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Getting error for "Closed" value in the Time period for GMB API (V3)

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Team,

 

We are getting update error while passing value as "Closed" in the time period for regular hours. In the older version it was accepted and the details got updated successfully. Please let me know what is procudure do we need to follow to overcome the issue.

 

{
 
"error": {
   
"status": "INVALID_ARGUMENT",
   
"message": "Request contains an invalid argument.",
   
"code": 400,
   
"details": [
     
{
       
"errorDetails": [
         
{
           
"field": "regular_hours.periods.open_time",
           
"message": "Time field must follow hh:mm format",
           
"code": 3,
           
"value": "Closed"
         
}
       
],
       
"@type": "type.googleapis.com/google.mybusiness.v3p1.ValidationError"
     
}
   
]
 
}
}

Thanks & Regards

Karthik Jilla

1 Expert replyverified_user

Re: Getting error for "Closed" value in the Time period for GMB API (V3)

Google Employee
# 2
Google Employee

Hi @Jilla K,

 

The way Google My Business API works with operating hours is that you should not specify hours for the days the location is closed. For example, if your location opens from Monday to Friday, just include hours for these days only.

 

Thanks,

The Google My Business API team