Margin Integrity

Stop below-margin orders at checkout.

CartMoat enforces contribution-margin floors across discounts, shipping, and payment methods, with evidence for every decision.

  • Stop negative-margin checkouts.
  • Keep shoppers moving with clear paths to compliance.
  • Leave an audit trail Finance can defend.
The incident that keeps repeating

A customer stacks two codes and selects express shipping.

Checkout accepts it.

You find out after the fact, when contribution margin is negative.

CartMoat prevents the loss, or records proof of exactly why it passed.

Coverage in checkout

One policy, enforced across the paths that change margin.

Discounts Stacking and promos
Shipping Delivery choices
Payments Method fees

Where margin quietly breaks

Patterns that surface in incident reviews.

  • Discount stacking + free shipping. Orders go negative after checkout.
  • Express delivery without cost awareness. Faster service erodes contribution margin.
  • High-fee payment methods. Thin carts absorb fees with no guardrails.

When enabled, margin leaks stop at checkout or leave a decision record you can defend.

Decision evidence, not guesswork

Every enforcement action is logged with policy version, contribution margin, and the exact reason it fired. No silent blocks. No missing context.

Track: blocked carts, adjusted carts, and estimated margin delta - assumptions disclosed.

View example decision record (redacted)
Decision record (example)
  • Outcome Blocked
  • Reason CM.FLOOR.VIOLATION
  • Policy promo_floor_v12 (sha256: 9a31...)
  • CM -2.4%
  • Fired at 2026-01-14T13:52:11Z
  • Shopper message Choose standard shipping or remove code WINTER20

Policy-first enforcement

01

Define once

Margin floors, exclusions, and adjustments live in one policy.

02

Deterministic artifact

Policies compile into a stable, reviewable payload.

03

Uniform enforcement

Identical outcomes across checkout paths.

Shopper clarity by design

CartMoat tries to keep the order.

It guides the shopper into a compliant option (shipping, payment, discount).

Only when no compliant path exists does it block - with a clear reason.

Language, tone, and thresholds are merchant-controlled.

Defensible audit trail

  • Decision records with timestamps and reasons.
  • Policy version tags and historical snapshots where enabled.
  • Structured for finance and compliance review.

We prefer honest absence over deceptive presence.

Access and rollout

Rolling out in controlled stages. Early access prioritizes Shopify Plus teams migrating from Scripts to Functions.

Request staged access