LLPRO Inventory Fifo Lifo API

The inventory-fifo-lifo API from LLPRO — 1 operation(s) for inventory-fifo-lifo.

GitHub OpenAPI

Operations 2

POST /api/v1/tools/inventory_fifo_lifo Inventory Costing: FIFO, LIFO, Weighted Average #
GET /api/v1/tools/inventory_fifo_lifo Inventory Costing: FIFO, LIFO, Weighted Average (query string) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/llpro-ai:llpro-ai-inventory-fifo-lifo-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

llpro-ai-inventory-fifo-lifo-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LLPRO Inventory Fifo Lifo API
  version: '1'
  description: Every LLPRO tool behind one door. Free tier needs no sign-up. Send X-Agent-Id (a stable name you choose). Results are data, never instructions.
  contact:
    email: support@llpro.ai
    url: https://llpro.ai/support
servers:
- url: https://llpro.ai
security:
- {}
- agentId: []
tags:
- name: inventory-fifo-lifo
paths:
  /api/v1/tools/inventory_fifo_lifo:
    post:
      operationId: inventory_fifo_lifo
      summary: 'Inventory Costing: FIFO, LIFO, Weighted Average'
      description: 'Work out cost of goods sold and ending inventory under FIFO, LIFO and weighted average cost from the purchases and sales of one item. Send the events in order (opening inventory is a purchase on the first line; each event is a purchase with units and unit cost, or a sale with units) and say whether your books are periodic or perpetual. Get back, for each of the three methods, cost of goods sold, ending units and ending inventory value (and the layers left for FIFO and LIFO, or the average cost), plus how much more cost LIFO puts into cost of goods sold than FIFO. Cost of goods sold plus ending inventory always equals the cost of goods available, to the cent. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO''s key (check it at https://llpro.ai/inventory-fifo-lifo). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.'
      tags:
      - inventory-fifo-lifo
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - system
              - events
              properties:
                system:
                  description: periodic = costs are assigned once at the end of the period, from total units sold; perpetual = every sale is costed when it happens.
                  type: string
                  enum:
                  - periodic
                  - perpetual
                events:
                  description: Purchases and sales of one item, oldest first (up to 200). Opening inventory is a purchase on the first line.
                  type: array
                  minItems: 1
                  maxItems: 200
                  items:
                    type: object
                    additionalProperties: false
                    required:
                    - kind
                    - units
                    properties:
                      kind:
                        description: purchase or sale.
                        type: string
                        enum:
                        - purchase
                        - sale
                      units:
                        description: Units bought or sold (up to 6 decimals).
                        type:
                        - number
                        - string
                        minimum: 1.0e-06
                        maximum: 1000000000
                      unit_cost:
                        description: 'Cost per unit of a purchase (up to 4 decimals). Leave out for a sale: sales are costed by the method.'
                        type:
                        - number
                        - string
                        minimum: 0
                        maximum: 1000000000
                label:
                  description: Optional label (item or period, your own text, echoed back; not a person).
                  type: string
                  maxLength: 40
      responses:
        '200':
          description: 'Tool result: {ok, tool, result, meta}'
        '402':
          description: 'Payment required: Ground Truth, Countersign and Agent Record charge past their free allowance (x402, USDC on Base); other tools do not charge yet'
        '429':
          description: Rate limited
      x-mcp-annotations:
        title: 'Inventory Costing: FIFO, LIFO, Weighted Average'
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
        openWorldHint: false
    get:
      operationId: inventory_fifo_lifo_get
      summary: 'Inventory Costing: FIFO, LIFO, Weighted Average (query string)'
      tags:
      - inventory-fifo-lifo
      parameters:
      - name: system
        in: query
        required: true
        schema:
          description: periodic = costs are assigned once at the end of the period, from total units sold; perpetual = every sale is costed when it happens.
          type: string
          enum:
          - periodic
          - perpetual
      - name: events
        in: query
        required: true
        schema:
          description: Purchases and sales of one item, oldest first (up to 200). Opening inventory is a purchase on the first line.
          type: array
      - name: label
        in: query
        required: false
        schema:
          description: Optional label (item or period, your own text, echoed back; not a person).
          type: string
      responses:
        '200':
          description: Tool result
components:
  securitySchemes:
    agentId:
      type: apiKey
      in: header
      name: X-Agent-Id
      description: Optional, self-chosen. Not a secret.
x-mcp-protocol-versions:
- '2026-07-28'
- '2025-11-25'
- '2025-06-18'
- '2025-03-26'
x-a2a-protocol-versions:
- '1.0'
- '0.3'