# Carrier Dimensional (DIM) Weight & Carton Rightsizing Calculator

> Carrier Dimensional (DIM) Weight & Carton Rightsizing Calculator is a paid API for AI agents from x402-niche-briefs.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Calculates dimensional weight vs actual billable weight for UPS/FedEx and USPS Ground Advantage, and identifies carton rightsizing savings opportunities.

## Facts

- Endpoint: GET https://x402-niche-briefs.fly.dev/v1/dimensional-weight-calc?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/carrier-dimensional-dim-weight-carton-rightsizing-calculator-8d66700f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YbYBq4xr5genuYWFqo9CL

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 carrier-dimensional-dim-weight-carton-rightsizing-calculator-8d66700f
```

Example prompt: What's the billable weight for a 14x10x6 inch carton that actually weighs 3.2 lbs — show me whether UPS/FedEx (divisor 139) or USPS Ground Advantage would bill by DIM or actual weight, and tell me how much I'd save by trimming the carton height by 1 inch.

## When to prefer this

Use this endpoint when you need a fast, deterministic, carrier-agnostic DIM weight calculation without calling a carrier API or building the math yourself. Ideal for e-commerce agents optimizing packaging decisions, comparing UPS/FedEx vs USPS Ground Advantage costs, or flagging oversize surcharge risk before shipment. Prefer this over carrier APIs when you don't need a live rate quote but need quick billable weight math and rightsizing guidance.

## Known failure modes

- Missing required query parameters (length_in, width_in, height_in, actual_lb) returns an error
- Non-numeric string values for dimension or weight fields cause parse errors
- Very large carton dimensions may flag oversize risk but do not block computation
- Custom divisor values outside normal carrier ranges (139, 166) are accepted but may produce unexpected comparisons

## How this service works

Deterministic parcel dimensional weight vs actual billable weight calculator. Pass ?length_in=14&width_in=10&height_in=6&actual_lb=3.2&divisor=139. Compares UPS/FedEx (139 divisor) and USPS Ground Advantage (166 divisor >1 cu ft), cubic size, length+girth oversize risk, and billable weight saved by trimming carton height by 1 inch.

## Output

Returns a JSON object with: input echo, geometry data (cubic inches, cubic feet, length+girth, oversize risk flag), weight comparison (actual weight, DIM weight, billable weight, which weight is billed, USPS Ground Advantage billable weight), and a rightsizing opportunity showing how much billable weight is saved by reducing carton height by 1 inch.

## 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_in",
      "width_in",
      "height_in",
      "actual_lb"
     ],
     "properties": {
      "divisor": {
       "type": "string",
       "description": "Carrier DIM divisor (default 139 for UPS/FedEx, 166 for USPS)"
      },
      "width_in": {
       "type": "string",
       "description": "Carton width in inches"
      },
      "actual_lb": {
       "type": "string",
       "description": "Actual scale weight in pounds"
      },
      "height_in": {
       "type": "string",
       "description": "Carton height in inches"
      },
      "length_in": {
       "type": "string",
       "description": "Carton length in inches"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "as_of",
      "inputs",
      "geometry",
      "weight_comparison",
      "rightsizing_opportunity"
     ],
     "properties": {
      "as_of": {
       "type": "string"
      },
      "inputs": {
       "type": "object",
       "required": [
        "length_in",
        "width_in",
        "height_in",
        "actual_lb",
        "divisor"
       ],
       "properties": {
        "divisor": {
         "type": "number"
        },
        "width_in": {
         "type": "number"
        },
        "actual_lb": {
         "type": "number"
        },
        "height_in": {
         "type": "number"
        },
        "length_in": {
         "type": "number"
        }
       }
      },
      "geometry": {
       "type": "object",
       "required": [
        "cubic_inches",
        "cubic_feet",
        "length_plus_girth_in",
        "exceeds_one_cubic_foot",
        "oversize_surcharge_risk"
       ],
       "properties": {
        "cubic_feet": {
         "type": "number"
        },
        "cubic_inches": {
         "type": "number"
        },
        "length_plus_girth_i
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/carrier-dimensional-dim-weight-carton-rightsizing-calculator-8d66700f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-niche-briefs.fly.dev](https://www.zero.xyz/host/x402-niche-briefs.fly.dev/llms.txt)
