Configure products and SKUs for in-store pick up

The onlineOnly property is a Boolean that specifies whether an item is allowed to be picked up.

If the property is set to false (default), the item can be picked up; if set to true, the item cannot be picked up, but can be shipped or downloaded.

You can set the property on both products and SKUs. If you set onlineOnly to true on a product, all its SKUs automatically inherit the setting; you cannot override the setting for individual SKUs.

For SKU bundles and configurable SKUs, Commerce validates the onlineOnly value only for the main SKU, not for any of the SKUs added to the bundle or .configurable SKU. See Integrate with an External Product Configurator and Create and work with SKUs for more information about creating these types of SKUs.

To set properties on a product, issue a PUT request to the /ccadmin/v1/products/{id} endpoint on the administration server.

The following sample request sets the onlineOnly property for a product:

PUT /ccadmin/v1/products/x0215 HTTP/1.1
Content-Type: application/json
Authorization: Bearer <access_token>

{
  "onlineOnly": true

}

To set properties on a SKU, issue a PUT request to the /ccadmin/v1/skuProperties/{id} endpoint on the administration server.

The following sample request sets the onlineOnly property for a SKU whose parent product’s onlineOnly property is set to false:

PUT /ccadmin/v1/skuProperties/sku0215a HTTP/1.1
Content-Type: application/json
Authorization: Bearer <access_token>

{
  "onlineOnly": true

}