Calculate delivery-promise variance API
Subtract the supplied promise timestamp from the supplied delivery timestamp. A missing timestamp is not filled in, and the comparison is not a carrier guarantee.
The Calculate delivery-promise variance operation is part of the Returns & Delivery Intelligence API on BRAINIAC.software. Subtract the supplied promise timestamp from the supplied delivery timestamp. A missing timestamp is not filled in, and the comparison is not a carrier guarantee. It is exposed as POST /api/v1/returns-delivery/promise-variance and priced at $0.04 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: Orders, addresses, events, and rates supplied in the request. Limitations: Records are copied only from labeled fields in the request. No carrier tracking event is added. An address check does not confirm that a carrier can deliver. A return cost and a return window come only from supplied rates and day counts. No carrier account is contacted and no return is initiated. 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 Classify delivery exceptions, Detect failed-delivery patterns, Validate shipping-address structure, Calculate return shipping cost. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/returns-delivery/promise-varianceExample request
curl -i -X POST "https://www.brainiac.software/api/v1/returns-delivery/promise-variance" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"orders": [
{
"id": "O-1",
"promised": "2026-11-01",
"delivered": "2026-11-03"
},
{
"id": "O-2",
"promised": "2026-11-05",
"delivered": "2026-11-04"
},
{
"id": "O-3",
"promised": "2026-11-01"
}
]
}
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
- Classify delivery exceptions — $0.04 USDC
- Detect failed-delivery patterns — $0.05 USDC
- Validate shipping-address structure — $0.04 USDC
- Calculate return shipping cost — $0.04 USDC