SNC-WF-121 · Free Tier · Orders & Fulfilment

Detect inbound order fraud and halt high-risk checkouts before warehouse dispatch.

SNC-WF-121 · Inbound Order Fraud Detection & High-Risk Cancellation Guard (Free Tier)

A self-hosted Python workflow that evaluates incoming e-commerce orders against 10 fraud heuristics to detect bot attacks, VPN proxies, disposable emails, and fake COD checkouts before warehouse dispatch.

PRODUCT SUMMARY AT A GLANCESNC-WF-121
Primary OutcomeEvaluates incoming orders across 10 risk dimensions to halt fraudulent checkouts, prevent RTO losses, and protect merchant chargeback standing.
How It RunsSelf-Hosted Python 3.9+ (Runs on your own computer or server)
Setup ExpectationsFree to self-host on your own hardware. Free workflows never run on Sanocea infrastructure. Optional assisted setup available via WhatsApp.
Verification StatusCode & Logic Tested: Tested with VPN, disposable emails, velocity spikes, and circuit breakers
The 3-Step Process in Simple English
1. Input

Inbound order JSON payload from storefront webhook or batch file export.

2. Transformation

Evaluates 10 risk dimensions, checks VIP whitelist, calculates fraud score, applies circuit breaker safety checks, and logs to SQLite.

3. Output

Executive HTML audit report, triage CSV, JSON evaluation results, and recommended order hold/pass tag.

100% Free to self-host. Want Sanocea to set it up? Request Assisted Setup or Customisation.

Setup scope covers installation on customer-controlled infrastructure, configuration of authorised integrations, functional testing and handover.

Hosting, third-party charges and ongoing support are excluded unless separately agreed. Free workflows run on customer hardware; Sanocea does not provide free VPS hosting.

Direct Download or Assisted Setup: Download the free toolkit below, or contact engineering on WhatsApp to request assisted setup or customisation.

What Goes Wrong in an Ordinary Working Day

Merchants lose substantial capital to fake COD orders, fraudulent credit card chargebacks, and bot hoarding during flash sales because standard storefront fraud filters fail to halt dispatch before courier handover.

The Impact on Your Business & Customers

Unchecked fraud checkouts trigger non-refundable courier freight on RTOs and payment processor chargeback penalty fees. Halting high-risk orders at intake stops cash drain before fulfillment begins.

What This Tool Does & What Changes for You

Intercepts incoming order webhooks or JSON exports, scores IP geolocation, proxy subnets, email entropy, freight forwarders, and order velocity, then outputs clear APPROVE, REVIEW, or CANCEL recommendations.

What Changes in Practice:

Your fulfillment team stops packing and shipping fake COD and stolen card orders, saving thousands in unrecoverable freight bills and processor penalties.

Concrete Before & After Example (Actual Code Output)

Demonstrates order fraud scoring and safety hold for a high-risk bot checkout.

INPUT: High-Risk Bot Order (VPN IP, Disposable Email, Repeating Phone, COD)Input File
Order: #1002 | Email: fraudster@mailinator.com | IP: 185.220.101.44 (NG VPN) | Ship: IN | Total: ₹6,000 (COD) | Phone: 0000000000
OUTPUT: Evaluated Risk Verdict & Safety Quarantined Holdnormalized_inventory.csv
Verdict: CANCEL_AND_HOLD (Risk Score: 100/100)
Tag: fraud_auto_cancelled | Dry-Run: True (Destructive Action Prevented)
Reasons: Disposable email (+40) | Flagged VPN (+35) | High-risk jurisdiction (+25) | Dummy phone (+25) | COD high-value (+20)

Identifies multiple compounding fraud indicators and prevents warehouse dispatch before non-refundable courier freight is incurred.

What Changed vs. What Remained Unchanged

✓ What Changed (Normalized):
  • Calculated composite fraud risk score using 10 deterministic heuristic dimensions
  • Quarantined high-risk checkout to prevent warehouse packing and RTO courier freight loss
  • Logged event to persistent local SQLite ledger for velocity monitoring
ℹ What Remained Unchanged:
  • Zero third-party SaaS API dependencies or external credit bureau calls
  • 100% self-hosted execution with customer-controlled database and whitelist

What You Need Before Getting Started

  • Standardized order export JSON or incoming webhook payload from Shopify, WooCommerce, or custom storefront.
  • Basic command-line access or cron runner for automated evaluation.
  • Customer VIP whitelist file (optional).

Technical Setup Guidance:

Setup Difficulty & Expected Time

Step-by-Step Run Instructions (Zero-Code Terminal Run)

  1. Download and extract snc-wf-121-order-fraud-cancellation-guard.zip.
  2. Configure risk thresholds or add trusted buyers in fixtures/whitelist.json.
  3. Run in dry-run mode: python3 guard.py --orders fixtures/sample_orders.json --outdir sample_reports --force
  4. Open sample_reports/fraud_audit_report_YYYY-MM-DD.html in any browser to inspect results.

What You Receive in the Download Archive

Every deliverable is clean, self-contained, and ready for immediate deployment. You receive the complete files, configuration templates, setup guides, and automated tests.

File NameDeliverable Description
guard.pyCore fraud scoring and cancellation guard engine (standard library only)
config.jsonConfigurable risk heuristic weights, thresholds, and webhook settings
README.mdComplete operational documentation, safety guide, and API reference
fixtures/disposable_domains.txtBlocklist of known disposable and temporary email domains
fixtures/freight_forwarders.jsonKeywords and postal codes identifying freight forwarders
fixtures/ip_reputation_rules.jsonKnown VPN datacenter subnets and high-risk jurisdictions
fixtures/sample_orders.jsonComprehensive sample order fixtures for testing
fixtures/whitelist.jsonCustomer, domain, ID, and IP whitelist rules
tests/test_fraud_guard.pyAutomated hermetic test suite with 19 passing tests
sample_reports/fraud_audit_report_2026-11-18.jsonSample machine-readable JSON evaluation report
sample_reports/fraud_audit_report_2026-11-18.csvSample CSV order triage export
sample_reports/fraud_audit_report_2026-11-18.htmlSample executive visual HTML audit dashboard

Architecture Diagram & Tested Capabilities

For technical teams or developers assisting your business, below is the visual execution architecture and automated verification breakdown:

Detect inbound order fraud and halt high-risk checkouts before warehouse dispatch. Architecture Pipeline Diagram
⚡Deterministic execution flow: runs on your own compute without telemetry tracking.

Verification Disclosure

Hermetically verified with automated test suites covering 10 fraud dimensions, VIP whitelisting, default dry-run simulation, and cancellation rate circuit breakers.

Documented Limitations & Third-Party Costs

We believe in complete transparency. Review the documented technical boundaries and external service fee breakdown below prior to obtaining the package:

⚠️Documented Boundaries & Considerations

  • File & Webhook Ingestion: evaluates standardized JSON orders or webhooks. Direct live cancellation dispatch requires merchant credentials configured in config.json.
ComponentEstimated CostDetails & Free Tier Allowances
Software License₹0 (Free & Open Source)
Hosting / Cloud Runtime₹0 (Runs locally on merchant machine or server)
Optional Assisted Setup₹500 one-time via WhatsApp

Platform Compatibility & Technical Specifications

Operating System
Linux, macOS, Windows
Runtime / Python
Python 3.9+
Supported Platforms
Shopify, WooCommerce, Magento, Custom E-Commerce
Required Inputs
  • Inbound order JSON payload containing shipping, billing, client IP, phone, and payment details
  • disposable_domains.txt temporary email domain blocklist
  • ip_reputation_rules.json VPN subnets and high-risk country codes
  • freight_forwarders.json hub address keywords and flagged zip codes
  • whitelist.json trusted customer, domain, and IP rules
Generated Outputs
  • fraud_audit_report_YYYY-MM-DD.html executive visual risk dashboard
  • fraud_audit_report_YYYY-MM-DD.csv order triage and scoring export
  • fraud_audit_report_YYYY-MM-DD.json machine-readable evaluation results
  • fraud_guard.db persistent local SQLite idempotency and velocity ledger
Free Self-Hosted SoftwareInstant Free Download · Request Customisation

Download or Set Up SNC-WF-121

Receive the complete distributable archive containing guard.py, step-by-step setup guides, mock fixtures, and automated test suites.

Free to self-host. Want Sanocea to set it up? Request Assisted Setup or Customisation.

Setup scope covers installation on customer-controlled infrastructure, configuration of authorised integrations, functional testing and handover.

Hosting, third-party charges and ongoing support are excluded unless separately agreed. Free workflows must never run on Sanocea-hosted infrastructure.

SIGN IN TO DOWNLOADRequest Customisation on WhatsAppWe reply within 2 business days (Monday to Saturday, 9:00 AM to 9:00 PM IST)

Frequently Asked Questions

How does the fraud guard evaluate whether an incoming order is high risk?

The engine evaluates incoming checkout data across 10 deterministic heuristics: IP geolocation vs destination country, VPN/proxy subnets, disposable email domains, email entropy, freight forwarder suites, repetitive phone numbers, abnormal order value spikes, prior failed payments, high-value COD risk, and repeat order velocity. Each triggered factor adds points toward a cumulative 0–100 score.

How does the workflow prevent accidental cancellations of legitimate VIP orders?

The workflow enforces four layers of automated safety: (1) default dry-run mode that calculates scores without triggering live cancellation webhooks unless explicitly authorized; (2) VIP whitelist checking customer email, domain, ID, or IP to instantly approve verified buyers; (3) cancellation rate circuit breakers that trip and hold orders if more than 20% of a batch is flagged; and (4) HMAC signature verification to block forged webhook drops.

Can this tool integrate directly with Shopify or WooCommerce webhooks?

Yes. The engine accepts standard JSON payloads matching Shopify orders/create webhooks or WooCommerce REST order formats. It includes helper methods for cryptographic HMAC-SHA256 signature verification to ensure payloads originate authentically from your store.

Automate Shopify Order Exceptions & Fraud Holds: Address Normalization and Quarantines

Eliminating fulfillment bottlenecks: automated address normalization, heuristic fraud quarantines, and sovereign approval gates.

Read Field Guide on Sanocea Insights →

Explore Related Self-Hosted Tools

SNC-WF-003Self-Hosted Python 3.8+

Halt Warehouse Dispatch and Void Shipping Labels When Customers Cancel Orders

Multi-Marketplace Order Cancellation Race Guard (Free Tier)

A free, self-hosted Python state machine that protects retailers from fulfillment race conditions. When a customer cancels an order on Shopify, the guard checks real-time warehouse status: it voids pre-draft orders, cancels AWB shipping labels with carrier confirmation, and raises urgent dock recall alerts if parcels are already loaded on delivery trucks.

SNC-WF-006Self-Hosted Python 3.8+

Validate Shipping Address Data & Indian PIN Codes Before Label Creation

Shipping Label Data & PIN Code Validator (Free Tier)

A free, self-hosted Python tool that audits e-commerce shipment manifests before sending them to courier label APIs (Shiprocket, Delhivery, Bluedart, Shadowfax). It checks 6-digit Indian PIN codes against regional postal circles, auto-splits addresses exceeding 50 characters, normalizes phone numbers (+91/0 prefix), and calculates volumetric weight disparity to prevent courier billing disputes.