Skip to main content
POST
/
business
/
{business_id}
/
more_hours
Set more hours for your business
curl --request POST \
  --url https://api.partoo.co/v2/business/{business_id}/more_hours \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  --data '{
  "more_hours": [
    {
      "gmb_id": "KITCHEN",
      "value": {
        "monday": [],
        "tuesday": [],
        "wednesday": [],
        "thursday": [],
        "friday": [],
        "saturday": [
          "08:00-15:00",
          "18:00-23:00"
        ],
        "sunday": [
          "08:00-15:00",
          "18:00-23:00"
        ]
      }
    },
    {
      "gmb_id": "BRUNCH",
      "value": null
    }
  ]
}'
{
  "status": "success",
  "id": "545f7bf982efa41a496379d2"
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Path Parameters

business_id
string
required

Business id.

It may be replaced by c-{code} where code is the store code, which should be unique per organization. This can be used only for ORG_ADMIN, GROUP_MANAGER and BUSINESS_MANAGER users.

Body

application/json
more_hours
object[]

Array containing the more hours values to update. Grouped by More Hour ID. Only More Hour IDs included in the body will be updated.

Example:
[
{
"gmb_id": "KITCHEN",
"value": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": ["08:00-15:00", "18:00-23:00"],
"sunday": ["08:00-15:00", "18:00-23:00"]
}
},
{ "gmb_id": "BRUNCH", "value": null }
]

Response

OK

status
string

Status of the request. Should say "success" unless something unexpected went wrong.

Example:

"success"

id
string

ID of the business that was just updated.

Example:

"545f7bf982efa41a496379d2"