Zapmail
v1
  • latest
  • v1
  1. domains
Zapmail
v1
  • 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
  • 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
  • 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
  1. domains

Get domains purchase payment link

POST
/v1/domain/buy-domain

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#

{
    "domainName": "example.com",
    "years": 1,
    "useWallet": true
}

Request

None

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/v1/domain/buy-domain'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
  "message": "Your payment Link is generated",
  "paymentLink": "https://payment.example.com"
}
Previous
Get available domains for registration
Built with