www.brainiac.software/api/v1/ecommerce-profitability/packaging-optimize
Try caller boxes and orientations with padding, compute dimensional and billable weight from a caller divisor, and pick the best by billable weight or box cost. Docs: https://www.brainiac.software/api/ecommerce-profitability/packaging-optimize
POST
https://www.brainiac.software/api/v1/ecommerce-profitability/packaging-optimizeUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.brainiac.software/api/v1/ecommerce-profitability/packaging-optimize", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"boxes":[{"cost":40,"h":12,"id":"S","l":32,"tareG":200,"w":22}],"dimDivisor":5000,"items":[{"h":10,"l":30,"qty":1,"w":20,"weightG":1500}],"objective":"billable_weight","paddingCm":1}),
});
console.log(await res.json());Example input
{
"boxes": [
{
"cost": 40,
"h": 12,
"id": "S",
"l": 32,
"tareG": 200,
"w": 22
}
],
"dimDivisor": 5000,
"items": [
{
"h": 10,
"l": 30,
"qty": 1,
"w": 20,
"weightG": 1500
}
],
"objective": "billable_weight",
"paddingCm": 1
}