Pick the box that minimises billable weight API
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.
The Pick the box that minimises billable weight operation is part of the Ecommerce Seller Profitability Unit Economics API on BRAINIAC.software. 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. It is exposed as POST /api/v1/ecommerce-profitability/packaging-optimize and priced at $0.03 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied marketplace fees, product costs, ads rows, listing text, shipment lines, price history and settlement exports processed locally Limitations: Pure computation on caller input: no marketplace, payment-processor, tariff or tax API is called at request time. Fee schedules, duty rates, VAT rates and listing length limits must be supplied by the caller. Outputs are lookups or prechecks for human review. They are not legal, customs, tax, medical, or identity determinations. Money amounts are integers in minor units of one currency per request unless a fee rate produces a fractional intermediate. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Per-unit contribution margin and break-even, Analyse a sponsored-ads search-term report, Check listing keyword coverage and length limits, Allocate import costs to SKU landed cost. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/ecommerce-profitability/packaging-optimizeExample request
curl -i -X POST "https://www.brainiac.software/api/v1/ecommerce-profitability/packaging-optimize" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"items": [
{
"l": 30,
"w": 20,
"h": 10,
"weightG": 1500,
"qty": 1
}
],
"boxes": [
{
"id": "S",
"l": 32,
"w": 22,
"h": 12,
"tareG": 200,
"cost": 40
}
],
"paddingCm": 1,
"dimDivisor": 5000,
"objective": "billable_weight"
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Per-unit contribution margin and break-even — $0.03 USDC
- Analyse a sponsored-ads search-term report — $0.04 USDC
- Check listing keyword coverage and length limits — $0.02 USDC
- Allocate import costs to SKU landed cost — $0.04 USDC
Related APIs
Ecommerce Seller Profitability Unit Economics APIFull docsHow it works