# Pallet Stack Calculator

> Pallet Stack Calculator is a paid API for AI agents from shipping-calc.x402tookit.com, paid per call via x402, $0.02/call, status down (last checked 2026-10-24).

Calculates how many cartons fit per pallet layer and total per pallet within a specified height limit, supporting GMA, Euro, and ISO pallet types with optional weight checking.

## Facts

- Endpoint: GET https://shipping-calc.x402tookit.com/pallet-stack?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pallet-stack-calculator-03bdfb4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_97UtbEyGE4z3yfr6pMFcU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pallet-stack-calculator-03bdfb4c
```

Example prompt: How many of my cartons — 40 cm long, 30 cm wide, 25 cm tall, weighing 5 kg each — can I fit on a GMA pallet if the max loaded height is 180 cm and max weight is 1000 kg?

## When to prefer this

Use this endpoint when you need a quick, authoritative calculation of how many cartons can be stacked on a single pallet within real-world height and weight constraints, especially when you need to compare GMA, Euro, or ISO pallet types. Prefer this over manual spreadsheet calculations or container-packing endpoints when the scope is a single pallet configuration rather than a full container load.

## Known failure modes

- Missing required query parameters (length, width, height) returns an error
- Carton dimensions larger than pallet footprint even with overhang returns zero cartons or infeasible verdict
- Extremely heavy cartons that exceed weight limit before height limit is reached returns reduced layer count with weight as limiting factor
- Invalid pallet type string returns error or defaults to GMA
- Unsupported unit value returns error

## How this service works

Cartons per pallet layer and per pallet within a height limit: GMA 48x40, Euro 120x80 or ISO, with weight check.

## Output

Returns a structured result including the pallet name and footprint, number of cartons per layer, number of layers, total cartons loaded, loaded height in cm, total load weight in kg, the limiting factor (height or weight), a plain-language summary and verdict, plus any reasons or warnings about the configuration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "length",
      "width",
      "height"
     ],
     "properties": {
      "unit": {
       "type": "string",
       "description": "cm (default) or in"
      },
      "width": {
       "type": "number",
       "description": "Carton width"
      },
      "height": {
       "type": "number",
       "description": "Carton height"
      },
      "length": {
       "type": "number",
       "description": "Carton length"
      },
      "pallet": {
       "type": "string",
       "description": "gma (default), euro or 1200x1000"
      },
      "maxHeightCm": {
       "type": "number",
       "description": "Maximum loaded height including pallet, in cm (default 180)"
      },
      "maxWeightKg": {
       "type": "number",
       "description": "Maximum pallet load weight in kg (default 1000)"
      },
      "allowOverhang": {
       "type": "string",
       "description": "true to allow cartons to overhang the pallet by up to 2.5 cm per side (default false)"
      },
      "cartonWeightKg": {
       "type": "number",
       "description": "Weight of one carton in kg"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "pallet": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "limitedBy": {
       "type": [
        "null",
        "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pallet-stack-calculator-03bdfb4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from shipping-calc.x402tookit.com](https://www.zero.xyz/host/shipping-calc.x402tookit.com/llms.txt)
