Marketplace Domain Invalid

While trying to register a marketplace domain as documented on (https://developer.apple.com/documentation/appstoreconnectapi/add_a_marketplace_domain) I'm getting the following error:

{'errors': [{'id': '911f9861-23b3-42a2-80d2-a46bc7218246', 'status': '409', 'code': 'ENTITY_ERROR.ATTRIBUTE.INVALID', 'title': 'The provided entity includes an attribute with an invalid value', 'detail': 'Provided domain is invalid.', 'source': {'pointer': '/data/attributes/domain'}}]}

I've tried multiple forms of writing the same domain and keep getting the same error. Wondering if there are any special rules for the domain format that I'm unaware of.

Replies

The domain string must be a domain name, e.g. example.com or example.co.uk, without other components such as subdomains or hostnames.