Technical Guide10 min read

How to Set Up Twilio for COD Verification (Step-by-Step)

Complete guide to creating a Twilio account, getting a Pakistani phone number, and integrating it with Shippley for automated verification.

Published on November 25, 2024

Shippley uses Twilio to make automated verification calls to your customers. With our BYOT (Bring Your Own Twilio) model, you create your own Twilio account and pay them directly: no markup, no hidden fees.

This guide will walk you through the entire setup process in 4 easy steps.

Why BYOT?

Rs 31,000
Monthly Savings
100%
Transparent Pricing
15 min
Setup Time

Traditional services charge Rs 200/call. With BYOT, you pay Twilio Rs 60-80/call directly.

What You'll Need

Requirements

  • • Valid email address
  • • Pakistani phone number
  • • Credit/debit card
  • • ~15 minutes of time

Costs

  • • Phone number: Rs 500-800/month
  • • Per call cost: Rs 60-80
  • • Setup fee: Rs 0
  • • Hidden fees: Rs 0

Step-by-Step Setup Guide

1

Create Twilio Account

5 minutes
1
Visit twilio.com/try-twilio
2
Sign up with email and phone number
3
Verify your email address
4
Complete phone verification
5
Add payment method (credit/debit card)
2

Get Pakistani Phone Number

3 minutes
1
Go to Phone Numbers → Buy a Number
2
Select Pakistan (+92) as country
3
Choose "Voice" capability
4
Search for available numbers
5
Purchase number (Rs 500-800/month)
3

Get API Credentials

2 minutes
1
Go to Console Dashboard
2
Find Account SID
3
Find Auth Token (click to reveal)
4
Copy both values safely
5
Never share these publicly
4

Connect to Shippley

3 minutes
1
Log in to Shippley dashboard
2
Go to Settings → Twilio Integration
3
Paste Account SID
4
Paste Auth Token
5
Click "Test Connection"

Detailed Walkthrough

Step 1: Create Twilio Account

1. Visit Twilio Website

Go to twilio.com/try-twilio

💡 Tip: You'll get $15-20 in free credits to test the service before adding a payment method.

2. Fill Registration Form

  • First Name: Your first name
  • Last Name: Your last name
  • Email: Use a business email if possible
  • Password: Create a strong password

3. Verify Email & Phone

Twilio will send a verification code to your email and phone. Enter both codes to complete verification.

Step 2: Get Pakistani Phone Number

1. Navigate to Phone Numbers

In Twilio Console, go to: Phone Numbers → Manage → Buy a Number

2. Select Pakistan

  • • Country: Select Pakistan (+92)
  • • Number Type: Local
  • • Capabilities: Check "Voice"
  • • Click "Search"

3. Choose & Purchase Number

You'll see available Pakistani numbers. Choose one and click "Buy".

⚠️ Important: Make sure the number has "Voice" capability. SMS-only numbers won't work for verification calls.

Step 3: Get API Credentials

1. Find Your Credentials

Go to Console Dashboard. You'll see:

Account SID
ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Auth Token
••••••••••••••••••••••••••••••••

Click the eye icon to reveal

🔒 Security Warning: Never share your Auth Token publicly or commit it to GitHub. Treat it like a password.

Step 4: Connect to Shippley

1. Log in to Shippley

Go to your Shippley dashboard and navigate to Settings → Twilio Integration

2. Enter Credentials

3. Test Connection

Click "Test Connection". Shippley will make a test call to verify everything is working.

✅ Success! If the test passes, you're all set. Shippley will now use your Twilio account to verify orders.

Common Issues & Solutions

"No Pakistani numbers available"

Sometimes Twilio runs out of Pakistani numbers. Try again in a few hours, or contact Twilio support to request a number manually.

"Payment method declined"

Make sure your credit/debit card supports international payments. Pakistani banks sometimes block international transactions by default: call your bank to enable them.

"Test connection failed"

Double-check that you copied the Account SID and Auth Token correctly. Make sure there are no extra spaces. Also verify that your phone number includes the country code (+92).

"Calls not going through"

Check that your Twilio account has sufficient balance. Also make sure the phone number you purchased has "Voice" capability enabled.

Cost Breakdown

Example: 200 Orders/Month

Phone number rentalRs 650/month
200 verification calls × Rs 70Rs 14,000
Total Twilio CostRs 14,650
Compare to Traditional Service
Rs 40,000
You Save Rs 25,350/month!

You're All Set!

Now that Twilio is connected, Shippley will automatically verify all your COD orders. You'll catch 85-95% of fraudsters before shipping.

Start Your Free Trial

14-day free trial • No credit card required