1. Orders
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 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
    • Get Order Status
      GET
    • Creates order json
      POST
    • Order mailboxes (json)
      POST
    • Process the Order
      POST
    • Create Order
      POST
    • Add mailboxes to a subscription
      POST
  • Mailboxes
    • Get mailboxes for user
    • Get mailbox details by id
    • Get Mailbox Admin Details
    • Update mailbox details
    • Remove mailbox
  • Subscriptions
    • 1+ Year Subscriptions
      • One Plus Year Subscription Overview
      • Subscription Recreation
    • Get All Subscriptions
    • Renew Subscriptions
    • Toggle Auto renewal
    • Cancel Subscription
  • Webhooks
    • Overview
    • Events
      • Mailbox Events
      • Prewarmup Events
      • Domain Events
      • Subscription Events
  • Export
    • Platform
      • Platform Exports API
      • Get Connected Platforms
      • Add Platform Credentials
      • Remove Platform Credential
      • Export Mailboxes
    • Re-export a mailbox (Oauth)
  • Pre-warmup
    • Sandbox
      • Sandbox Pre-Warmup Integration
      • [SANDBOX] - Get All Pre-Warmup Mailboxes
      • [SANDBOX] - Order Pre-Warmup Mailboxes
      • [SANDBOX] - Reset Pre-Warmup Data
    • Get All Pre-Warmup Mailboxes
    • Order Pre-Warmup Mailboxes
  • Get Wallet Details
    GET
  • Send error
    POST
  1. Orders

Creates order json

POST
/orders/json
Creates a new order for domain registration and mailbox setup.

Query Parameters#

ParameterTypeRequiredDescription
userIdstringYesThe ID of the user

Request Body#

The request body should be in application/json format.

domains#

Type: array of objects
Required: Yes
Description: List of domains to be registered

Domain Object Fields:#

FieldTypeRequiredDescription
domainstringYesThe name of the domain to register
yearsintegerYesNumber of years for domain registration
forwardTostringNoDestination to which the domain should forward

mailboxes#

Type: object
Required: Yes
Description: Mapping of domain names to their mailbox configurations. Domain on which mailboxes are to be assigned.

Mailbox Array Fields:#

FieldTypeRequiredDescription
usernamestringYesUsername for the mailbox
firstNamestringYesFirst name of the mailbox user
lastNamestringYesLast name of the mailbox user
profilePicturestringNoURL of the user's profile picture

billingCycle#

Type: string
Required: Yes
Description: Billing cycle for the order
Allowed value: MONTHLY

confirm#

Type: boolean
Required: No
Description: If true, automatically process the order. Please make sure to have enough balance in your wallet.

serviceProvider#

Type: enum<string>
Required: No
Description: Type of email service provider
Default: GOOGLE
Allowed values: GOOGLE, MICROSOFT

microsoftOauthRoute#

Type: string
Required: No (Required for Microsoft mailboxes)
Description: OAuth route for Microsoft mailboxes to export them

google#

Type: object
Required: No (Required for Google mailboxes)
Description: Google-specific OAuth configuration

Google Object Fields:#

FieldTypeRequiredDescription
googleOauthRoutestringNoThe Google OAuth URL
clientIdstringNoClient ID of your platform
appNamestringNoApp name shown after entering client ID in Admin Console

autoRenew#

Type: boolean
Required: No
Description: Indicates whether the order will be automatically renewed
Note: This flag applies to mailboxes renewal only

Order Processing#

✅ Confirmed Orders (confirm: true)#

When confirm is set to true:
Order will be created and automatically queued for processing
Your wallet must have sufficient balance to cover the order cost
Processing begins immediately after creation
Returns 200 OK on success

⏸️ Unconfirmed Orders (confirm: false)#

When confirm is set to false:
Order will be created but not processed
To process the order later, use the Process Order endpoint
Useful for reviewing order details before committing
Returns 201 OK on success

Partial Success Response#

If the request contains multiple domains or mailbox entries, some items may be processed successfully while others fail validation.

What Happens#

The order may still be created successfully
Successful items will be included in the order
Failed items will be returned in the metadata field
Each failed item contains the reason for failure

Common Failure Reasons in metadata#

Workspace validation failed : The order could not be completed because the request failed during processing, as the domain is already associated with an existing Google Workspace account.
Contains restricted phrase : The order could not be completed because it contains restricted phrase(s) that may violate intellectual property, promote violence, or involve illegal activities.

Important Notes#

Wallet Balance: Ensure sufficient balance in your wallet when using confirm: true
Service Provider: For Google mailboxes, the google object is required. For Microsoft mailboxes, microsoftOauthRoute is required

Request

Authorization
API Key
Add parameter in header
cmr-x-api-key
Example:
cmr-x-api-key: ********************
or
Query Params

Body Params application/json

Example
{
    "domains": [
        {
            "domain": "domain.com",
            "years": 1,
            "forwardTo": "coldmailreseller.com"
        }
    ],
    "mailboxes": {
        "domain.com": [
            {
                "username": "email1",
                "firstName": "john",
                "lastName": "doe",
                "profilePicture": "https://unsplash.com/photos/a-white-sculpture-is-shown-against-a-white-background-As9ruviI79Q"
            },
            {
                "username": "email1",
                "firstName": "john",
                "lastName": "doe",
                "profilePicture": "https://unsplash.com/photos/a-white-sculpture-is-shown-against-a-white-background-As9ruviI79Q"
            }
        ]
    },
    "billingCycle": "MONTHLY",
    "confirm": false,
    "serviceProvider": "GOOGLE",
    "microsoftOauthRoute": "",
    "google": {
        "googleOauthRoute": "https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?access_type=offline...",
        "clientId": "549360251880-maeh4okn7btu9cjtf0l2bt1t5b22sbf8.apps.googleusercontent.com",
        "appName": "Outreach App"
    },
    "autoRenew": false
}

Request Code 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 'https://customers.coldmailreseller.com/api/v1/integration/orders/json?userId=undefined' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "domains": [
        {
            "domain": "domain.com",
            "years": 1,
            "forwardTo": "coldmailreseller.com"
        }
    ],
    "mailboxes": {
        "domain.com": [
            {
                "username": "email1",
                "firstName": "john",
                "lastName": "doe",
                "profilePicture": "https://unsplash.com/photos/a-white-sculpture-is-shown-against-a-white-background-As9ruviI79Q"
            },
            {
                "username": "email1",
                "firstName": "john",
                "lastName": "doe",
                "profilePicture": "https://unsplash.com/photos/a-white-sculpture-is-shown-against-a-white-background-As9ruviI79Q"
            }
        ]
    },
    "billingCycle": "MONTHLY",
    "confirm": false,
    "serviceProvider": "GOOGLE",
    "microsoftOauthRoute": "",
    "google": {
        "googleOauthRoute": "https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?access_type=offline...",
        "clientId": "549360251880-maeh4okn7btu9cjtf0l2bt1t5b22sbf8.apps.googleusercontent.com",
        "appName": "Outreach App"
    },
    "autoRenew": false
}'

Responses

🟢200Order Created Successfully And Queued For Processing
application/json
Bodyapplication/json

Examples
{
  "status": 200,
  "message": "Order created and queued for processing",
  "data": {
    "orderId": "3BFTT324G0MKSYPV3FR2JQ3NFCAP",
  },
  "actionId": "ACT_7a078272-0fa7-4db4-a85b-c78697dacea1"
}
🟢201Order Partially Created Successfully
🟠400Workspace Validation Failed
🟠400Mailbox Already Registered
Modified at 2026-06-23 16:21:02
Previous
Get Order Status
Next
Order mailboxes (json)
Built with