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

Request Body Required

FieldTypeRequiredDescriptionExample
session_token string
max: 64
Yes
redirect_url string|null
max: 500
No
contact_type string
individual, company
No Contact form — required for OXXA WHOIS. Mirrors the shape DomainUpgradeController uses. If any of these are blank, we fall back to user.invoice_* values; if those are also blank the request 422s.
company_name string|null
max: 255
No
vat_number string|null
max: 64
No
first_name string|null
max: 100
No
last_name string|null
max: 100
No
email string|null (email)
max: 255
No
phone string|null
max: 50
No
address string|null
max: 255
No
city string|null
max: 100
No
postal_code string|null
max: 20
No
country string|null
max: 3
No
state string|null
max: 100
No

Responses

200
500
404
422
401
403
429
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 5
X-RateLimit-Remaining integer Number of requests remaining in the current window 2
FieldTypeDescription
error boolean
message string
data object
data.checkout_url string
data.session_id string|null
data.subscription_id integer
Internal server error
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 5
X-RateLimit-Remaining integer Number of requests remaining in the current window 2
FieldTypeDescription
error boolean
message string
data mixed[]
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 5
X-RateLimit-Remaining integer Number of requests remaining in the current window 2
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 — missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 5
X-RateLimit-Remaining integer Number of requests remaining in the current window 2
FieldTypeDescription
error boolean
message string
Forbidden — insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 5
X-RateLimit-Remaining integer Number of requests remaining in the current window 2
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 5
X-RateLimit-Remaining integer Number of requests remaining in the current window 2
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/checkout" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "session_token": "string",
    "redirect_url": "string",
    "contact_type": "string",
    "company_name": "string",
    "vat_number": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "phone": "string",
    "address": "string",
    "city": "string",
    "postal_code": "string",
    "country": "string",
    "state": "string"
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/domain-cart/checkout', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "session_token": "string",
    "redirect_url": "string",
    "contact_type": "string",
    "company_name": "string",
    "vat_number": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "phone": "string",
    "address": "string",
    "city": "string",
    "postal_code": "string",
    "country": "string",
    "state": "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/checkout', {
    "session_token": "string",
    "redirect_url": "string",
    "contact_type": "string",
    "company_name": "string",
    "vat_number": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "phone": "string",
    "address": "string",
    "city": "string",
    "postal_code": "string",
    "country": "string",
    "state": "string"
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "session_token": "string",
    "redirect_url": "string",
    "contact_type": "string",
    "company_name": "string",
    "vat_number": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "phone": "string",
    "address": "string",
    "city": "string",
    "postal_code": "string",
    "country": "string",
    "state": "string"
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/domain-cart/checkout", headers=headers, json=data)
print(r.json())
Response Example
{
    "error": false,
    "message": "string",
    "data": {
        "checkout_url": "string",
        "session_id": "string",
        "subscription_id": 0
    }
}

Try It
Request Body Required

Export