> ## Documentation Index
> Fetch the complete documentation index at: https://codking.tech/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Twilio account to Shopify

## What Is Twilio, Anyway?

Twilio is a cloud communications platform that businesses use to send SMS, make calls, and manage customer messaging at scale. Think of it as the engine behind millions of automated texts you receive every day—delivery updates, OTPs, appointment reminders, and more. Instead of building messaging infrastructure from scratch, companies simply plug into Twilio's network and let it handle the delivery.

For a COD-based business, that translates into one thing: reliable, scalable SMS notifications for every order you process.

## What's In It for You?

1. **Lower Cost Per Message at Scale:** COD King's free plan works well for lower order volumes, but as your business grows, so does your messaging bill. Twilio's pay-as-you-go pricing typically works out cheaper once you're sending in bulk, so the more orders you handle, the more you save by owning your own account.
2. **More Control Over Your Sender Number:** Connecting your own Twilio account means you get your own dedicated phone number as the Sender ID. Customers see consistent messaging from the same number every time, which builds familiarity and trust—and reduces the chance your texts get mistaken for spam.
3. **Better Delivery Reliability:** Twilio operates a global carrier network built specifically for high-volume, time-sensitive messaging. That means fewer delays and drops during peak order periods—exactly when you need notifications to land on time.
4. **Transparent Usage Tracking:** Once connected, you can monitor your own Twilio console for delivery logs, spend, and message history. That level of visibility is hard to get on a shared, default provider.
5. **Room to Grow:** As your order volume scales, your Twilio setup scales with it. There's no need to re-platform or renegotiate—you just top up your wallet and keep going.

## How to Connect Twilio to COD King

### Step 1: Create Your Twilio Account

Start by [signing up for Twilio](http://www.twilio.com/referral/1CwBKG). It's free to create an account, and you'll just need to verify your email to get going.

### Step 2: Grab Your Credentials

Once you're verified, log in and head to the [Twilio Console](https://console.twilio.com/). Right there on your dashboard, you'll find two key pieces of information:

* **Account SID**
* **Auth Token**

<Note>
  Copy **Account SID & Auth Token**—you'll need them in the next step.
</Note>

<Frame>
  <img src="https://mintcdn.com/codking/WgOqBKk_fLy7cPyR/images/screenshot-08_21,-05_45_06-PM.jpg?fit=max&auto=format&n=WgOqBKk_fLy7cPyR&q=85&s=b8cbf4f2d3488bf27dd2ed8c90e9971b" alt="Screenshot 08 21, 05 45 06 PM" width="1343" height="818" data-path="images/screenshot-08_21,-05_45_06-PM.jpg" />
</Frame>

### Step 3: Plug Twilio Into COD King

Now switch over to your COD King dashboard:

1. Go to **Settings → Local SMS gateway**

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/sms-01-open-local-sms-gateway.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=e84afe2104ce5d646baa035a4ea2495f" alt="Local SMS gateway in COD King Settings" width="1027" height="534" data-path="images/sms-01-open-local-sms-gateway.png" />
</Frame>

2. Under **Local SMS Operator Integration**, choose **Twilio (Global)** from the Network Provider dropdown

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/sms-twilio-provider.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=c6700346cc2496716deb57378fea8cde" alt="Twilio (Global) selected as Network Provider" width="1516" height="520" data-path="images/sms-twilio-provider.png" />
</Frame>

3. Paste in your **Account SID** and **Auth Token**

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/sms-twilio-credentials.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=2209c52b5cab00d1208df6ff57d71fc1" alt="Account SID and Auth Token fields" width="1516" height="584" data-path="images/sms-twilio-credentials.png" />
</Frame>

### Step 4: Buy a Phone Number

Head back to Twilio and go to **Phone Numbers → Manage → [Buy a Number](https://console.twilio.com/us1/develop/phone-numbers/manage/search?frameUrl=%2Fconsole%2Fphone-numbers%2Fsearch%3Fx-target-region%3Dus1\&currentFrameUrl=%2Fconsole%2Fphone-numbers%2Fsearch%3FisoCountry%3DUS%26types%255B%255D%3DLocal%26types%255B%255D%3DTollfree%26capabilities%255B%255D%3DSms%26capabilities%255B%255D%3DMms%26capabilities%255B%255D%3DVoice%26capabilities%255B%255D%3DFax%26searchTerm%3D%26searchFilter%3Dleft%26searchType%3Dnumber%26x-target-region%3Dus1%26__override_layout__%3Dembed%26bifrost%3Dtrue)**. Pick your country, make sure SMS capability is selected, and choose any number you like. Confirm the terms and complete the purchase.

<Frame>
  <img src="https://mintcdn.com/codking/WgOqBKk_fLy7cPyR/images/screenshot-08_21,-06_16_12-PM.jpg?fit=max&auto=format&n=WgOqBKk_fLy7cPyR&q=85&s=af5cb58c5bb6c25524f65f158ffb1fc6" alt="Screenshot 08 21, 06 16 12 PM" width="1343" height="818" data-path="images/screenshot-08_21,-06_16_12-PM.jpg" />
</Frame>

<Note>
  If Twilio prompts you for an emergency address, feel free to add one—it's optional but good practice.
</Note>

### Step 5: Set Your Sender ID

Copy the number you just purchased (strip out any spaces), then paste it into the **Sender ID** field back in COD King's **Local SMS gateway** settings, just below the Auth Token.

### Step 6: Fund Your Twilio Wallet

Almost there. Go back to your [Twilio Console](https://console.twilio.com/?frameUrl=/console) and click **Upgrade** at the top. Fill in your billing details, add your tax information, and load your wallet with however much you'd like to start with.

**Pro tip:** Turn on auto-recharge. It's a small setting that saves you from ever having a notification fail because your balance ran dry mid-campaign.

### Step 7: Test, Save, and Go Live

Before you fully commit, click **Save** in the **Unsaved changes** bar at the top of the page, then scroll down to the **Test Your Integration** section on the same **Local SMS gateway** page, enter your phone number with the country code in the **Phone Number** field and click **Send Test SMS** to confirm everything's wired up correctly. Once it lands in your inbox, head to **Plans**, pick a plan that matches your order volume, and hit subscribe.

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/sms-test-your-integration-blue.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=092f612376fb3dac88e1e4d64ddd9a27" alt="Test Your Integration section" width="1516" height="492" data-path="images/sms-test-your-integration-blue.png" />
</Frame>

Last but not least—save **your changes** again whenever you update these settings. It's a small click that's easy to forget after all that setup.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.