{
  "openapi": "3.1.1",
  "info": {
    "title": "ManagerServer | get-inventory-item-starting-balance",
    "version": "1.0.0+c6d1f1e3306702a9f3c52e59bee7a51638b30e7c"
  },
  "paths": {
    "/api4/inventory-item-starting-balance": {
      "get": {
        "parameters": [
          {
            "name": "Key",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Business",
            "in": "query",
            "description": "Name of business. If you are calling API from an extension running within IFRAME, then business does not have to be provided. Manager will automatically inject current business. This is useful when extension doesn't know business name which is typically the case.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryItemStartingBalance"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "InventoryItemStartingBalance": {
        "type": "object",
        "properties": {
          "inventoryItem": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "hasQtyToOnHand": {
            "type": "boolean"
          },
          "qtyOnHandLines": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/QtyOnHandLine"
            }
          },
          "hasQtyToReceive": {
            "type": "boolean"
          },
          "qtyToReceiveLines": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/QtyToReceiveLine"
            }
          },
          "hasQtyToDeliver": {
            "type": "boolean"
          },
          "qtyToDeliverLines": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/QtyToDeliverLine"
            }
          },
          "qtyOwned": { },
          "averageCost": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalCost": { },
          "transactionTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "uniqueName": {
            "type": [
              "null",
              "string"
            ]
          },
          "isBillableExpense": {
            "type": "boolean"
          },
          "isControlAccountForInvestments": {
            "type": "boolean"
          },
          "isWithholdingTaxPayablePayable": {
            "type": "boolean"
          },
          "isAccountsReceivable": {
            "type": "boolean"
          },
          "isAccountsPayable": {
            "type": "boolean"
          },
          "isCashAtBank": {
            "type": "boolean"
          },
          "isInterAccountTransfers": {
            "type": "boolean"
          },
          "isInventoryOnHand": {
            "type": "boolean"
          },
          "isControlAccountForCapitalAccounts": {
            "type": "boolean"
          },
          "isEmployeeClearingAccount": {
            "type": "boolean"
          },
          "isControlAccountForSpecialAccounts": {
            "type": "boolean"
          },
          "isControlAccountForFixedAssets": {
            "type": "boolean"
          },
          "isControlAccountForFixedAssetsAccumulatedDepreciation": {
            "type": "boolean"
          },
          "isControlAccountForIntangibleAssets": {
            "type": "boolean"
          },
          "isControlAccountForIntangibleAssetsAccumulatedAmortization": {
            "type": "boolean"
          },
          "hasCustomers": {
            "type": "boolean"
          },
          "hasInvestments": {
            "type": "boolean"
          },
          "hasSuppliers": {
            "type": "boolean"
          },
          "hasFixedAssets": {
            "type": "boolean"
          },
          "hasIntangibleAssets": {
            "type": "boolean"
          },
          "isProfitAndLossAccount": {
            "type": "boolean"
          },
          "hasExpenseClaimPayers": {
            "type": "boolean"
          },
          "taxCodeEnabled": {
            "type": "boolean"
          },
          "divisionEnabled": {
            "type": "boolean"
          },
          "projectEnabled": {
            "type": "boolean"
          },
          "canHaveCurrencyAmount": {
            "type": "boolean"
          },
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "timestamp": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "QtyOnHandLine": {
        "type": "object",
        "properties": {
          "inventoryLocation": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "qtyOnHand": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "QtyToDeliverLine": {
        "type": "object",
        "properties": {
          "customer": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "qtyToDeliver": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "QtyToReceiveLine": {
        "type": "object",
        "properties": {
          "supplier": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "qtyToReceive": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      }
    }
  }
}