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

Order mailboxes (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
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

Request

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

Body Params application/json

Examples
{
    "subscriptionId": "",
    "mailboxes": {
        "center.org": [
            {
                "username": "email1",
                "firstName": "john",
                "lastName": "doe",
                "profilePicture": "https://unsplash.com/photos/a-blurry-image-of-a-tree-outside-of-a-window-8NIxpSFzzg8"
            }
        ]
    },
    "confirm": false,
    "autoRenew": true,
    "google": {
        "googleOauthRoute": "https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?access_type=offline...",
        "clientId": "549360251880-maeh4okn7btu9cjtf0l2bt1t5b22sbf8.apps.googleusercontent.com",
        "appName": "Outreach App"
    }
}

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
curl --location --request POST 'https://customers.coldmailreseller.com/api/v1/integration/orders/create-mailbox-order/json?userId' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "subscriptionId": "",
    "mailboxes": {
        "center.org": [
            {
                "username": "email1",
                "firstName": "john",
                "lastName": "doe",
                "profilePicture": "https://unsplash.com/photos/a-blurry-image-of-a-tree-outside-of-a-window-8NIxpSFzzg8"
            }
        ]
    },
    "confirm": false,
    "autoRenew": true,
    "google": {
        "googleOauthRoute": "https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?access_type=offline...",
        "clientId": "549360251880-maeh4okn7btu9cjtf0l2bt1t5b22sbf8.apps.googleusercontent.com",
        "appName": "Outreach App"
    }
}'

Responses

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

Example
{
    "status": 200,
    "message": "Order created and queued for processing, make sure to have enough balance in your wallet!",
    "data": {
        "orderId": "RJK7NR2W194HAGHGTX75D391P3NB"
    }
}
🟢201Order Created Successfully
🟠422Unprocessable Entity
Modified at 2026-02-09 12:03:56
Previous
Creates order json
Next
Process the Order
Built with