---
title: "Set the business's operating hours"
method: POST
path: "/v1/business/applications/{applicationId}/hours"
tags: ["Business"]
---

# Set the business's operating hours

`POST /v1/business/applications/{applicationId}/hours`

## Request

- Base URL: `https://api.nogpets.com`
- URL: `https://api.nogpets.com/v1/business/applications/{applicationId}/hours`
- 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:write`)
  - HTTP bearer

Step 5. One working week for the whole business (every van, walker and sitter, and any added later without their own), or for the resources named in `resourceIds`.

## Request body

- HoursRequest
  - `week` Week, required: Working hours per weekday, local time. Leave out days off.
    - `mon` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
    - `tue` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
    - `wed` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
    - `thu` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
    - `fri` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
    - `sat` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
    - `sun` object[]
      - `start` string, required: A local time of day, HH:MM.
      - `end` string, required: A local time of day, HH:MM.
  - `resourceIds` string[]: Only these resources (ids from add_resources). Left out: the whole business.

## Response `200`

The application

- BusinessApplication
  - `applicationId` string, required
  - `status` 'DRAFT' | 'SUBMITTED' | 'APPROVED' | 'REJECTED', required: DRAFT while it's being filled in; SUBMITTED while NogPets reviews it; APPROVED (the business exists, bizId) or REJECTED (reviewNote says why; editing it makes it a DRAFT again).
  - `business` object, required
  - `listing` object, nullable
    - `id` string
    - `name` string
    - `town` string
  - `services` object[]
  - `areas` object[]: Proposed territories, PENDING until approved.
  - `overlaps` object[]
    - `area` string
    - `territory` string
    - `grantedTo` string
  - `resources` object[]
  - `invites` object[]
  - `payfast` object, nullable
    - `merchantId` string
    - `split` boolean
    - `status` string
  - `whatsappOptIn` boolean
  - `plan` unknown
  - `checklist` ChecklistItem[], required
    - `id` 'details' | 'services' | 'area' | 'resources' | 'payfast' | 'payout' | 'staff' | 'listing', required
    - `label` string, required
    - `done` boolean, required
    - `required` boolean, required
    - `detail` string
  - `readyToSubmit` boolean, required
  - `reviewNote` string: Why NogPets asked for changes.
  - `bizId` string: The business, once approved.
  - `possibleListings` object[]: Directory listings that may be this business: offer to claim one.
  - `payfastInfo` string
  - `summary` string
  - `statusUrl` string, uri, nullable: A page the person can open to see the checklist and status.
  - `welcomeUrl` string, uri: What NogPets offers businesses, for the person to read.
  - `next` string, required: What to do now.

## 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)
