/services/webshop/v1/products/update
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
integer | Yes | 42 |
|
product_title |
string
max: 255 |
Yes | T Shirt |
|
product_url |
string
max: 800 |
Yes | t-shirt |
|
status |
boolean|null | No | true |
|
price |
number | Yes | 29.99 |
|
offer_price |
number|null | No | 24.99 |
|
is_billable |
boolean|null | No | true |
|
has_offers |
boolean|null | No | false |
|
is_affiliate |
boolean|null | No | false |
|
is_form |
boolean|null | No | false |
|
inventory_management |
string|null | No | 1 |
|
stock |
integer|null | No | 100 |
|
weight |
number|null | No | 0.5 |
|
btw_percentage |
string|null | No | 21 |
|
ean |
string|null | No | 8710400000001 |
|
intro_description |
string|null | No | A comfortable cotton t-shirt |
|
short_description |
string|null | No | Soft cotton t-shirt |
|
description |
string|null | No | <p>Premium quality cotton t-shirt.</p> |
|
properties |
string|null | No | <ul><li>Material: Cotton</li></ul> |
|
other_information |
string|null | No | Machine washable at 40°C |
|
meta_title |
string|null | No | T Shirt - Buy Online |
|
meta_image |
string|null | No | /images/tshirt-og.jpg |
|
meta_description |
string|null | No | Buy premium cotton t-shirts online |
|
meta_keyword |
string|null | No | t-shirt, cotton, clothing |
|
canonical_url |
string|null | No | https://example.com/t-shirt |
|
no_index |
boolean|null | No | false |
|
main_image |
string|null | No | /images/tshirt.jpg |
|
other_images |
string|null | No | |/images/tshirt-2.jpg |
|
exclude_base_price |
boolean|null | No | false |
|
options |
array|null | No | [] |
|
filters |
array|null | No | [] |
|
categories |
array|null | No | [1,2] |
|
product_order |
integer|null | No | 1 |
|
sharpen_links |
string|null | No | https://example.com/affiliate |
|
disable_product_page |
boolean|null | No | false |
|
disable_category_listing |
boolean|null | No | false |
|
disable_search_listing |
boolean|null | No | false |
|
disable_feed_listing |
boolean|null | No | false |
|
text_for_price |
string|null | No | Starting from |
|
text_after_price |
string|null | No | per unit |
|
hide_price |
boolean|null | No | false |
|
hide_number |
boolean|null | No | false |
| 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 |
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 |
| 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/update" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"id": 42,
"product_title": "T Shirt",
"product_url": "t-shirt",
"status": true,
"price": 29.99,
"offer_price": 24.99,
"is_billable": true,
"has_offers": false,
"is_affiliate": false,
"is_form": false,
"inventory_management": "1",
"stock": 100,
"weight": 0.5,
"btw_percentage": "21",
"ean": "8710400000001",
"intro_description": "A comfortable cotton t-shirt",
"short_description": "Soft cotton t-shirt",
"description": "Premium quality cotton t-shirt.
",
"properties": "- Material: Cotton
",
"other_information": "Machine washable at 40\u00b0C",
"meta_title": "T Shirt - Buy Online",
"meta_image": "/images/tshirt-og.jpg",
"meta_description": "Buy premium cotton t-shirts online",
"meta_keyword": "t-shirt, cotton, clothing",
"canonical_url": "https://example.com/t-shirt",
"no_index": false,
"main_image": "/images/tshirt.jpg",
"other_images": "|/images/tshirt-2.jpg",
"exclude_base_price": false,
"options": [],
"filters": [],
"categories": [
1,
2
],
"product_order": 1,
"sharpen_links": "https://example.com/affiliate",
"disable_product_page": false,
"disable_category_listing": false,
"disable_search_listing": false,
"disable_feed_listing": false,
"text_for_price": "Starting from",
"text_after_price": "per unit",
"hide_price": false,
"hide_number": false
}'
fetch('https://api.wemasy.nl/api/services/webshop/v1/products/update', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": 42,
"product_title": "T Shirt",
"product_url": "t-shirt",
"status": true,
"price": 29.99,
"offer_price": 24.99,
"is_billable": true,
"has_offers": false,
"is_affiliate": false,
"is_form": false,
"inventory_management": "1",
"stock": 100,
"weight": 0.5,
"btw_percentage": "21",
"ean": "8710400000001",
"intro_description": "A comfortable cotton t-shirt",
"short_description": "Soft cotton t-shirt",
"description": "Premium quality cotton t-shirt.
",
"properties": "- Material: Cotton
",
"other_information": "Machine washable at 40\u00b0C",
"meta_title": "T Shirt - Buy Online",
"meta_image": "/images/tshirt-og.jpg",
"meta_description": "Buy premium cotton t-shirts online",
"meta_keyword": "t-shirt, cotton, clothing",
"canonical_url": "https://example.com/t-shirt",
"no_index": false,
"main_image": "/images/tshirt.jpg",
"other_images": "|/images/tshirt-2.jpg",
"exclude_base_price": false,
"options": [],
"filters": [],
"categories": [
1,
2
],
"product_order": 1,
"sharpen_links": "https://example.com/affiliate",
"disable_product_page": false,
"disable_category_listing": false,
"disable_search_listing": false,
"disable_feed_listing": false,
"text_for_price": "Starting from",
"text_after_price": "per unit",
"hide_price": false,
"hide_number": false
})})
.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/update', {
"id": 42,
"product_title": "T Shirt",
"product_url": "t-shirt",
"status": true,
"price": 29.99,
"offer_price": 24.99,
"is_billable": true,
"has_offers": false,
"is_affiliate": false,
"is_form": false,
"inventory_management": "1",
"stock": 100,
"weight": 0.5,
"btw_percentage": "21",
"ean": "8710400000001",
"intro_description": "A comfortable cotton t-shirt",
"short_description": "Soft cotton t-shirt",
"description": "Premium quality cotton t-shirt.
",
"properties": "- Material: Cotton
",
"other_information": "Machine washable at 40\u00b0C",
"meta_title": "T Shirt - Buy Online",
"meta_image": "/images/tshirt-og.jpg",
"meta_description": "Buy premium cotton t-shirts online",
"meta_keyword": "t-shirt, cotton, clothing",
"canonical_url": "https://example.com/t-shirt",
"no_index": false,
"main_image": "/images/tshirt.jpg",
"other_images": "|/images/tshirt-2.jpg",
"exclude_base_price": false,
"options": [],
"filters": [],
"categories": [
1,
2
],
"product_order": 1,
"sharpen_links": "https://example.com/affiliate",
"disable_product_page": false,
"disable_category_listing": false,
"disable_search_listing": false,
"disable_feed_listing": false,
"text_for_price": "Starting from",
"text_after_price": "per unit",
"hide_price": false,
"hide_number": false
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"id": 42,
"product_title": "T Shirt",
"product_url": "t-shirt",
"status": true,
"price": 29.99,
"offer_price": 24.99,
"is_billable": true,
"has_offers": false,
"is_affiliate": false,
"is_form": false,
"inventory_management": "1",
"stock": 100,
"weight": 0.5,
"btw_percentage": "21",
"ean": "8710400000001",
"intro_description": "A comfortable cotton t-shirt",
"short_description": "Soft cotton t-shirt",
"description": "Premium quality cotton t-shirt.
",
"properties": "- Material: Cotton
",
"other_information": "Machine washable at 40\u00b0C",
"meta_title": "T Shirt - Buy Online",
"meta_image": "/images/tshirt-og.jpg",
"meta_description": "Buy premium cotton t-shirts online",
"meta_keyword": "t-shirt, cotton, clothing",
"canonical_url": "https://example.com/t-shirt",
"no_index": false,
"main_image": "/images/tshirt.jpg",
"other_images": "|/images/tshirt-2.jpg",
"exclude_base_price": false,
"options": [],
"filters": [],
"categories": [
1,
2
],
"product_order": 1,
"sharpen_links": "https://example.com/affiliate",
"disable_product_page": false,
"disable_category_listing": false,
"disable_search_listing": false,
"disable_feed_listing": false,
"text_for_price": "Starting from",
"text_after_price": "per unit",
"hide_price": false,
"hide_number": false
}
r = requests.post("https://api.wemasy.nl/api/services/webshop/v1/products/update", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "Product updated successfully",
"data": []
}