This article shares possible use cases your implementation could support, as well as example flows.
You're certainly not limited to these use cases, but they can be a helpful jumping off point
as you plan your app's implementation.
You could help site owners identify an available, spot-on domain.
Then, you or the site owner can purchase the domain and assign it to their Wix site.
To discover a domain:
- Call Suggest Domains
to retrieve a list of relevant available domains.
- Display the suggestions to the site owners and let them select their preferred choice.
- If the relevant site is a free Wix site, call
Resellers Create Package v2
to assign a Premium plan to it. Make sure to save the
productInstanceId
.
- Call Resellers Create Package v2
to create a product instance for the relevant domain TLD and privacy.
- Prompt the site owner to register the domain through Wix at https://manage.wix.com/account/domains, or register the domain on your own.
- If you register the domain on your own, connect the domain by following one of the use cases described in Connected Domains.
You could help the site owner check the availability of their favorite
domain. Then, the site owner can purchase the domain and assign it to their
site.
To check a domain's availability and register it:
- Ask the site owners what their favorite domain is.
- Call Check Domain Availability
to verify that the domain is still available. If its isn't available, start
over or follow the
flow above.
- If the relevant site is a free Wix site, call
Resellers Create Package v2
to assign a Premium plan to it. Make sure to save the
productInstanceId
.
- Call Resellers Create Package v2
to create a product instance for the relevant domain TLD and privacy.
- Prompt the site owner to register the domain through Wix at https://manage.wix.com/account/domains, or register the domain on your own.
- If you register the domain on your own, connect the domain by following one of the use cases described in Connected Domains.