# Installing Address Validation & Postcode Lookup for BigCommerce

This guide walks you through installing and configuring the Ideal Postcodes address validation integration for BigCommerce. The integration enables address finder or postcode lookup at checkout, account address forms and admin pages.

## Overview

**What this integration provides:**

* Real-time UK address validation and postcode lookup
* Enhanced checkout experience with faster address entry
* Reduced delivery errors and customer support tickets
* Improved data quality across all address collection points

**Choose Your Method:** Use the integration for Address Finder or UK Postcode Lookup to enhance your BigCommerce checkout experience. If unsure which method is best, read our [Address Finder vs Postcode Lookup comparison guide](https://ideal-postcodes.co.uk/guides/postcode-lookup-vs-address-finder) or [watch the video](https://www.youtube.com/watch?v=2l6armAn25k).

## Where Address Lookup is Applied

The integration adds address validation or postcode lookup to:

* **Checkout Billing Form** - Customer billing address entry
* **Checkout Shipping Form** - Customer shipping address entry
* **Account Registration** - New customer account creation
* **Account Management** - Customer address book management
* **Admin Dashboard** - Via [Browser Extension](/docs/integrations/browser-extension.md) (optional)

## Screenshots

### Address Finder

![Activate address autocompletion on your address collection forms-screenshot](https://img.ideal-postcodes.co.uk/bigcommerce-autocomplete.png)

### Postcode Lookup

![Enable Postcode Lookup on your address collection forms-screenshot](https://img.ideal-postcodes.co.uk/bigcommerce-postcode-lookup.png)

If you prefer to watch a video, here’s a tutorial for you.

[BigCommerce Integration Tutorial](https://www.youtube.com/embed/kR_rXR8xMsU?mute=1)

***

## 1. Sign up for a Free Trial and Get Your API Key

Before installing the integration, you'll need an Ideal Postcodes API Key.

**Steps:**

1. Sign up for a free account at [ideal-postcodes.co.uk/sign-up](https://account.ideal-postcodes.co.uk/users/sign_up)
2. Navigate to the **KEYS** section in your account
3. Copy your API Key - you'll need this to complete the setup in BigCommerce. It's a string of characters that begins with the letters `ak_`

💡 **All new accounts include 50 free test credits - no payment required.**

***

## 2. Install the BigCommerce Integration

**Installation Overview:**

We recommend installing via both **Script Manager** and **Site Verification Tags** for complete coverage:

* **Script Manager** - Official method for checkout customisation (required for checkout address validation)
* **Site Verification Tags** - Enables address validation on account registration and address book pages

### Prepare Your Script

Both installation methods use the same script with your API Key. You'll need this script ready:

**Script Template:**

index.htmlhtml

```html
<script>
	window.idpcConfig = {
		apiKey: "ak_xxxxxxxxxx", // Replace with your actual API Key
	};
</script>

<script
	async
	type="text/javascript"
	crossorigin="anonymous"
	src="https://cdn.jsdelivr.net/npm/@ideal-postcodes/bigcommerce@3"
></script>
```

**Important:** Replace `ak_xxxxxxxxxx` with your actual API Key from Step 1.

### Method A: Install via Script Manager (Required for Checkout)

**Best for:** Checkout address validation (billing and shipping forms).

**Steps:**

1. From your BigCommerce Admin, go to **Storefront** → **Script Manager**

2. Click the blue **Create a Script** button

3. Configure the script with these settings:

   * **Name:** Ideal Postcodes Address Validation
   * **Location on page:** Footer
   * **Pages:** Checkout
   * **Script category:** Essential
   * **Script type:** Script

   ![Edit script page](https://img.ideal-postcodes.co.uk/bigcommerce-script-settings-2026.png)

4. In the **Script contents** editor, paste your prepared script (with your API Key)

5. Click **Save**

   ![Insert initialisation code](https://img.ideal-postcodes.co.uk/bigcommerce-script-contents-2026.png)

### Method B: Install via Site Verification Tags (Optional)

**Best for:** Account registration and address book pages.

**When to use:** If you want address validation beyond checkout forms.

**Steps:**

1. From your BigCommerce Admin, go to **Settings** and click on **Data Solutions** under **Advanced**

   ![Data Solutions under Advanced in BigCommerce Settings](https://img.ideal-postcodes.co.uk/bigcommerce-data-solutions-2026.png)

2. Click **Connect** next to the **Site Verification Tags**

3. Paste your prepared script (with your API Key) into the text area

4. Click **Save**

   ![Manually add Site Verification Tags setup](https://img.ideal-postcodes.co.uk/bigcommerce-site-verification-tags-2026.png)

***

## 3. Configure Address Lookup Options (Optional)

By default, both Address Finder and Postcode Lookup are enabled. You can customise the behaviour by modifying the configuration in your script.

### Default Configuration

The integration comes with these default settings:

widget-init.jsjavascript

```javascript
window.idpcConfig = {
	apiKey: "ak_xxxxxxxxxx", // Your API Key (required)

	// Enable/disable lookup methods
	postcodeLookup: true, // Enable Postcode Lookup
	autocomplete: true, // Enable Address Finder (autocomplete)

	// Field population options
	populateOrganisation: true, // Auto-fill company name from address
	populateCounty: false, // Auto-fill county field (not recommended for UK)

	// Advanced configuration (optional)
	autocompleteOverride: {}, // Override Address Finder settings
	postcodeLookupOverride: {}, // Override Postcode Lookup settings
};
```

### Configuration Options

| Setting                  | Type    | Default | Description                                        |
| ------------------------ | ------- | ------- | -------------------------------------------------- |
| **apiKey**               | String  | ""      | Your Ideal Postcodes API Key (required)            |
| **postcodeLookup**       | Boolean | true    | Enable traditional postcode lookup                 |
| **autocomplete**         | Boolean | true    | Enable Address Finder (type-ahead search)          |
| **populateOrganisation** | Boolean | true    | Auto-fill company name field from selected address |
| **populateCounty**       | Boolean | false   | Auto-fill county field (not recommended for UK)    |

💡 **Tip:** For more advanced configuration options, see our [integration configuration guide](https://ideal-postcodes.co.uk/guides/integration-configuration).

***

## 4. Test the Integration

To verify the address validation is working:

1. Go to your BigCommerce checkout page
2. Begin typing an address in the billing or shipping address field
3. The Ideal Postcodes address lookup tool should automatically suggest addresses as you type

***

## 5. Advanced: Supported Forms and Field Selectors

**When needed:** For custom implementations or troubleshooting.

The integration automatically detects and binds to BigCommerce address forms using these CSS selectors:

### Billing Address (Base)

field-selectors.jsonjson

```json
{
	"line_1": "#FormField_8",
	"line_2": "#FormField_9",
	"post_town": "#FormField_10",
	"postcode": "#FormField_13",
	"country": "#FormField_11"
}
```

### Shipping Address

field-selectors.jsonjson

```json
{
	"line_1": "#FormField_18",
	"line_2": "#FormField_19",
	"post_town": "#FormField_20",
	"postcode": "#FormField_23",
	"country": "#FormField_21"
}
```

### Customer Address Book

field-selectors.jsonjson

```json
{
	"line_1": "#shipAddress1",
	"line_2": "#shipAddress2",
	"post_town": "#city",
	"postcode": "#postCode",
	"country": "#country"
}
```

***

## 6. Version Management

### Automatic Updates

The integration automatically updates to the latest version using the `@3` version suffix in the script URL. This ensures you always have the latest features and bug fixes.

### Version Pinning (Optional)

**When to use:** If you need to lock to a specific version for stability.

To pin a specific version, replace `@3` with a specific version number in the script URL:

index.htmlhtml

```html
<script
	async
	type="text/javascript"
	crossorigin="anonymous"
	src="https://cdn.jsdelivr.net/npm/@ideal-postcodes/bigcommerce@3.2.0"
></script>
```

All versions are tracked in our [Changelog](https://github.com/ideal-postcodes/bigcommerce/releases).

***

## 7. Admin Dashboard Integration (Optional)

![BigCommerce Admin Dashboard Integration-screenshot](https://img.ideal-postcodes.co.uk/bigcommerce-admin-demo-new-2026.gif)

**When needed:** If you want address validation in your BigCommerce admin panel.

To enable address validation on admin pages, install our [Browser Extension](/docs/integrations/browser-extension.md). This adds address lookup functionality to order management and customer address forms in your admin dashboard.

***

## 8. Troubleshooting

| Issue                                   | Solution                                                                                                                                                                                 |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| No address suggestions appear           | • Verify API Key is correct in your script<br />• Check key balance in your account dashboard<br />• Ensure country is set to UK territory<br />• Check browser console (F12) for errors |
| Script not loading                      | • Verify script is saved in Script Manager or Site Verification Tags<br />• Check that script location is set to "Footer"<br />• Clear browser cache and test in incognito mode          |
| Works on checkout but not account pages | • Install via Site Verification Tags (Method B) for account page support<br />• Verify Site Verification Tags checkbox is enabled                                                        |
| Address fields not populating           | • Check that field selectors match your theme<br />• Verify custom theme hasn't changed default field IDs<br />• Review browser console for JavaScript errors                            |

info

Need help? Contact our support team via live chat on our website or email <support@ideal-postcodes.co.uk>.
