This method is used to obtain information about a Stock


This method has the path /catalog/<version>/ and follows the MicroBase API calling conventions.

Argument Required Type Example Description
productId yes String HJ4g4fACrH The Product id to get info on.
warehouseId yes String 001 The Warehouse id to get info on.


Returns a Stock object:

    "ok": true,
    "stock": {
        "id": "BkKu-nuu",
        "productId": "HJ4g4fACrH",
        "warehouseId": "001",
        "quantityInStock": 100,
        "quantityReserved": 0


Expected errors that this method could return. Some errors return additional data.

Error Data Description
stock_not_found - The Stock was not found


curl --request GET \
  --url http://localhost:3000/services/catalog/v1/ \
  --header 'authorization: Bearer xxxxx...' \
  --header 'accept: application/json' \
  --header 'content-type: application/json'