---
updatedAt: 2025-08-25T08:09:57.000Z
agentTools:
  projectIndex: https://rivhit-api.readme.io/llms.txt
---

# Item.Quantity

### Get the Quantity for an Item

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Get the Quantity for an Item",
    "version": "1.0.0"
  },
  "paths": {
    "/online/RivhitOnlineAPI.svc/Item.Quantity": {
      "post": {
        "summary": "Item.Quantity",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "api_token": {
                    "type": "string",
                    "format": "uuid",
                    "example": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
                    "description": "Rivhit Merchant API Identifier.\n\n**Default:** No\n",
                    "nullable": false,
                    "deprecated": false
                  },
                  "item_id": {
                    "type": "integer",
                    "example": 1021,
                    "description": "Filter by Item Id.\n\n**Range:** 0 to 9999999\n**Default:** No\n",
                    "nullable": false,
                    "deprecated": false
                  },
                  "storage_id": {
                    "type": "integer",
                    "example": 1,
                    "description": "Storage Id Serial Number (Rivhit system).\n\n**Range:** 0 to 999999\n**Default:** Rivhit storage settings\n",
                    "nullable": true,
                    "deprecated": false
                  },
                  "for_date": {
                    "type": "string",
                    "format": "date",
                    "example": "25-08-2025",
                    "description": "Display Item Quantity From Specific Date.\n\n~ Date format DD-MM-YY or DD/MM/YYYY\n**Length:** 1 to 10\n**Default:** No Date Filter\n",
                    "nullable": true,
                    "deprecated": false
                  }
                },
                "required": [
                  "api_token",
                  "item_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success - Item Quantity Returned",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "description": "The Response Error/Status Number (0 = Success)."
                    },
                    "client_message": {
                      "type": "string",
                      "description": "The Client Error Message."
                    },
                    "debug_message": {
                      "type": "string",
                      "description": "The Response Error Message."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "quantity": {
                          "type": "number",
                          "format": "double",
                          "description": "The Quantity of Items in the Specific Warehouse (storage)."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "error_code": "0,",
                  "client_message": "",
                  "debug_message": "",
                  "data": {
                    "quantity": 33
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Request Error"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 500,
                      "description": "Error code of the response."
                    },
                    "client_message": {
                      "type": "string",
                      "example": "הפריט אינו קיים",
                      "description": "The Client Error Message."
                    },
                    "debug_message": {
                      "type": "string",
                      "example": "-24 : ITEM_NOT_EXISTS",
                      "description": "The Response Error Message."
                    },
                    "data": {
                      "type": "array",
                      "example": null,
                      "description": "Error Data."
                    }
                  }
                },
                "example": {
                  "error_code": 500,
                  "client_message": "הפריט אינו קיים",
                  "debug_message": "-24 : ITEM_NOT_EXISTS",
                  "data": null
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.rivhit.co.il/"
    }
  ]
}
```