> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Error Messages ## Article: Error Messages ## Article Link: https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/error-messages.md ## Article Content: # Connected Domains API: Errors This article outlines error messages that might be issued when calling endpoints of the Connected Domains API. ## Create Connected Domain Errors The [Create Connected Domain](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-v1/create-connected-domain.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| | --------------------------- | ----------------------------------- | ------------------------------------------------------------ | ------------------------------ | | `INVALID_ARGUMENT (400)` | `Invalid domain` | Unable to connect domain ``, it's available for purchase. | You must purchase the domain before you can connect it to a Wix site. | | `INVALID_ARGUMENT (400)` | `Invalid domain` | Domain `` is Wix restricted. | Not all TLDs are supported for Wix sites. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for a list of supported TLDs and then try connecting a domain that's supported. | | `INVALID_ARGUMENT (400)` | `Invalid connection type` | Invalid connection type ``. | Choose a connection type that's supported for the domain. To connect a root domain, you can only connect via `POINTING` or `NAMESERVERS`. For subdomains, you aren't allowed to pass any connection type. | | `INVALID_ARGUMENT (400)` | `DOMAINS_GUID_NOT_VALID` | Wix site id and/or Wix account ID is invalid. | Check that the site and account ID are correct. | | `ALREADY_EXISTS (409)` | `DOMAINS_ALREADY_EXISTS` | Domain `` with different settings is already connected. | Make sure to connect the domain only once to the relevant account or site. | | `ALREADY_EXISTS (409)` | `DOMAINS_ALREADY_EXISTS` | Domain `` with different connection type is already connected. | Make sure to connect the domain only with the relevant connection type to the account or site. | | `PERMISSION_DENIED (403)` | `DOMAINS_PERMISSION_DENIED` | Permission denied for account ID ``. | Check that the account ID is correct and that you have permissions to access it. | | `PERMISSION_DENIED (403)` | `DOMAINS_DOMAIN_NOT_PERMITTED` | Domain `` isn't permitted for the account. | Make sure that you have permissions to access the account. | | `PERMISSION_DENIED (403)` | `INVALID_DOMAINS_PREVIEW_RECORDS` | Missing A, and/or CName, and/or NS preview records for domain ``. | Make sure to pass the relevant DNS records. | | `PERMISSION_DENIED (403)` | `DOMAINS_GUID_NOT_FOUND` | - | Make sure to pass a valid account ID. | | `PERMISSION_DENIED (403)` | `NON_PREMIUM_SITE` | Domain `` can't be assigned to free Wix site ``. | Make sure to [assign a Premium Plan](https://dev.wix.com/docs/rest/account-level/resellers/packages-and-product-instances/create-package-v2.md) to the site before connecting the domain. | ## Get Connected Domain Errors The [Get Connected Domain](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-v1/get-connected-domain.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| | --------------------------- | ----------------------------------- | ------------------------------------------------------------ | ------------------------------ | | `INVALID_ARGUMENT (400)` | `DOMAINS_GUID_NOT_VALID` | Wix site and/or account ID are invalid. | Check that the site and account ID are correct. | | `NOT_FOUND (404)` | `NOT_FOUND` | Domain name `` wasn't found. | Make sure to pass the correct domain name. | | `PERMISSION_DENIED (403)` | `DOMAINS_PERMISSION_DENIED` | Permission denied for account ID ``. | Check that the account ID is correct and that you have permissions to access it. | | `PERMISSION_DENIED (403)` | `DOMAINS_DOMAIN_NOT_PERMITTED` | Domain `` isn't permitted for the account. | Make sure that you have permissions to access the account. | | `PERMISSION_DENIED (403)` | `DOMAINS_GUID_NOT_FOUND` | - | Make sure to pass a valid account ID. | ## Get Connected Domain Setup Info Errors The [Get Connected Domain Setup Info](https://dev.wix.com/docs/api-reference/account-level/domains/connected-domains/connected-domain-setup-info-v1/get-connected-domain-setup-info.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| | --------------------------- | ----------------------------------- | ------------------------------------------------------------ | ------------------------------ | | `INVALID_ARGUMENT (400)` | `DOMAINS_GUID_NOT_VALID` | Wix site and/or account ID are invalid. | Check that the site and account ID are correct. | | `PERMISSION_DENIED (403)` | `DOMAINS_PERMISSION_DENIED` | Permission denied for account ID ``. | Check that the account ID is correct and that you have permissions to access it. | | `PERMISSION_DENIED (403)` | `DOMAINS_DOMAIN_NOT_PERMITTED` | Domain `` isn't permitted for the account. | Make sure that you have permissions to access the account. | | `PERMISSION_DENIED (403)` | `DOMAINS_GUID_NOT_FOUND` | - | Make sure to pass a valid account ID. |