---
title: "Archive locations."
method: POST
path: "/api/v4/locations/archive"
tags: ["Locations"]
---

# Archive locations.

`POST /api/v4/locations/archive`

Schedules one or more locations for archival at the end of the current billing cycle.

## Request body

- object
  - `input` ArchiveLocationsInput, required
    - `clientMutationId` string
    - `locationIds` string[], required

## Response `200`

Successful response

- ArchiveLocationsPayload
  - `clientMutationId` string
  - `archivedCount` integer, required
  - `locations` LocationSummaryType[]
    - `id` string, required
    - `databaseId` integer
    - `storeId` string
    - `name` string, required
    - `street` string
    - `city` string
    - `stateIso` string
    - `countryIso` string
    - `postalCode` string
    - `latitude` number, float
    - `longitude` number, float
    - `phone` string
    - `website` string
    - `status` 'ACTIVE' | 'ARCHIVED' | 'PENDING' | 'TEMPORARILY_CLOSED' | 'SCHEDULED_FOR_ARCHIVE' — Lifecycle states of a location.
    - `primaryGbpSiteCategoryId` string
    - `additionalGbpSiteCategoryIds` string[]
    - `serviceArea` ServiceAreaType[]
      - `businessType` string
      - `regionCode` string
      - `placeInfos` PlaceInfoType[]
        - `placeId` string, required
        - `placeName` string
    - `placeActionLinks` PlaceActionLinkType[]
      - `placeActionType` string, required
      - `uri` string, required
      - `isPreferred` boolean
      - `name` string
      - `providerType` string
      - `isEditable` boolean
      - `submissionStatus` string
      - `submissionMessage` string
      - `submissionCode` string
      - `lastSubmittedAt` string
    - `discoveredPlaceActionLinks` PlaceActionLinkType[]
      - `placeActionType` string, required
      - `uri` string, required
      - `isPreferred` boolean
      - `name` string
      - `providerType` string
      - `isEditable` boolean
      - `submissionStatus` string
      - `submissionMessage` string
      - `submissionCode` string
      - `lastSubmittedAt` string
  - `errors` MutationErrorType[]
    - `code` string
    - `message` string, required
    - `path` string[]

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server error

## Changes

> 4 revisions in range; 1 could not be searched.

- **2026-07-26** `f41a4d1dfdb8` — 1 warning
  - removed the request property `input/reason`

[Change history](https://skmtc.dev/listingsapi/apis/listings-api/changes/api/v4/locations/archive/post.md)

---

[API](https://skmtc.dev/listingsapi/apis/listings-api.md) · [All operations](https://skmtc.dev/listingsapi/apis/listings-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/listingsapi/listings-api/revisions/2d0f7a88fc45/schema)
