mijn.host API
  1. Order
mijn.host API
  • Getting started
    • Introduction
    • Base url
    • Authentication
    • Response codes
  • Domains
    • Domains
      • List domains
      • Get domain
      • Update domain
      • Cancel domain
      • Cancel domain deletion
      • Get DNS records
      • Update DNS records
      • Update single DNS record
      • Get auth code
    • Contacts
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
    • Nameservers
      • List profiles
      • Get profile
      • Create profile
      • Update profile
      • Delete profile
    • DNS templates
      • List templates
      • Get template
      • Create template
      • Update template
      • Delete template
    • Availability
      • Check domain availability
    • Order
      • Order domain
        POST
  • Orders
    • List orders
      GET
    • Get order
      GET
    • Update order
      PUT
  1. Order

Order domain

POST
/domains/order
Transfer or register a domain. Be careful with this command as the order will be executed directly and your account will be charged.

Request

Authorization
Add parameter in header
API-Key
Example:
API-Key: ********************
Header Params

Body Params application/json

Example
{
    "domain": "string",
    "type": "register",
    "transfer_code": "string",
    "nameserver": "string",
    "dns_template_id": 0,
    "profile": {
        "owner": 0,
        "admin": 0,
        "tech": 0,
        "billing": 0
    }
}

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://mijn.host/api/v2/domains/order' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "domain": "string",
    "type": "register",
    "transfer_code": "string",
    "nameserver": "string",
    "dns_template_id": 0,
    "profile": {
        "owner": 0,
        "admin": 0,
        "tech": 0,
        "billing": 0
    }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "status": 0,
    "status_description": "string",
    "data": {
        "order_id": 0
    }
}
🟠400Invalid input
🟠400SSL connection is required
🟠400Wrong request method
🟠400Unsupported order type. Allowed values: register, transfer
🟠400No domain set
🟠400This order exceeds your limit for ordering on credit. Please contact our customer service.
🟠400Payment afterwards is not allowed for this account. Please contact our customer service.
🟠400Your domain request contains an empty extension
🟠401No valid API key set
🟠401API key has expired
🟠401Remote IP address is not found in the API key whitelist
🔴500Error
Modified at 2025-12-10 15:02:24
Previous
Check domain availability
Next
List orders
Built with