Retire merchant configuration

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 endpoint.

Example request: Update locations
1PUT https://api.bigcommerce.com/stores/{{store_hash}}/v3/inventory/locations
2X-Auth-Token: {{access_token}}
3Content-Type: application/json
4Accept: application/json
5
6[
7 {
8 "id": 2,
9 "enabled": false
10 }
11]

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 endpoint.

Example request: Update locations
1PUT https://api.bigcommerce.com/stores/{{store_hash}}/v3/inventory/locations
2X-Auth-Token: {{access_token}}
3Content-Type: application/json
4Accept: application/json
5
6[
7 {
8 "id": 2,
9 "storefront_visibility": false
10 }
11]

7.2.3 Delete a location

To delete a location, send a request to the Delete locations endpoint.

If a location has inventory that you want to keep, use Inventory adjustments to reassign the inventory to a different location before deleting the location.

For locations that you can’t delete, see the Delete locations endpoint.

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

7.3 Delete a pickup method

To delete a pickup method, send a request to the Delete pickup methods endpoint.

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