/services/domains/v1/holder-profiles/create
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
profile_name |
string
max: 255 |
Yes | My Business Profile |
|
first_name |
string
max: 255 |
Yes | John |
|
last_name |
string
max: 255 |
Yes | Doe |
|
company_name |
string|null
max: 255 |
No | Acme Inc. |
|
email |
string (email)
max: 255 |
Yes | john@example.com |
|
phone |
string
max: 50 |
Yes | +31612345678 |
|
address_line1 |
string
max: 255 |
Yes | Keizersgracht 123, 1015 CJ |
|
address_line2 |
string|null
max: 255 |
No | Suite 4B |
|
city |
string
max: 255 |
Yes | Amsterdam |
|
state |
string|null
max: 255 |
No | North Holland |
|
postal_code |
string
max: 20 |
Yes | 1015 CJ |
|
country |
string
max: 2 |
Yes | NL |
|
is_default |
boolean | No | true |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
object | |
data.id |
integer | |
data.user_id |
integer | |
data.profile_name |
string | |
data.first_name |
string | |
data.last_name |
string | |
data.company_name |
string|null | |
data.email |
string | |
data.phone |
string|null | |
data.address_line1 |
string | |
data.address_line2 |
string|null | |
data.city |
string | |
data.state |
string|null | |
data.postal_code |
string | |
data.country |
string | |
data.is_default |
boolean | |
data.created_at |
string|null (date-time) | |
data.updated_at |
string|null (date-time) | |
data.deleted_at |
string|null (date-time) |
| 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 | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/domains/v1/holder-profiles/create" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/holder-profiles/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
})})
.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/holder-profiles/create', {
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/holder-profiles/create", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"id": 0,
"user_id": 0,
"profile_name": "string",
"first_name": "string",
"last_name": "string",
"company_name": "string",
"email": "string",
"phone": "string",
"address_line1": "string",
"address_line2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string",
"is_default": true,
"created_at": "string",
"updated_at": "string",
"deleted_at": "string"
}
}