E-commerce API
GET /services/webshop/v1/customer/auth/verify-email/{customer_id}/{hash} Public

Verify customer email

Confirms the customer's email address using the signed link sent to their inbox. On success the browser is redirected to the shop's verify-email page with `?verified=1`, or `?error=invalid` on a bad link. Falls back to JSON when no shop domain is configured.

Parameters

NameTypeInRequiredDescription
customer_id integer path Required
hash string path Required

Responses

200
403
404
302
429
Email verified (JSON fallback)
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.email_verified_at string
Invalid verification link
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[]
Customer 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[]
Redirect to shop /account/verify-email with status
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
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 GET "https://api.wemasy.nl/api/services/webshop/v1/customer/auth/verify-email/{customer_id}/{hash}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
fetch('https://api.wemasy.nl/api/services/webshop/v1/customer/auth/verify-email/{customer_id}/{hash}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json'  }})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
    ->accept('application/json')
    ->get('https://api.wemasy.nl/api/services/webshop/v1/customer/auth/verify-email/{customer_id}/{hash}');
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
r = requests.get("https://api.wemasy.nl/api/services/webshop/v1/customer/auth/verify-email/{customer_id}/{hash}", headers=headers)
print(r.json())
Response Example
{
    "error": false,
    "message": "string",
    "data": {
        "email_verified_at": "string"
    }
}

Try It
customer_id Required
hash Required

Export