mijn.host API
  1. Orders
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
  • Orders
    • List orders
      GET
    • Get order
      GET
    • Update order
      PUT
  1. Orders

Update order

PUT
/orders/{order_id}
Update a specific order's cart item and process the order again.

Request

Authorization
Add parameter in header
API-key
Example:
API-key: ********************
Path Params

Header Params

Body Params application/jsonRequired

Example
{
    "cart_id": 1234,
    "domain": {
        "profile": {
            "owner": 100000,
            "admin": 100000,
            "tech": 100000,
            "billing": 100000,
            "reseller": 100000
        },
        "nameserver": "default-mijnhost",
        "dns_template_id": 12345,
        "transfer_code": "123-456-789"
    },
    "hosting": {
        "domain": "domain.com"
    }
}

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 PUT 'https://mijn.host/api/v2/orders/' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cart_id": 1234,
    "domain": {
        "profile": {
            "owner": 100000,
            "admin": 100000,
            "tech": 100000,
            "billing": 100000,
            "reseller": 100000
        },
        "nameserver": "default-mijnhost",
        "dns_template_id": 12345,
        "transfer_code": "123-456-789"
    },
    "hosting": {
        "domain": "domain.com"
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": "string",
    "status_description": "string"
}
🟠400Invalid input
🟠400SSL connection is required
🟠400No order ID provided
🟠401No valid API key set
🟠401API key has expired
🟠401Remote IP address is not found in the API key whitelist
🟠400No cart ID provided
🟠404Order not found
🔴500Error
Modified at 2026-01-27 13:31:48
Previous
Get order
Built with