BizKitHub
PUBLIC_PRODUCT_OUT_OF_STOCK

Product is out of stock.

Z BizKitHub Docs, reference chybových kódů API

Názvy a popisy kódů udržujeme v angličtině.

HTTP 409Veřejné API
The order asks for more pieces than the warehouse has available (stock minus active reservations). Only warehouses that do not allow negative stock are checked. The order was not created.

Jak to vyřešit

  1. 1

    Reload the cart and product availability, lower the quantity or remove the item, then submit again.

Ukázka odpovědi

API odpoví statusem HTTP 409 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.

application/json
{
  "state": "error",
  "code": 409,
  "message": "Product is out of stock.",
  "errorCode": "PUBLIC_PRODUCT_OUT_OF_STOCK",
  "hint": "The order asks for more pieces than the warehouse has available (stock minus active reservations). Only warehouses that do not allow negative stock are checked. The order was not created.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_PRODUCT_OUT_OF_STOCK"
}