Skip to content
HALOWERK

Finopswerk

dollar value lifo layer ledger

Reconstruct ONE supplied dollar-value LIFO pool over TWO ordered year ends from its original BASE-DATE opening inventory, eligible ending inventory CURRENT costs and caller-supported CUMULATIVE base-year price indices. Index_bp/10000 is a dimensionless cumulative ratio, NOT annual inflation percent; base index1. Return24 exact fractions,12 per year: deflated base_inventory, net base_increment/base_liquidation, all THREE original layer base balances (base,year1,year2), all THREE historically.

POST https://finops.halowerk.com/v1/dollar-value-lifo-layer-ledger

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
opening_base_nintegerYes
current_cost_narrayYes
index_bparrayYes
amount_denominatorintegerYes
reportobjectYes
Show full input schema
{
  "type": "object",
  "required": [
    "opening_base_n",
    "current_cost_n",
    "index_bp",
    "amount_denominator",
    "report"
  ],
  "properties": {
    "opening_base_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "current_cost_n": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000
      },
      "minItems": 2,
      "maxItems": 2
    },
    "index_bp": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 30000
      },
      "minItems": 2,
      "maxItems": 2
    },
    "amount_denominator": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "report": {
      "type": "object",
      "minProperties": 24,
      "maxProperties": 24,
      "propertyNames": {
        "enum": [
          "y1_base_inventory",
          "y1_base_increment",
          "y1_base_liquidation",
          "y1_base_layer0",
          "y1_base_layer1",
          "y1_base_layer2",
          "y1_lifo_layer0",
          "y1_lifo_layer1",
          "y1_lifo_layer2",
          "y1_closing_lifo",
          "y1_current_cost_reserve",
          "y1_base_bridge_gap",
          "y2_base_inventory",
          "y2_base_increment",
          "y2_base_liquidation",
          "y2_base_layer0",
          "y2_base_layer1",
          "y2_base_layer2",
          "y2_lifo_layer0",
          "y2_lifo_layer1",
          "y2_lifo_layer2",
          "y2_closing_lifo",
          "y2_current_cost_reserve",
          "y2_base_bridge_gap"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "n",
          "d"
        ],
        "properties": {
          "n": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "d": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          }
        }
      }
    }
  },
  "additionalProperties": false
}

Open original schema

Published input example

{
  "opening_base_n": 100,
  "current_cost_n": [
    180,
    180
  ],
  "index_bp": [
    12000,
    15000
  ],
  "amount_denominator": 1,
  "report": {
    "y1_base_inventory": {
      "n": "150",
      "d": "1"
    },
    "y1_base_increment": {
      "n": "50",
      "d": "1"
    },
    "y1_base_liquidation": {
      "n": "0",
      "d": "1"
    },
    "y1_base_layer0": {
      "n": "100",
      "d": "1"
    },
    "y1_base_layer1": {
      "n": "50",
      "d": "1"
    },
    "y1_base_layer2": {
      "n": "0",
      "d": "1"
    },
    "y1_lifo_layer0": {
      "n": "100",
      "d": "1"
    },
    "y1_lifo_layer1": {
      "n": "60",
      "d": "1"
    },
    "y1_lifo_layer2": {
      "n": "0",
      "d": "1"
    },
    "y1_closing_lifo": {
      "n": "160",
      "d": "1"
    },
    "y1_current_cost_reserve": {
      "n": "20",
      "d": "1"
    },
    "y1_base_bridge_gap": {
      "n": "0",
      "d": "1"
    },
    "y2_base_inventory": {
      "n": "120",
      "d": "1"
    },
    "y2_base_increment": {
      "n": "0",
      "d": "1"
    },
    "y2_base_liquidation": {
      "n": "30",
      "d": "1"
    },
    "y2_base_layer0": {
      "n": "100",
      "d": "1"
    },
    "y2_base_layer1": {
      "n": "20",
      "d": "1"
    },
    "y2_base_layer2": {
      "n": "0",
      "d": "1"
    },
    "y2_lifo_layer0": {
      "n": "100",
      "d": "1"
    },
    "y2_lifo_layer1": {
      "n": "24",
      "d": "1"
    },
    "y2_lifo_layer2": {
      "n": "0",
      "d": "1"
    },
    "y2_closing_lifo": {
      "n": "124",
      "d": "1"
    },
    "y2_current_cost_reserve": {
      "n": "56",
      "d": "1"
    },
    "y2_base_bridge_gap": {
      "n": "0",
      "d": "1"
    }
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’