PUBLIC_PRODUCT_OUT_OF_STOCKProduct is out of stock.
Z BizKitHub Docs, dokumentacja kodów błędów API
Nazwy i opisy kodów prowadzimy po angielsku.
HTTP 409Publiczne 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 rozwiązać
- 1
Reload the cart and product availability, lower the quantity or remove the item, then submit again.
Przykładowa odpowiedź
API odpowiada statusem HTTP 409 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.
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"
}