> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

## 7.0 Terminate configuration as a merchant

It is possible to terminate the merchant configuration that supports *Buy Online, Pick up in Store* .
To do so, you can reassign inventory, disable a location and its storefront visibility, and delete pickup methods.

### 7.1 Reassign inventory from one location to another

There is no dedicated endpoint for reassigning inventory from one location to another. Instead, use the existing inventory API endpoints.

### 7.2 Location

#### 7.2.1 Disable a location

To disable a location, send a request to the [Update locations](/developer/api-reference/rest/admin/management/inventory/locations/update-locations) endpoint.

#### Request

**`Example request: Update locations`**

```http title="Example request: Update locations"
PUT https://api.bigcommerce.com/stores/{{store_hash}}/v3/inventory/locations
X-Auth-Token: {{access_token}}
Content-Type: application/json
Accept: application/json

[
  {
    "id": 2,
    "enabled": false
  }
]
```

#### Response

**`Example response: Update locations`**

```json title="Example response: Update locations"
{
  "transaction_id": "e81ada43-fc10-41a0-9a61-b25d8223a71c"
}
```

#### 7.2.2 Disable a location’s storefront visibility

Storefront visibility is currently a shopper-facing property of a location.
If it is set to false, then details about the location (e.g. description, operating hours) on the location details page and inventory quantities at that location will be excluded from the "available to sell" quantity on the storefront.
If it is set to true, then details about the location on the location details page and inventory quantities at that location will be included in the "available to sell" quantity on the storefront.

To disable a location’s visibility on the storefront, send a request to the [Update locations](/developer/api-reference/rest/admin/management/inventory/locations/update-locations) endpoint.

#### Request

**`Example request: Update locations`**

```http title="Example request: Update locations"
PUT https://api.bigcommerce.com/stores/{{store_hash}}/v3/inventory/locations
X-Auth-Token: {{access_token}}
Content-Type: application/json
Accept: application/json

[
  {
    "id": 2,
    "storefront_visibility": false
  }
]
```

#### Response

**`Example response: Update locations`**

```json title="Example response: Update locations"
{
  "transaction_id": "e81ada43-fc10-41a0-9a61-b25d8223a71c"
}
```

#### 7.2.3 Delete a location

To delete a location, send a request to the [Delete locations](/developer/api-reference/rest/admin/management/inventory/locations/delete-locations) endpoint.

If a location has inventory that you want to keep, use [Inventory adjustments](/developer/api-reference/rest/admin/management/inventory) to reassign the inventory to a different location before deleting the location.

For locations that you can't delete, see the [Delete locations](/developer/api-reference/rest/admin/management/inventory/locations/delete-locations) endpoint.

#### Request

**`Example request: Delete locations`**

```http title="Example request: Delete locations"
DELETE https://api.bigcommerce.com/stores/{{store_hash}}/v3/inventory/locations?location_id:in=1,2
X-Auth-Token: {{access_token}}
Accept: application/json
```

#### Response

**`Example response: Delete locations`**

```json title="Example response: Delete locations"
No Content
```

### 7.3 Delete a pickup method

To delete a pickup method, send a request to the [Delete pickup methods](/developer/api-reference/rest/admin/management/pickup/pickup-methods/delete-pickup-methods) endpoint.

#### Request

**`Example request: Delete pickup methods`**

```http title="Example request: Delete pickup methods"
DELETE https://api.bigcommerce.com/stores/{{store_hash}}/v3/pickup/methods?id:in=1,2
X-Auth-Token: {{access_token}}
Accept: application/json
```

#### Response

**`Example response: Delete pickup methods`**

```http title="Example response: Delete pickup methods"
No Content
```