---
title: "Open times across the business's vans and walkers"
method: POST
path: "/v1/business/times"
tags: ["Run"]
---

# Open times across the business's vans and walkers

`POST /v1/business/times`

## Request

- Base URL: `https://api.nogpets.com`
- URL: `https://api.nogpets.com/v1/business/times`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.nogpets.com/oauth/authorize`, token URL `https://api.nogpets.com/oauth/token`, scopes: `business:manage`)
  - HTTP bearer

Open times inside working hours for a visit of the business: from the pets and services (priced and timed by the business's own menu), a past booking to repeat, or a duration. South African businesses only (else NOT_AVAILABLE_IN_COUNTRY). Needs business:manage; the signed-in person must be an owner, manager or staff member of an approved NogPets business (bizId only if they run more than one).

## Request body

- BizTimesRequest
  - `bizId` string
  - `category` string: A service line id: grooming, walking or sitting.
  - `fromBookingId` string: Repeat this booking: same pets, services and length.
  - `clientId` string: With pets[].petKey: the client's known pets.
  - `pets` object[]
    - `petKey` string: A known pet of the client (get_client).
    - `name` string: A new pet's name.
    - `type` 'DOG' | 'CAT'
    - `weightKg` number
    - `coat` 'SHORT' | 'MEDIUM' | 'LONG'
    - `serviceIds` string[]: Service ids from list_services; exactly one PRIMARY plus any EXTRAs of the same line. A package id (a line's `packages`) stands for its main service and extras.
  - `durationMin` integer: Or just a length, in minutes.
  - `resourceId` string
  - `from` string: A local date, YYYY-MM-DD.
  - `to` string: A local date, YYYY-MM-DD.
  - `windowStart` string: A local time of day, HH:MM.
  - `windowEnd` string: A local time of day, HH:MM.

## Response `200`

OK

- BizTimes
  - `business` BizRef
    - `bizId` string
    - `name` string
    - `role` string: owner, manager or crew (staff).
    - `country` string
    - `countryName` string
    - `currency` string
    - `timezone` string
    - `canTakeBookings` boolean: False outside South Africa for now: bookings there aren't taken through NogPets.
  - `category` string
  - `durationMin` integer
  - `price` string
  - `priceCents` integer
  - `days` object[], required
    - `date` string
    - `label` string
    - `slots` object[]
      - `start` string
      - `time` string
      - `resourceId` string
      - `resource` string
  - `note` string

## Other responses

- `400`: The input is wrong (`INVALID_ARGUMENT`, or a pricing code such as `ONE_PRIMARY`, `PET_TYPE`, `UNKNOWN_SERVICE`).
- `401`: No token, or it's expired or revoked. The `WWW-Authenticate` header points at the resource metadata.
- `403`: The token lacks a scope (`INSUFFICIENT_SCOPE`, with `details.scope`).
- `404`: Not found, or not the person's.
- `409`: A rule said no: `NO_COVERAGE`, `NO_AVAILABILITY`, `SLOT_TAKEN`, `TOO_LATE`, `CONFIRM_REQUIRED` (with `details.summary`), `NOTHING_TO_PAY`, `SHOP_OFF`, `STOCK`, `SHIPPING`, `DISCOUNT`, `CASH`, `FAILED_PRECONDITION`; business sign-up: `UNDER_REVIEW`, `APPROVED`, `NOT_READY`, `TOO_MANY`, `LISTING_TAKEN`, `PAYFAST_ZA_ONLY`. `NO_COVERAGE` carries `details.leadId`, `details.message` (tell the person) and `details.next`.

---

[API](https://skmtc.dev/nogpets/apis/nogpets-api.md) · [All operations](https://skmtc.dev/nogpets/apis/nogpets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nogpets/apis/nogpets-api/revisions/a202c1012173?raw)
