# enableCustomDomain

Starts setting up a custom domain for the hosted payment page of the current account. Requests an SSL certificate and returns the account with `customDomainConfig.certificateDnsRecord` populated for the merchant to add at their DNS provider. `domain` must be on the same registered domain as the business website (e.g. `pay.example.com` for `https://example.com`), and the account needs `business.website` and `business.confirmWebsite`. Fails when the account already has a custom domain or a setup in progress; call `disableCustomDomain` first. A weekly fee is charged while the custom domain is active. Arguments: - `domain`: Custom domain to serve the hosted payment page on, for example `pay.example.com`. Must be on the same registered domain as the business website.

```
enableCustomDomain(

  domain: String!

): Account!
```

### Arguments[​](#arguments "Enlace directo al Arguments")

#### [`enableCustomDomain.domain`](#domain) ● [`String!`](https://docs.monei.com/es/apis/graphql/types/scalars/string.md) non-null scalar[​](#domain "Enlace directo al domain")

### Type[​](#type "Enlace directo al Type")

#### [`Account`](https://docs.monei.com/es/apis/graphql/types/objects/account.md) object[​](#account- "Enlace directo al account-")

Merchant account: business details, settings and onboarding status.
