---
title: "Set where the business works"
method: POST
path: "/v1/business/applications/{applicationId}/area"
tags: ["Business"]
---

# Set where the business works

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

## Request

- Base URL: `https://api.nogpets.com`
- URL: `https://api.nogpets.com/v1/business/applications/{applicationId}/area`
- 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 3. Sets the whole service area (each call replaces it) as proposed territories, PENDING until NogPets approves them.

## Request body

- ServiceAreaRequest
  - `suburbs` union[]
    - union
      - string
      - object
        - `name` string, required
        - `postalCode` string
  - `postalCodes` string[]
  - `center` object
    - `lat` number, required
    - `lng` number, required
  - `radiusKm` number
  - `centerAddress` string: Instead of center: a town, suburb or street in the business's country to measure radiusKm from, e.g. "Somerset West" or "Austin, TX".
  - `centerName` string: What to call the radius area, e.g. the town.

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