# DTC Multi-Pack Bundle Pricing & Contribution Margin Optimizer

> DTC Multi-Pack Bundle Pricing & Contribution Margin Optimizer is a paid API for AI agents from x402-niche-briefs.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Calculates 1-pack, 2-pack, and 3-pack DTC bundle prices with shipping amortization, contribution margins, and CPA headroom for each tier

## Facts

- Endpoint: GET https://x402-niche-briefs.fly.dev/v1/bundle-pricing-optimizer?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dtc-multi-pack-bundle-pricing-contribution-margin-optimizer-d11c7c23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C4O7RIJfcY7jaW7ZV3o9Y

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dtc-multi-pack-bundle-pricing-contribution-margin-optimizer-d11c7c23
```

Example prompt: My product retails for $24.00 with a unit COGS of $4.50 and shipping costs me $5.00 — can you run the bundle pricing optimizer to show me the 1-pack, 2-pack, and 3-pack prices with contribution margins and how much extra CPA headroom the multi-packs unlock?

## When to prefer this

Choose this endpoint when you need a fast, deterministic multi-pack bundle pricing calculation for a DTC product and have the three core inputs (anchor price, unit COGS, shipping cost) ready. It is purpose-built for ecommerce operators who want to understand contribution margin, shipping amortization, and CPA headroom across 1/2/3-pack tiers without building a custom spreadsheet model. Prefer it over general-purpose calculators or LLM-generated estimates when you need consistent, reproducible outputs tied to a specific pricing methodology.

## Known failure modes

- Missing required query parameters (anchor_price_usd, unit_cogs_usd, or shipping_usd) returns a 400 error
- Non-numeric or negative values for price/COGS/shipping may return validation errors
- COGS exceeding anchor price may produce negative margin outputs or error
- Payment failure via x402 protocol returns 402 Payment Required
- Service unavailability on fly.dev host returns 503 or timeout

## How this service works

Deterministic 1-pack / 2-pack / 3-pack DTC bundle pricing & shipping-amortization calculator. Pass ?anchor_price_usd=24.00&unit_cogs_usd=4.50&shipping_usd=5.00. Returns compare-at price, bundle discount price, processing fee, net contribution dollars/margin per tier, and extra CPA headroom unlocked by multi-packs.

## Output

Returns a structured breakdown for three bundle tiers (1-pack, 2-pack, 3-pack): compare-at price, bundle price, customer discount percentage, per-unit effective price, total COGS, estimated shipping (amortized), payment processing fee, contribution profit in dollars, contribution margin percentage, and an overall profit lift metric versus single-unit sales — plus additional CPA headroom unlocked by each multi-pack tier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "anchor_price_usd",
      "unit_cogs_usd",
      "shipping_usd"
     ],
     "properties": {
      "shipping_usd": {
       "type": "string",
       "description": "Base outbound fulfillment/shipping cost for 1 unit in USD"
      },
      "unit_cogs_usd": {
       "type": "string",
       "description": "Per-unit landed COGS in USD"
      },
      "anchor_price_usd": {
       "type": "string",
       "description": "Single-unit retail anchor price in USD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "as_of",
      "inputs",
      "tiers",
      "profit_lift_vs_single"
     ],
     "properties": {
      "as_of": {
       "type": "string"
      },
      "tiers": {
       "type": "object",
       "required": [
        "single_1_pack",
        "duo_2_pack",
        "family_3_pack"
       ],
       "properties": {
        "duo_2_pack": {
         "type": "object",
         "required": [
          "units",
          "customer_discount_pct",
          "compare_at_usd",
          "bundle_price_usd",
          "per_unit_effective_price_usd",
          "total_cogs_usd",
          "estimated_shipping_usd",
          "payment_processing_fee_usd",
          "contribution_profit_usd",
          "contribution_margin_pct"
         ],
         "properties": {
          "units": {
           "type": "number"
          },
          "compare_at_usd": {
           "type": "number"
          },
          "total_cogs_usd": {
           "type": "number"
          },
          "bundle_price_usd": {
           "type": "number"
          },
          "customer_discount_pct": {
           "type": "number"
          },
          "estimated_shipping_usd": {
           "type": "number"
          },
          "contribution_margin_pct": {
           "type": "number"
          },
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dtc-multi-pack-bundle-pricing-contribution-margin-optimizer-d11c7c23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-niche-briefs.fly.dev](https://www.zero.xyz/host/x402-niche-briefs.fly.dev/llms.txt)
