Inventory
Get Inventory Settings
GET https://api.bigcommerce.com/stores/{store_hash}/v3/settings/inventoryRequest
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- channel_id in query - integerChannel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.
example
Response
Body
dataobject
example
Update Inventory Settings
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/settings/inventoryRequest
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
- channel_id in query - integerChannel ID to use for channel-specific settings. If omitted, you will interact with the global settings only.
Body
product_out_of_stock_behaviorstring
Describes storefront behavior when product is out of stock.Allowed: do_nothing | hide_product | hide_product_and_accessible | hide_product_and_redirect
option_out_of_stock_behaviorstring
Describes storefront behavior when variant is out of stock.Allowed: do_nothing | hide_option | label_option
update_stock_behaviorstring
Describes when stock levels are updated.
Global settings apply when inventory changes through a manual order. Settings for a channel apply when inventory changes through an order in a channel. These settings affect webhooks that trigger from order-related events, including product, SKU, and inventory webhooks.
Allowed: order_placed | order_completed_or_shipped
edit_order_stock_adjustmentboolean
Describes whether stock levels automatically adjust when you edit an order.
Global settings apply when inventory changes through a manual order. Settings for a channel apply when inventory changes through an order in a channel. These settings affect webhooks that trigger from order-related events, including product, SKU, and inventory webhooks.
refund_order_stock_adjustmentboolean
Describes whether stock levels automatically adjust when you refund or cancel an order.
Global settings apply when inventory changes through a manual order. Settings for a channel apply when inventory changes through an order in a channel. These settings affect webhooks that trigger from order-related events, including product, SKU, and inventory webhooks.
stock_level_displaystring
Describes whether a storefront displays stock levels.Allowed: dont_show | show | show_when_low
show_pre_order_stock_levelsboolean
Describes whether pre-order stock levels are shown.Example: trueDefault: false
example
Response
Body
dataobject