Out Of Stock
Storefront Out of Stock API endpoints
Endpoints
Store the out of stock product or answer.
Request body
Store out of stock body
emailoptionalstringquantityoptionalintegeranswer_idoptionalintegerproduct_idoptionalintegerReturnsOutOfStock
Out of stock object response
Error responses
400objectThe shop turned off out-of-stock notifications, the shop plan does not include them or has used up its allowance for the current billing period, or the product is a configurable bundle.
422objectThe body fails validation. email is missing or not a valid email address; quantity is missing, not an integer, below 1, or above 1 for a subscription product when the shop turns off the subscription quantity selector; answer_id is not an existing survey answer; or product_id belongs to another shop.
Response