Domain Registration API
POST /services/domains/v1/domain-cart/configure-item Auth

Request Body Required

FieldTypeRequiredDescriptionExample
session_token string
max: 64
Yes
cart_item_id integer Yes
holder_profile_id integer|null No
transfer_token string|null
max: 255
No
nameserver_mode string
default, group, inline
No
nameserver_group_id integer|null No
dns_mode string
default, template, inline
No
dns_template_id integer|null No
nameservers array|null No
dns_records array|null No

Responses

200
404
422
401
403
429
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 120
X-RateLimit-Remaining integer Number of requests remaining in the current window 117
FieldTypeDescription
error boolean
message string
data object
data.cart object
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 120
X-RateLimit-Remaining integer Number of requests remaining in the current window 117
FieldTypeDescription
error boolean
message string
data mixed[]
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Unauthenticated
FieldTypeDescription
message string Error overview.
Forbidden — insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 120
X-RateLimit-Remaining integer Number of requests remaining in the current window 117
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 120
X-RateLimit-Remaining integer Number of requests remaining in the current window 117
Retry-After integer Seconds until the rate limit resets 60
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
curl -X POST "https://api.wemasy.nl/api/services/domains/v1/domain-cart/configure-item" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "session_token": "string",
    "cart_item_id": 0,
    "holder_profile_id": "string",
    "transfer_token": "string",
    "nameserver_mode": "string",
    "nameserver_group_id": "string",
    "dns_mode": "string",
    "dns_template_id": "string",
    "nameservers": "string",
    "dns_records": "string"
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/domain-cart/configure-item', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "session_token": "string",
    "cart_item_id": 0,
    "holder_profile_id": "string",
    "transfer_token": "string",
    "nameserver_mode": "string",
    "nameserver_group_id": "string",
    "dns_mode": "string",
    "dns_template_id": "string",
    "nameservers": "string",
    "dns_records": "string"
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
    ->accept('application/json')
    ->post('https://api.wemasy.nl/api/services/domains/v1/domain-cart/configure-item', {
    "session_token": "string",
    "cart_item_id": 0,
    "holder_profile_id": "string",
    "transfer_token": "string",
    "nameserver_mode": "string",
    "nameserver_group_id": "string",
    "dns_mode": "string",
    "dns_template_id": "string",
    "nameservers": "string",
    "dns_records": "string"
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "session_token": "string",
    "cart_item_id": 0,
    "holder_profile_id": "string",
    "transfer_token": "string",
    "nameserver_mode": "string",
    "nameserver_group_id": "string",
    "dns_mode": "string",
    "dns_template_id": "string",
    "nameservers": "string",
    "dns_records": "string"
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/domain-cart/configure-item", headers=headers, json=data)
print(r.json())
Response Example
{
    "error": false,
    "message": "string",
    "data": {
        "cart": {
            "session_token": "string",
            "status": "string",
            "currency": "string",
            "total_price": 0,
            "item_count": 0,
            "is_claimed": true,
            "items": []
        }
    }
}

Try It
Request Body Required

Export