1. Events
Cold Mail Reseller
  • Cold Mail Reseller API Documentation
  • Users
    • Retrieve all users
      GET
    • Get User Details
      GET
    • Create User
      POST
    • Update User Details
      PUT
    • Delete User
      DELETE
  • Geo
    • Get Countries List
      GET
    • Get States of a Country
      GET
  • Domains
    • Renewal
      • Domain Renewal Overview
      • Get domain renewal pricing
      • Renew domain
      • Enable or disable domain auto-renew
    • Get Domains For User
      GET
    • Suggest Available Domains
      POST
    • Get Single Available Domain
      POST
    • Check If Google Workspace Exists
      POST
    • Add domain forwarding
      POST
    • Add email forwarding
      POST
    • Add Google Client ID to Domain
      POST
    • Remove domains
      DELETE
  • Dns
    • Get dns records for a domain
      GET
    • Adds dns record
      POST
    • Update dns records
      PUT
    • Delete dns records
      DELETE
  • Orders
    • Get Order Details
    • Get Order Status
    • Creates order json
    • Order mailboxes (json)
    • Process the Order
    • Create Order
    • Add mailboxes to a subscription
  • Mailboxes
    • Get mailboxes for user
    • Get mailbox details by id
    • Get Mailbox Admin Details
    • Update mailbox details
    • Remove mailbox
  • Subscriptions
    • Get All Subscriptions
    • Renew Subscriptions
    • Toggle Auto renewal
    • Cancel Subscription
  • Webhooks
    • Overview
    • Events
      • Domain Events
      • Subscription Events
      • Mailbox Events
      • Prewarmup Events
  • Export
    • Re-export a mailbox (Oauth)
  • Pre-warmup
    • Get all pre warmed up mailboxes
    • Order pre-warmedup mailboxes
  • Get Wallet Details
    GET
  • Send error
    POST
  1. Events

Domain Events

Domain events are triggered when orders are placed to register domains or when domain registrations are renewed.

Overview#

The domain event lifecycle occurs in two scenarios:
1.
New domain registration — When a user orders a new domain
2.
Domain renewal — When an existing domain's registration period approaches expiration

domain.order.success#

This event is triggered when a domain is successfully registered with the registrar and added to the user's account.

When it occurs#

User places a domain order through the platform
The domain registrar confirms successful registration
The domain becomes active and accessible

Example Payload#

{
  "event": "domain.order.success",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "orderId": "NQ682GAVFTMYC2H6C87PPKPG5WXV",
    "domainId": "AH2BD0WYWSMQC9NQHTMES3TFK4TX",
    "domainName": "company.com",
    "creationTime": "2024-03-08T23:59:59Z",
    "expiryDate": "2025-03-08T23:59:59Z",
    "price": 15.88
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "domain.order.success"
eventIdstringUnique identifier for this event
data.userIdstringID of the user who placed the order
data.userEmailstringUser's email address
data.orderIdstringUnique order identifier
data.domainIdstringUnique domain identifier
data.domainNamestringThe registered domain name (e.g., company.com)
data.creationTimeISO 8601Timestamp when domain was registered
data.expiryDateISO 8601Timestamp when domain registration expires
data.pricenumberPrice paid for the domain

domain.order.failed#

This event is triggered when a domain order fails to be registered. This could happen due to domain availability, restrictions, or registrar errors.

When it occurs#

User orders a domain that's already taken
Domain name contains restricted phrases
Registrar has connectivity issues
Payment processing fails
User has insufficient wallet balance

Example Payload#

{
  "event": "domain.order.failed",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "jean@gmail.com",
    "message": "Domain contains restricted phrase(s)",
    "domainName": "norton360.com",
    "orderId": "WR3N4JEW3D76N6KGRQSG36SSHBXK",
    "price": 15.88
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "domain.order.failed"
eventIdstringUnique identifier for this event
data.userIdstringID of the user who placed the order
data.userEmailstringUser's email address
data.orderIdstringUnique order identifier
data.domainNamestringThe domain name that failed to register
data.messagestringHuman-readable reason for failure
data.pricenumberPrice that was attempted to charge

Common failure reasons#

"Domain unavailable" — Already registered by someone else
"Domain contains restricted phrase(s)" — Domain name violates policies
"Registrar error" — Technical issue with registrar
"Insufficient wallet balance" — User needs to add funds
"Invalid domain format" — Domain name doesn't meet requirements

Notes#

Multiple domains per order: An order can include multiple domains. You'll receive separate domain.order.* events for each domain.

domain.renewal.success#

This event is triggered when an existing domain registration is successfully renewed for another term.

When it occurs#

A domain's registration period is approaching expiration
Renewal is processed (automatically or manually)
Registrar confirms the renewal
Domain registration is extended by 1 year

Example Payload#

{
  "event": "domain.renewal.success",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "domainName": "company.com",
    "domainId": "AH2BD0WYWSMQC9NQHTMES3TFK4TX",
    "years": 1,
    "expireOn": "2026-03-08T23:59:59.000Z"
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "domain.renewal.success"
eventIdstringUnique identifier for this event
data.userIdstringID of the user
data.userEmailstringUser's email address
data.domainNamestringThe renewed domain name
data.domainIdstringUnique domain identifier
data.yearsnumberNumber of years renewed for (usually 1)
data.expireOnISO 8601New expiration timestamp

domain.renewal.failed#

This event is triggered when a domain renewal fails. This is separate from subscription renewal and indicates the domain registration itself couldn't be renewed.

When it occurs#

Renewal was charged but the registrar rejected it
Domain has been deleted at the registrar
Registrar had an error processing the renewal
Domain has too many rule violations
Important: Subscriptions linked to this domain cannot be renewed until the domain is fixed

Example Payload#

{
  "event": "domain.renewal.failed",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "domainName": "company.com",
    "domainId": "AH2BD0WYWSMQC9NQHTMES3TFK4TX",
    "years": 1,
    "error": "Registrar renewal failed with an unknown error."
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "domain.renewal.failed"
eventIdstringUnique identifier for this event
data.userIdstringID of the user
data.userEmailstringUser's email address
data.domainNamestringThe domain that failed to renew
data.domainIdstringUnique domain identifier
data.yearsnumberYears that renewal was attempted for
data.errorstringTechnical error message from registrar

Notes#

Domain renewal ≠ Subscription renewal: A domain is the actual registration with the registrar. A subscription is the mailbox accounts provisioned on that domain. Both can be renewed independently.
Grace period: After a domain expires, it enters a grace period (usually 7 days) where it can still be renewed. After that, it's expired.

See also#

Mailbox Events — What happens after domain registration succeeds
Subscription Events — How mailbox subscription renewal works
Modified at 2026-04-03 08:37:53
Previous
Overview
Next
Subscription Events
Built with