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

# How to clear external dependencies

> Step 7. Connect your domain, give each integration a key, prove your labels scan, and give every old link an owner: the launch work that waits on other people.

> [card] [Open in TWICE Admin](https://admin.twicecommerce.com/settings/connect/domains)
>
> settings/connect/domains

Start this step early. Each part waits on DNS, a supplier or someone else's system, so none of it is hard and all of it is slow. Finish it before [Test your processes](https://www.twicecommerce.com/docs/guides/launch/test-end-to-end), so the tests run against your real address. [Domains](https://www.twicecommerce.com/docs/settings/domains.md) explains the store address options.

## Prerequisites

> [!WARNING]
>
> **Required permissions:** Admin or Owner, for **Domains** and **Integrations & API**. A Manager sees both pages empty. See [Users & Roles](https://www.twicecommerce.com/docs/settings/users-roles.md).

> [!NOTE]
>
> **Have ready before you start:**
>
> * **Access to your domain's DNS settings**, or the person who has it.
> * **A list of every system that will talk to TWICE**: accounting, your own website, a booking widget.
> * **A list of every place your old links appear**, each with a named owner: your website, business listings, social profiles, email signatures, ads, and QR codes on print and signage.
> * **A label template**, if you label stock: a document template under **Settings → Documents** whose **Content** is a stock item, with the item's barcode on it. Print it on the label printer and scan it with the scanner your counter will use.

## The walkthrough

**1. Connect your domain**

Open **Settings → Domains** and click **Connect a domain** on **Custom domains**. Enter the address in **Domain** and click **Continue**. Make it primary at [Go live](https://www.twicecommerce.com/docs/guides/launch/go-live), not now.

**2. Add the DNS record**

**Domain setup** shows one record with its **Type**, **Host** and **Value**. Add it at your DNS provider, then click **Verify**. The status moves from **Verifying** to **Connected** once DNS has updated, which can take hours.

**3. Give each integration a key**

Open **Settings → Integrations & API** and click **Create key** on **API keys** for each system that talks to TWICE. Give each key only the areas it uses, and copy it from **Store your API key**: it is shown once.

**4. Add your webhooks**

On the same page, click **Create webhook** for each event a connected system listens for, then enter its **Endpoint URL**. Trigger the event once with real data, and check its deliveries arrive.

**5. Print a test label**

Open a stock item from **Inventory → Stock items**, click **More** and choose **Print**. Pick your label template, check the preview, and print one sheet on the printer your counter will use.

**6. Scan it at the counter**

Scan the printed label at the counter, at the angle and distance staff will use. The **Scanned items** drawer opens with the unit on its own row. Print the rest only once a test sheet scans every time.

**7. Replace every old link**

Open each listing and collection on your storefront and copy its address. Have each link's owner replace the old address with it, and reprint QR codes that point at your old site.

## How do I know it worked?

* Your custom domain reads **Connected**, and you know which address goes primary at go-live.
* Every integration has its own key and has been tested with real data.
* A printed label scans reliably at the counter.
* Every place your old links appear has been updated, or has an owner and a date.

## Troubleshooting / common pitfalls

> [accordion] The domain stays at Verifying or reads Failed
>
> DNS has not updated, or the record does not match. Check it under **View setup instructions**, then **Refresh status**. See [Domains](https://www.twicecommerce.com/docs/settings/domains.md).

> [accordion] An integration gets 403 Forbidden
>
> Its key lacks the area the request needs. Add it under **Edit access**. See [API keys](https://www.twicecommerce.com/docs/concepts/integrations/api-keys.md).

> [accordion] A label will not scan
>
> The code format or print size does not suit your scanner. See [Stock codes](https://www.twicecommerce.com/docs/concepts/inventory/stock-codes.md#qr-codes-and-barcode-scanning).

## Related articles

> [card] [Domains](https://www.twicecommerce.com/docs/settings/domains.md)
>
> Your store address, and the primary domain.

> [card] [Integrations and API](https://www.twicecommerce.com/docs/settings/integrations.md)
>
> API keys, webhooks and connected systems.

> [card] [Stock codes](https://www.twicecommerce.com/docs/concepts/inventory/stock-codes.md)
>
> Code formats, labels and scanning.

> [card] [Test your processes](https://www.twicecommerce.com/docs/guides/launch/test-end-to-end)
>
> The next step.


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