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
      • Get DNS records
      • Update DNS records
      • Update single DNS record
      • Get auth code
      • Cancel domain deletion
    • Contacts
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • Nameservers
      • List profiles
      • Create profile
      • Update profile
      • Get profile
    • DNS templates
      • List templates
      • Create template
      • Update template
      • Get template
    • Availability
      • Check domain availability
    • Order
      • Order domain
        POST
  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;' \
--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": 200,
    "status_description": "Request successful",
    "data": {
        "order_id": 10000,
    }
}
🟠400Invalid input
Modified at 2024-06-26 16:43:23
Previous
Check domain availability
Built with