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 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
    • 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
    • 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. 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

⏸️ 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

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 --request POST 'https://customers.coldmailreseller.com/api/v1/integration/orders/json?userId' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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
Body

Examples
{
    "status": 200,
    "message": "Order created and queued for processing, make sure to have enough balance in your wallet!",
    "data": {
        "orderId": "RJK7NR2W194HAGHGTX75D391P3NB"
    }
}
🟢201Order Created Successfully
Modified at 2026-02-10 05:51:48
Previous
Get Order Status
Next
Order mailboxes (json)
Built with