Compare bundle margin with separate sales API

Compute separate and bundle margins, discount depth, margin delta and the break-even bundle price from caller component and bundle fees.

The Compare bundle margin with separate sales operation is part of the Ecommerce Seller Profitability Unit Economics API on BRAINIAC.software. Compute separate and bundle margins, discount depth, margin delta and the break-even bundle price from caller component and bundle fees. It is exposed as POST /api/v1/ecommerce-profitability/bundle-pricing 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 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.

POST$0.02 USDC
/api/v1/ecommerce-profitability/bundle-pricing

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/ecommerce-profitability/bundle-pricing" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "components": [
    {
      "sku": "A",
      "price": 1500,
      "unitCost": 500,
      "feeRate": 0.15,
      "fulfilmentFee": 300
    },
    {
      "sku": "B",
      "price": 1000,
      "unitCost": 300,
      "feeRate": 0.15,
      "fulfilmentFee": 300
    }
  ],
  "bundle": {
    "price": 2200,
    "feeRate": 0.15,
    "fulfilmentFee": 400
  }
}
JSON

An 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 APIs

Ecommerce Seller Profitability Unit Economics APIFull docsHow it works