Delivery slot capacity API
Estimate bookable orders per zone and time slot from vehicle time, service, drive and stem assumptions.
The Delivery slot capacity operation is part of the Route Optimisation TSP VRP Delivery API on BRAINIAC.software. Estimate bookable orders per zone and time slot from vehicle time, service, drive and stem assumptions. It is exposed as POST /api/v1/route-optimization/delivery-slot-capacity and priced at $0.02 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 coordinates or distance/duration matrices processed locally Haversine on IUGG mean radius 6,371,008.8 m; Google Encoded Polyline Algorithm Format (CC BY 4.0 docs, algorithm only) Held-Karp, Clarke-Wright, Solomon I1, k-means++, p-median / Teitz-Bart, Hungarian assignment Limitations: Pure computation on caller input: no maps, routing, geocoding or network request at request time. Without a caller matrix, distances use haversine × circuity and are labelled estimate: true (not road distances). Solvers are exact on small instances and heuristic beyond documented caps; responses state method and whether optimality is proven. Outputs are route and delivery calculations for human review. They are not legal, customs, tax, medical or identity determinations. Caps: 2,000 stops, 100 vehicles; timeLimitMs default 2,000 (max 25,000). 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 Great-circle distance and duration matrix, Travelling salesman route order, Capacitated vehicle routing, Vehicle routing with time windows. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/route-optimization/delivery-slot-capacityExample request
curl -i -X POST "https://www.brainiac.software/api/v1/route-optimization/delivery-slot-capacity" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"zones": [
{
"id": "Z1",
"vehicles": 2,
"avgServiceMin": 6,
"avgDriveBetweenStopsMin": 9,
"stemMin": 20
}
],
"slots": [
{
"id": "09-11",
"start": "09:00",
"end": "11:00"
},
{
"id": "11-13",
"start": "11:00",
"end": "13:00"
}
],
"booked": [
{
"zone": "Z1",
"slot": "09-11",
"orders": 10
}
],
"bufferPct": 0.1
}
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
- Great-circle distance and duration matrix — $0.02 USDC
- Travelling salesman route order — $0.05 USDC
- Capacitated vehicle routing — $0.05 USDC
- Vehicle routing with time windows — $0.05 USDC
Related APIs
Route Optimisation TSP VRP Delivery APIFull docsHow it works