/services/webshop/v1/products/get
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
integer | Yes | 42 |
|
include_categories |
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 | |
debug |
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.price |
string | |
data.offer_price |
string | |
data.sale_price |
string | |
data.main_image |
string | |
data.is_billable |
string | |
data.has_offers |
string | |
data.is_affiliate |
string | |
data.is_form |
string | |
data.inventory_management |
string | |
data.stock |
string | |
data.weight |
string | |
data.btw_percentage |
string | |
data.ean |
string | |
data.intro_description |
string | |
data.short_description |
string | |
data.description |
string | |
data.properties |
string | |
data.other_information |
string | |
data.meta_title |
string | |
data.meta_image |
string | |
data.meta_description |
string | |
data.meta_keyword |
string | |
data.canonical_url |
string | |
data.no_index |
boolean | |
data.other_images |
string | |
data.exclude_base_price |
string | |
data.options |
mixed | |
data.options_export |
mixed | |
data.options_import |
string | |
data.filters |
mixed | |
data.filters_export |
mixed | |
data.filters_import |
string | |
data.product_order |
string | |
data.sharpen_links |
string | |
data.disable_product_page |
string | |
data.disable_category_listing |
string | |
data.disable_search_listing |
string | |
data.disable_feed_listing |
string | |
data.text_for_price |
string | |
data.text_after_price |
string | |
data.hide_price |
string | |
data.layout |
string | |
data.template |
string | |
data.hide_number |
string | |
data.created_at |
string | |
data.config |
object | |
data.categories |
mixed |
| 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 |
| 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/products/get" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"id": 42,
"include_categories": true
}'
fetch('https://api.wemasy.nl/api/services/webshop/v1/products/get', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": 42,
"include_categories": 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/webshop/v1/products/get', {
"id": 42,
"include_categories": true
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"id": 42,
"include_categories": true
}
r = requests.post("https://api.wemasy.nl/api/services/webshop/v1/products/get", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"id": "string",
"title": "string",
"url": "string",
"status": "string",
"price": "string",
"offer_price": "string",
"sale_price": "string",
"main_image": "string",
"is_billable": "string",
"has_offers": "string",
"is_affiliate": "string",
"is_form": "string",
"inventory_management": "string",
"stock": "string",
"weight": "string",
"btw_percentage": "string",
"ean": "string",
"intro_description": "string",
"short_description": "string",
"description": "string",
"properties": "string",
"other_information": "string",
"meta_title": "string",
"meta_image": "string",
"meta_description": "string",
"meta_keyword": "string",
"canonical_url": "string",
"no_index": true,
"other_images": "string",
"exclude_base_price": "string",
"options": "string",
"options_export": "string",
"options_import": "string",
"filters": "string",
"filters_export": "string",
"filters_import": "string",
"product_order": "string",
"sharpen_links": "string",
"disable_product_page": "string",
"disable_category_listing": "string",
"disable_search_listing": "string",
"disable_feed_listing": "string",
"text_for_price": "string",
"text_after_price": "string",
"hide_price": "string",
"layout": "string",
"template": "string",
"hide_number": "string",
"created_at": "string",
"config": {
"currency": "string",
"locale": "string"
},
"categories": "string"
}
}