Zum Inhalt springen
GET /v1/pallet

Cartons per pallet

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/freight-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/freight-api/v1/pallet" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/freight-api/v1/pallet", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/freight-api/v1/pallet");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/freight-api/v1/pallet",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Cartons per layer takes the better of the two footprint orientations; layers fill the usable height. The pallet holds the smaller of the cube and weight limits.",
        "inputs": {
            "max_height": 60,
            "max_weight": 2200,
            "carton_width": 12,
            "pallet_width": 40,
            "carton_height": 12,
            "carton_length": 12,
            "carton_weight": 20,
            "pallet_length": 48
        },
        "layers": 4,
        "stack_height": 54,
        "cartons_by_cube": 48,
        "limiting_factor": "cube",
        "cartons_by_weight": 110,
        "cartons_per_layer": 12,
        "cartons_per_pallet": 48,
        "pallet_cargo_weight": 960
    },
    "meta": {
        "timestamp": "2026-06-05T21:48:47.557Z",
        "request_id": "1a03e167-98f9-4354-9d2f-799d747e011c"
    },
    "status": "ok",
    "message": "Palletization",
    "success": true
}