Domain Registration API
POST /services/domains/v1/domain-cart/remove Public

Remove a single item from a cart

Identified by `cart_item_id` (server-side) rather than domain name so the client doesn't have to track which item maps to which row — the add endpoint returns each item's `id`. Caller must pass the cart's session_token so we can verify the item actually belongs to the cart they're authorised to mutate (cart tokens are essentially capability URLs for anonymous sessions).

Request Body Required

FieldTypeRequiredDescriptionExample
session_token string
max: 64
Yes
cart_item_id integer Yes

Responses

200
409
404
422
429
Successful response
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data object
data.cart object
409 Conflict: the cart's state (locked for checkout) conflicts with the request. A distinct status from the 422 validation errors below lets clients recover (start a fresh cart) on 404/409 without parsing the message text.
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
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.
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
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/remove" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "session_token": "string",
    "cart_item_id": 0
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/domain-cart/remove', {
  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
})})
.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/remove', {
    "session_token": "string",
    "cart_item_id": 0
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "session_token": "string",
    "cart_item_id": 0
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/domain-cart/remove", 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