# Shipping & Logistics Calc – Box-in-Box Packing Calculator

> Shipping & Logistics Calc – Box-in-Box Packing Calculator is a paid API for AI agents from shipping-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Calculates how many identical smaller boxes fit inside a larger box or crate using the best of six 3D orientations in a simple grid, returning count and volume utilization percentage.

## Facts

- Endpoint: GET https://shipping-calc.x402tookit.com/box-packing?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shipping-logistics-calc-box-in-box-packing-calculator-ecbcea53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2XIddu1-ompgyqRUwkeum

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 shipping-logistics-calc-box-in-box-packing-calculator-ecbcea53
```

Example prompt: How many product boxes measuring 12 in × 8 in × 6 in can fit inside a shipping crate that's 48 in × 40 in × 36 in? Try all orientations and tell me the volume utilization.

## When to prefer this

Choose this endpoint when you need a fast, deterministic grid-packing estimate for identical rectangular items in a rectangular container, especially when you want to evaluate all six possible 3D orientations automatically. It is ideal for quick logistics planning, carton count estimates, and utilization reporting. Prefer it over full bin-packing solvers when simplicity, speed, and cost matter more than optimal irregular packing.

## Known failure modes

- Missing required dimension parameters returns a 400 error
- Non-numeric dimension values cause validation failure
- Item dimensions larger than outer box dimensions return fits=0
- Unsupported unit strings (not 'in', 'cm', or 'm') may return an error or default
- Payment not completed returns 402 Payment Required

## How this service works

How many identical boxes fit inside a larger box or crate: best of six orientations in a simple grid, with utilization.

## Output

Returns the number of items that fit (fits), the best item orientation as [L,W,H] dimensions, the grid layout along each axis, volume utilization as a percentage, the theoretical upper-bound volume, a human-readable summary and verdict, the unit used, and any reasons or disclaimers about the result.

## 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": [
      "outerLength",
      "outerWidth",
      "outerHeight",
      "itemLength",
      "itemWidth",
      "itemHeight"
     ],
     "properties": {
      "unit": {
       "type": "string",
       "description": "in (default), cm or m; both boxes use the same unit"
      },
      "upright": {
       "type": "string",
       "description": "true to keep the item height vertical, allowing only a spin (default false)"
      },
      "itemWidth": {
       "type": "number",
       "description": "Width of one item"
      },
      "itemHeight": {
       "type": "number",
       "description": "Height of one item"
      },
      "itemLength": {
       "type": "number",
       "description": "Length of one item or carton"
      },
      "outerWidth": {
       "type": "number",
       "description": "Inside width"
      },
      "outerHeight": {
       "type": "number",
       "description": "Inside height"
      },
      "outerLength": {
       "type": "number",
       "description": "Inside length of the larger box, crate or container"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "fits": {
       "type": [
        "null",
        "number"
       ]
      },
      "unit": {
       "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"
       ]
      },
      "disclaimer": {

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shipping-logistics-calc-box-in-box-packing-calculator-ecbcea53/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)
