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.
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
}
]
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.
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
}
]
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.
DELETE https://api.bigcommerce.com/stores/{{store_hash}}/v3/inventory/locations?location_id:in=1,2
X-Auth-Token: {{access_token}}
Accept: application/json
7.3 Delete a pickup method
To delete a pickup method, send a request to the Delete pickup methods endpoint.
DELETE https://api.bigcommerce.com/stores/{{store_hash}}/v3/pickup/methods?id:in=1,2
X-Auth-Token: {{access_token}}
Accept: application/json