Shopify Integration

Shopify Pakistan: Stop Fake COD Orders Before They Ship (2026)

By OrderWitness Team July 22, 2026 6 min read

Shopify gives Pakistani sellers a polished storefront, but it has the same gap every COD platform has: once a customer places an order, Shopify has no way to verify they actually want it. No phone check, no confirmation step, no fraud score. If the customer refuses delivery, Shopify cannot help you dispute it.

This guide covers exactly how to connect Shopify to OrderWitness so every new COD order is automatically verified before you ship — without changing your checkout experience or adding manual work.

The Shopify COD Problem in Pakistan

30–40%
average RTO rate on Shopify COD in Pakistan
PKR 800
minimum loss per returned Shopify COD order
0
built-in Shopify tools to verify COD customers

Shopify's built-in fraud analysis is designed for card payments — it checks card details, IP location, and billing/shipping mismatch. For COD orders, none of that applies. The customer pays nothing upfront, so there's nothing for Shopify's fraud engine to analyze.

Pakistani sellers are left with two bad options: call every customer manually (impossible at scale) or ship and hope (expensive when customers refuse).

How the Integration Works

The Automated Order Verification Flow

Shopify Order Created Shopify Webhook OrderWitness
Fraud Score (0–100) Customer YES / NO
Evidence PDF Generated Dashboard Status Updated You Ship or Cancel

The whole flow — from Shopify order creation to WhatsApp message delivery — takes under 30 seconds. By the time you open your dashboard, the fraud score is already assigned and the confirmation request is on its way to the customer.

Setup Guide (Under 10 Minutes)

1

Create your OrderWitness account

Free plan at app.orderwitness.com/auth/signup. Select "E-commerce" as your business type during onboarding.

2

Go to Settings → Integrations → Shopify

Enter your store URL (e.g. yourstore.myshopify.com). You will need to generate a Custom App in Shopify Admin → Apps → Develop apps.

3

Create a Shopify Custom App with API access

In Shopify Admin → Apps → Develop apps → Create an app. Grant permissions: read_orders, write_orders, read_products. Copy the Admin API access token and paste it into OrderWitness.

4

Add the OrderWitness webhook in Shopify

In Shopify Admin → Settings → Notifications → Webhooks, add a new webhook for Order creation. Use the webhook URL provided in OrderWitness integration settings. Format: JSON.

5

Sync products and connect WhatsApp

Click "Sync Products from Shopify" — OrderWitness imports your catalog. Then connect your WhatsApp Business number in Settings → WhatsApp. Done.

Test it: After setup, place a test COD order on your Shopify store using a real phone number. Within 30 seconds you should see the order appear in OrderWitness with a fraud score, and a WhatsApp confirmation should arrive on that number.

What OrderWitness Does That Shopify Cannot

FeatureShopify NativeOrderWitness + Shopify
COD fraud scoring✗ Not available✓ 0–100 score per order
Customer phone verification✗ No✓ WhatsApp + SMS OTP
Pre-shipment confirmation✗ No✓ YES/NO WhatsApp buttons
Blacklist check✗ No✓ Business + network blacklist
Evidence PDF✗ No✓ SHA-256 signed PDF
High-risk auto-hold✗ No✓ Configurable risk thresholds
Prepaid conversion offer✗ No✓ EasyPaisa/JazzCash via WhatsApp

What Happens Per Risk Score Level

🟢 Score 0–30: Low Risk

Confirmation sent, customer verified, order auto-approved. Ship immediately after customer taps YES.

🟡 Score 31–59: Medium Risk

Confirmation sent + optional prepaid offer (EasyPaisa/JazzCash). Order held until response received.

🔴 Score 60–79: High Risk

Order automatically held in dashboard. Alert sent to you. Manual review required before confirmation message is sent.

⛔ Score 80+: Critical Risk

Order auto-cancelled (configurable). Never ships. Customer not notified. Zero cost to you.

Shopify vs WooCommerce: Does It Matter?

For OrderWitness, the platform is irrelevant once the webhook is connected. Both Shopify and WooCommerce send order data in JSON format — OrderWitness normalises it and applies the same fraud scoring, confirmation, and evidence pipeline to both. The setup steps differ slightly (Shopify uses Custom Apps, WooCommerce uses REST API credentials) but the result is identical.

If you are choosing between platforms purely based on fake order prevention, OrderWitness works equally well with both. Your decision should be based on other factors: theme ecosystem, payment gateway support, monthly fees, and your team's technical comfort.

Stop Fake COD Orders on Your Shopify Store

Connect Shopify to OrderWitness in under 10 minutes. Free plan includes 50 orders/month with full Shopify integration, fraud scoring, WhatsApp confirmation, and evidence PDF.

Start Free →