E-commerce API
POST /services/webshop/v1/products/get Auth

Request Body Required

FieldTypeRequiredDescriptionExample
id integer Yes 42
include_categories boolean No true

Responses

500
200
404
422
401
403
429
Internal server error
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
debug string
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.id integer
data.title string|null
data.url string|null
data.status integer|null
data.price string|null
data.offer_price string|null
data.sale_price string|null
data.main_image string|null
data.is_billable integer|null
data.has_offers integer|null
data.is_affiliate integer|null
data.is_form integer|null
data.inventory_management string|null
data.stock string|null
data.weight string|null
data.btw_percentage string|null
data.ean string|null
data.intro_description string|null
data.short_description string|null
data.description string|null
data.properties string|null
data.other_information string|null
data.meta_title string|null
data.meta_image string|null
data.meta_description string|null
data.meta_keyword string|null
data.canonical_url string|null
data.no_index boolean
data.other_images string|null
data.exclude_base_price string|null
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 integer|null
data.sharpen_links string|null
data.disable_product_page string|null
data.disable_category_listing string|null
data.disable_search_listing string|null
data.disable_feed_listing string|null
data.text_for_price string|null
data.text_after_price string|null
data.hide_price string|null
data.layout string|null
data.template integer|null
data.hide_number string|null
data.created_at string|null (date-time)
data.config object
data.categories 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
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Unauthenticated — missing or invalid Bearer token
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
Forbidden — insufficient permissions for this resource
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
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/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())
Response Example
{
    "error": false,
    "message": "string",
    "data": {
        "id": 0,
        "title": "string",
        "url": "string",
        "status": 0,
        "price": "string",
        "offer_price": "string",
        "sale_price": "string",
        "main_image": "string",
        "is_billable": 0,
        "has_offers": 0,
        "is_affiliate": 0,
        "is_form": 0,
        "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": 0,
        "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": 0,
        "hide_number": "string",
        "created_at": "string",
        "config": {
            "currency": "string",
            "locale": "string"
        },
        "categories": []
    }
}

Try It
Request Body Required

Export