BizKitHub
PUBLIC_PRODUCT_OUT_OF_STOCK

Product is out of stock.

Z BizKitHub Docs, referencia chybových kódov API

Názvy a popisy kódov udržiavame v angličtine.

HTTP 409Verejné 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.

Ako to vyriešiť

  1. 1

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

Ukážka odpovede

API odpovie statusom HTTP 409 a telom vo formáte JSON. Porovnávajte errorCode, nie message. Správy sa môžu preformulovať, kódy zostávajú rovnaké.

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"
}