/v1/pallet
Cartons per pallet
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}