POST /orders/json but every domain is sourced from our own aged-domain inventory rather than registered fresh at a registrar. Domains are priced from the partner's aged-domain configuration and carry the remainder of the previous owner's registration term. The years field in each domain object is accepted for payload parity but ignored.confirm: true to queue the order for immediate payment processing. Without it, the order is created (201) but not charged or provisioned until you call POST /orders/process-order.googleOauthRoute, clientId, and appName inside a google object.microsoftOauthRoute at the top level.{
"billingCycle": "MONTHLY",
"serviceProvider": "GOOGLE",
"domains": [{ "domain": "fastgrowth.io" }],
"mailboxes": {
"fastgrowth.io": [
{ "username": "alex", "firstName": "Alex", "lastName": "Smith" }
]
},
"confirm": true,
"google": {
"googleOauthRoute": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...",
"clientId": "123456789.apps.googleusercontent.com",
"appName": "MySendingApp"
}
}curl --location 'https://customers.coldmailreseller.com/api/v1/integration/orders/aged-domains?userId=H8M9JV2S9HMPYFQW393AZHQVD4XM' \
--header 'cmr-x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"billingCycle": "MONTHLY",
"serviceProvider": "GOOGLE",
"domains": [
{
"domain": "fastgrowth.io",
"years": 1
}
],
"mailboxes": {
"fastgrowth.io": [
{
"username": "alex",
"firstName": "Alex",
"lastName": "Smith"
}
]
},
"confirm": true,
"google": {
"googleOauthRoute": "https://accounts.google.com/o/oauth2/v2/auth?client_id=123.apps.googleusercontent.com&redirect_uri=https://app.example.com/callback&scope=https://mail.google.com/&response_type=code",
"clientId": "123456789-abc.apps.googleusercontent.com",
"appName": "MySendingApp"
},
"microsoftOauthRoute": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=...&redirect_uri=https://app.example.com/callback&scope=Mail.ReadWrite"
}'{
"status": 200,
"message": "Order created and queued for processing",
"data": {
"orderId": "H8M9JV2S9HMPYFQW393AZHQVD4XM",
"metadata": {}
}
}