/services/domains/v1/domain-cart/checkout
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
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 |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
object | |
data.checkout_url |
string | |
data.session_id |
string|null | |
data.subscription_id |
integer |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
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())
{
"error": false,
"message": "string",
"data": {
"checkout_url": "string",
"session_id": "string",
"subscription_id": 0
}
}