1. Orders
  • Welcome to the Cold Mail Reseller API
  • Get Started
    • Overview
    • Authentication
    • Quick Start
  • Core Concepts
    • Users
    • Domains
    • DNS Management
    • Mailboxes
    • Subscriptions
    • Pre-Warmup
    • Domain Renewal
    • 1+ Year Subscriptions
    • Mailbox Warmup
    • Platform Exports
    • OAuth Exports
    • Sandbox API
  • API Reference
    • Users
      • List Users
      • Get User
      • Create User
      • Update User
      • Delete User
    • Geo
      • List Countries
      • List States
    • Domains
      • Domain Renewal
        • Get Domain Renewal Prices
        • Renew Domains
        • Toggle Domain Auto-Renew
      • Get Domains by User
      • Check Domain Availability
      • Check Single Domain Availability
      • Check Workspace Existence
      • Set Domain Forwarding
      • Set Email Forwarding
      • Delete Domains
    • DNS
      • Get DNS Records
      • Add DNS Records
      • Update DNS Record
      • Update Nameservers
      • Delete DNS Record
    • Mailboxes
      • List Mailboxes
      • Get Mailboxes by User
      • Get Mailbox
      • Get Admin Mailbox Details
      • Update Mailbox Details
      • Delete Mailbox
    • Mailbox Warmup
      • Add Warmup to Mailbox
      • Toggle Warmup
      • Update Warmup Settings
      • Set Warmup Status
      • Disable Warmup
    • Orders
      • Get Order Status
        GET
      • Get Order Details
        GET
      • Create Order
        POST
      • Create Order (JSON)
        POST
      • Create Mailbox Order (JSON)
        POST
      • Process Order
        POST
    • Subscriptions
      • 1+ Year Subscription
        • Recreate Subscription
      • Get Subscriptions
      • Renew Subscriptions
      • Cancel Subscription
      • Toggle Auto-Renewal
    • Exports
      • Platform Exports
        • Get Platform Credentials
        • Add Platform Credential
        • Export Mailboxes to Platform
        • Remove Platform Credential
      • OAuth Exports
        • Perform OAuth
        • Add Client ID to Domains
    • Pre-Warmup
      • Sandbox
        • Get Sandbox Pre-warmup Domains
        • Order Sandbox Pre-warmup
        • Reset Sandbox Pre-warmup
      • Get Pre-warmup Domains
      • Order Pre-warmup
    • Placement Test
      • Create Placement Order
      • Get Placement Reports
  • Resources
    • Errors
    • Rate Limits
    • Pagination
    • Sandbox
    • MCP
  • Webhooks
    • Overview
    • Events
      • Domain Events
      • Mailbox Events
      • Subscription Events
      • Prewarmup Events
      • Mailbox Warmup Events
  • Schemas
    • Error
    • Success
    • MessageResponse
    • User
    • Domain
    • ErrorResponse
    • Mailbox
    • Subscription
    • DnsRecord
    • Error Response
    • Pagination Meta
    • Action Error Response
    • PrewarmupOrderResult
    • OrderCreationResult
  1. Orders

Create Mailbox Order (JSON)

POST
/orders/create-mailbox-order/json
This endpoint allows you to create mailbox orders for your domain. The behavior varies depending on your subscription status and confirmation parameter.

Request Scenarios#

🟒 Scenario 1: Active Subscription#

When you already have an active subscription, this endpoint adds new mailboxes to the existing subscription.
Required Parameter
subscriptionId
Use Cases
Adding additional mailboxes to your current plan
Scaling mailbox capacity within an existing subscription

🟠 Scenario 2: Cancelled Subscription#

When your subscription has been cancelled, this endpoint creates mailboxes and automatically generates a new subscription.
Required Parameters
domainId
autoRenew
serviceProvider
Use Cases
Creating a new subscription for an existing domain whose previous subscription was cancelled

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#

Mutually Exclusive Parameters
Provide either subscriptionId or domainId
Do not provide both in the same request
Wallet Balance Requirement
Ensure sufficient balance in your wallet when using confirm: true
Insufficient balance will result in order creation failure
Automatic Subscription Creation
A new subscription is created automatically when using domainId
When creating a new subscription (Scenario 2), the autoRenew parameter to specify renewal preferences
Subscription Continuity
When using subscriptionId, mailboxes are added seamlessly to the existing plan

Summary#

ParameterTypeRequiredDescription
subscriptionIdstringConditional*ID of the active subscription to add mailboxes to
domainIdstringConditional*ID of the domain used to create a new subscription
autoRenewbooleanConditional**Auto-renewal setting for new subscriptions (Scenario 2 only)
confirmbooleanRequiredtrue: Process immediately, false: Create without processing
* One of subscriptionId or domainId must be provided based on your subscription status
** Required only when using domainId (Scenario 2) to create a new subscription


Email Warmup (onWarmup)#

Optionally enable warmup when creating mailboxes by setting onWarmup: true on individual mailbox objects.
{
  "mailboxes": {
    "example.org": [
      { "username": "alice", "firstName": "Alice", "lastName": "Smith", "onWarmup": true },
      { "username": "bob", "firstName": "Bob", "lastName": "Jones", "onWarmup": false }
    ]
  }
}
FieldTypeRequiredDescription
onWarmupbooleanNoIf true, enrolls the mailbox in email warmup after provisioning. Defaults to false.

Notes#

Enrollment runs automatically β€” no extra API call is required after the order completes
To add warmup later to an already-active mailbox, use POST /mailboxes/{mailboxId}/warmup

Request

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

Body Params application/jsonRequired

Examples

Responses

🟒200Success
application/json
Order created and queued for processing (confirm=true)
Bodyapplication/json

🟒201Created
🟠401Unauthorized
🟠422Validation Error
🟠400Bad Request
🟠403Forbidden β€” domainId scenario
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://customers.coldmailreseller.com/api/v1/integration/orders/create-mailbox-order/json?userId=H8M9JV2S9HMPYFQW393AZHQVD4XM' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "mailboxes": {
        "property1": [
            {
                "username": "bob",
                "firstName": "Bob",
                "lastName": "Smith",
                "onWarmup": true
            }
        ],
        "property2": [
            {
                "username": "bob",
                "firstName": "Bob",
                "lastName": "Smith",
                "onWarmup": true
            }
        ]
    },
    "subscriptionId": "sub_V2M9KP3XAQZL",
    "domainId": "dom_V2M9KP3XAQZL",
    "serviceProvider": "GOOGLE",
    "domains": [
        {
            "domain": "acmecorp.com",
            "years": 1
        }
    ],
    "autoRenew": true,
    "confirm": true,
    "google": {
        "googleOauthRoute": "string",
        "clientId": "string",
        "appName": "string"
    },
    "microsoftOauthRoute": "https://yourapp.com/oauth/microsoft/callback",
    "billingCycle": "MONTHLY"
}'
Response Response Example
200 - Example 1
{
    "status": 200,
    "message": "Order created and queued for processing, make sure to have enough balance in your wallet!",
    "data": {
        "orderId": "ord_R8K2LQPZA9XM",
        "unavailableDomains": [
            "string"
        ]
    },
    "actionId": "ACT_7a078272-0fa7-4db4-a85b-c78697dacea1"
}
Modified atΒ 2026-08-06 06:20:56
Previous
Create Order (JSON)
Next
Process Order
Built with