/services/webshop/v1/categories/get
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
integer | Yes | 42 |
| 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 | |
details |
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 | |
data |
object | |
data.id |
string | |
data.title |
string | |
data.url |
string | |
data.status |
string | |
data.main_image |
string | |
data.sort_number |
string | |
data.short_description |
string | |
data.description |
string | |
data.no_index |
string | |
data.layout |
string | |
data.meta_title |
string | |
data.meta_image |
string | |
data.meta_description |
string | |
data.meta_keyword |
string | |
data.created_at |
string | |
data.canonical_url |
string | |
data.sub_categories |
mixed | |
data.templates |
string | |
data.adwords_identifier |
string | |
data.disable_category_page |
string | |
data.product_sort_preference |
string |
| 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/webshop/v1/categories/get" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"id": 42
}'
fetch('https://api.wemasy.nl/api/services/webshop/v1/categories/get', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": 42
})})
.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/webshop/v1/categories/get', {
"id": 42
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"id": 42
}
r = requests.post("https://api.wemasy.nl/api/services/webshop/v1/categories/get", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"id": "string",
"title": "string",
"url": "string",
"status": "string",
"main_image": "string",
"sort_number": "string",
"short_description": "string",
"description": "string",
"no_index": "string",
"layout": "string",
"meta_title": "string",
"meta_image": "string",
"meta_description": "string",
"meta_keyword": "string",
"created_at": "string",
"canonical_url": "string",
"sub_categories": "string",
"templates": "string",
"adwords_identifier": "string",
"disable_category_page": "string",
"product_sort_preference": "string"
}
}