Skip to content
HALOWERK

Calculators and Rule Checks

shop basket deposit exposure

Refundable container deposit returns the cash due at checkout and the unrecovered deposit after partial returns. Use it when an agent needs accounting for reusable packaging.

POST https://rechen.halowerk.com/v1/shop-basket-deposit-exposure

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
itemintegerYes
depositintegerYes
unitsintegerYes
returnedintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "item": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    },
    "deposit": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    },
    "units": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000
    },
    "returned": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    }
  },
  "required": [
    "item",
    "deposit",
    "units",
    "returned"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "item": 255,
  "deposit": 25,
  "units": 6,
  "returned": 5
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "checkout": {
          "type": "integer"
        },
        "recovery": {
          "type": "integer"
        },
        "unrecovered": {
          "type": "integer"
        }
      },
      "required": [
        "checkout",
        "recovery",
        "unrecovered"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →