Zapmail
latest
  • latest
  • v1
  1. domains
Zapmail
latest
  • latest
  • v1
  • Zapmail Docs
  • users
    • Retrieve User Details
      GET
  • workspaces
    • Retrieve all workspaces
      GET
    • Create new workspace
      POST
    • Update workspace
      PUT
  • billing
    • Add Billing Details
      POST
    • Update Billing Details
      PUT
  • mailbox
    • Retrieve All Mailboxes
      GET
    • Get Mailbox Details by ID
      GET
    • Assign New Mailboxes to Domains
      POST
    • Update mailbox
      PUT
    • Remove mailboxes on next renewal
      PUT
    • Get Authenticator code
      GET
  • payments & wallet
    • Add balance to wallet
    • Get wallet balance
    • Enable auto recharge
  • export
    • Export mailboxes
    • Add third party account details
    • Update third party account details
  • subscriptions
    • Get all subscriptions
    • Cancel subscription
    • Upgrade existing subscription
  • domains
    • Retrieve All Domains
      GET
    • List Assignable Domains
      GET
    • Add DMARC record
      POST
    • Add Domain forwarding
      POST
    • Get Name servers to connect domain
      POST
    • Verify Name Server Propagation
      POST
    • Connect Domain with Zapmail
      POST
    • Enable email forwarding
      POST
    • Remove email forwarding
      DELETE
    • Enable catch all emails
      POST
    • Remove catch all emails
      DELETE
    • Check DNS records
      POST
    • Remove unused domains
      DELETE
    • Get available domains for registration
      POST
    • Get domains purchase payment link
      POST
    • Get domain connection requests
      GET
    • Remove domain connection requests
      DELETE
    • Connect Domain with Zapmail (New)
      GET
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  1. domains

Get domains purchase payment link

POST
/v2/domains/buy

Purchase Domain#

This endpoint allows you to get a list of domains that are available for registration and purchase.

Endpoint#

Request Body#

NameTypeDescription
domainNamestringThe domain name that you want to purchase.
yearsnumber (Optional)The number of years you want to register the domain for. Default is 1.
useWalletbooleanSet to true if you want to use wallet balance for the purchase.

Example Request#

{
    "domains": [
        {
            "domainName": "domain.com",
            "years": 1
        }
    ],
    "useWallet": false
}

Request

Body Params application/json
domains
array [object {2}] 
required
domainName
string 
required
years
integer 
required
useWallet
boolean 
required
Example
{
    "domains": [
        {
            "domainName": "domain.com",
            "years": 1
        }
    ],
    "useWallet": false
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zapmail.ai/api/v2/domains/buy' \
--header 'Content-Type: application/json' \
--data-raw '{
    "domains": [
        {
            "domainName": "domain.com",
            "years": 1
        }
    ],
    "useWallet": false
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "message": "Your payment Link is generated",
    "paymentLink": "https://payment.example.com"
}
Modified at 2025-04-03 06:54:23
Previous
Get available domains for registration
Next
Get domain connection requests
Built with