/services/webshop/v1/{websiteId}/product-feed.xml
Public
Returns a Google Merchant Center compatible XML product feed.
| Name | Type | In | Required | Description |
|---|---|---|---|---|
websiteId |
string | path | Required |
| 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 |
| 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 |
|---|---|---|
errors |
object | |
errors.website |
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 GET "https://api.wemasy.nl/api/services/webshop/v1/{websiteId}/product-feed.xml" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/xml, application/json"
fetch('https://api.wemasy.nl/api/services/webshop/v1/{websiteId}/product-feed.xml', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/xml, application/json' }})
.then(r => r.text())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/xml, application/json')
->get('https://api.wemasy.nl/api/services/webshop/v1/{websiteId}/product-feed.xml');
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/xml, application/json"
}
r = requests.get("https://api.wemasy.nl/api/services/webshop/v1/{websiteId}/product-feed.xml", headers=headers)
print(r.text)
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Products Feed</title>
<link>https://example.com</link>
<description>Product feed</description>
<item>
<g:id>123</g:id>
<g:title>T Shirt</g:title>
<g:price>29.99 EUR</g:price>
<g:availability>in stock</g:availability>
<g:condition>new</g:condition>
</item>
</channel>
</rss>