| Name | Type | Description |
|---|---|---|
domainName | string | The domain name that you want to purchase. |
years | number (Optional) | The number of years you want to register the domain for. Default is 1. |
useWallet | boolean | Set to true if you want to use wallet balance for the purchase. |
{
"domainName": "example.com",
"years": 1,
"useWallet": true
}curl --location --request POST 'https://api.zapmail.ai/api/v1/domain/buy-domain'{
"message": "Your payment Link is generated",
"paymentLink": "https://payment.example.com"
}