Dokumentation Entwickler Webhooks

Product

Aktualisiert am 16.03.2017

Product

Parameter Description Sample
from Full VersaCommerce-Domain name demo-1.versacommerce.de
to Receiving URL http://requestb.in/1fqwxbp0
subject create / update / delete: #productid create product: 37578
shop_id Internal ID (VersaCommerce) for issuing shop 1157
subscription_id Internal ID (VersaCommerce) for issuing subscription 86
domain Public domain name of shop demo-1.versacommerce.de
body Contains info about product, variants See example below…

Body

<?xml version="1.0" encoding="UTF-8"?>
<product>
<active type="boolean">true</active>
<base-perform-calculation type="boolean">false</base-perform-calculation>
<base-quantity type="integer">1</base-quantity>
<base-quantity-package type="float">1.0</base-quantity-package>
<base-quantity-sold type="integer">1</base-quantity-sold>
<base-unit>Piece</base-unit>
<boolean-option-01 type="boolean">false</boolean-option-01>
<calculates-shipping-cost type="boolean">true</calculates-shipping-cost>
<category>Product category name</category>
<category-handle>product-category-name</category-handle>
<code>1234567890</code>
<compare-at-price type="decimal">0.0</compare-at-price>
<considers-stock type="boolean">true</considers-stock>
<content-meta-description nil="true"/>
<content-meta-keywords nil="true"/>
<content-title-tag nil="true"/>
<created-on type="datetime">2012-12-18T01:00:00+01:00</created-on>
<custom-url nil="true"/>
<custom-url-routing>standard_url_is_canonical</custom-url-routing>
<date-option-01 type="date" nil="true"/>
<date-option-02 type="date" nil="true"/>
<description>This is the product description.</description>
<description-html><p>This is the product description.</p></description-html>
<extra-price type="decimal">0.0</extra-price>
<featured type="boolean">false</featured>
<featured-image-url>http://assets.versacommerce.de/demo-1_versacommerce_de/product_images/167361/original/image20121218-2-191bq3s.jpg</featured-image-url>
<format>tinymce</format>
<handle>smaple-product-handle</handle>
<id type="integer">167361</id>
<new type="boolean" nil="true"/>
<note>Every product can contain a note.</note>
<option-01 nil="true"/>
<option-02 nil="true"/>
<option-03 nil="true"/>
<packaging-duration type="integer">0</packaging-duration>
<position type="integer" nil="true"/>
<price type="decimal">849.0</price>
<product-id type="integer" nil="true"/>
<product-images-count type="integer">2</product-images-count>
<properties-count type="integer">0</properties-count>
<shop-id type="integer">1157</shop-id>
<shows-stock-amount type="boolean">false</shows-stock-amount>
<stock type="integer">0</stock>
<subtitle>This is the product subtitle.</subtitle>
<tag-list>Keyword,Tag,Special,Whatever</tag-list>
<tags-count type="integer">4</tags-count>
<tax-category>standard</tax-category>
<title>This is the product title (name)</title>
<updated-on type="datetime">2013-10-09T11:15:15+02:00</updated-on>
<vendor>Vendor-Name</vendor>
<vendor-handle>a-handle-for-that-vendor</vendor-handle>
<visible type="boolean">true</visible>
<weight type="float">1.2</weight>
<variants-count type="integer">0</variants-count>
<url>/products/product-handle</url>
<variant-ids type="array"/>
</product>