Dokumentation Entwickler Webhooks

Order

Aktualisiert am 16.03.2017

Order

Parameter Description Sample
from Full VersaCommerce-Domain name demo-1.versacommerce.de
to Receiving URL http://requestb.in/1fqwxbp0
subject create / update / delete: #ordernumber create order: 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 order, items, customer, addresses See example below…

Body

<?xml version="1.0" encoding="UTF-8"?>
<order>
<bank-account-bank-code nil="true"/>
<bank-account-bank-name nil="true"/>
<bank-account-name nil="true"/>
<bank-account-number nil="true"/>
<checkout-locale>de</checkout-locale>
<code>213-697-917</code>
<coupon-code nil="true"/>
<coupon-value type="decimal">0.0</coupon-value>
<created-at type="datetime">2013-10-09T10:35:41+02:00</created-at>
<currency></currency>
<customer-email>dorra@d-1.com</customer-email>
<customer-id type="integer">12838</customer-id>
<discount-total type="decimal">0.0</discount-total>
<external-invoicing-id nil="true"/>
<id type="integer">37578</id>
<item-total type="decimal">2000.0</item-total>
<items-count type="integer">0</items-count>
<items-status>undelivered</items-status>
<note> </note>
<payment-cost type="decimal">2.5</payment-cost>
<payment-status>not_paid</payment-status>
<payment-tax-rate type="float">19.0</payment-tax-rate>
<payment-type>cod</payment-type>
<payments-count type="integer">0</payments-count>
<prices-include-tax type="boolean">true</prices-include-tax>
<reduced-tax-amount type="decimal">0.0</reduced-tax-amount>
<reduced-tax-rate type="float">7.0</reduced-tax-rate>
<reduced-tax-total type="decimal">0.0</reduced-tax-total>
<referrer/>
<shipments-count type="integer">0</shipments-count>
<shipping-cost type="decimal">0.0</shipping-cost>
<shop-id type="integer">1157</shop-id>
<source nil="true"/>
<standard-tax-amount type="decimal">319.73</standard-tax-amount>
<standard-tax-rate type="float">19.0</standard-tax-rate>
<standard-tax-total type="decimal">2002.5</standard-tax-total>
<status>open</status>
<subtotal type="decimal">2002.5</subtotal>
<total type="decimal">2002.5</total>
<weight-total type="float">0.0</weight-total>
<items type="array">
<item>
<category>The product category</category>
<code>1234567890</code>
<current-status-on type="date" nil="true"/>
<discount type="float">0.0</discount>
<discount-amount type="decimal">0.0</discount-amount>
<discount-price type="decimal">2000.0</discount-price>
<discount-type>money</discount-type>
<editable-quantity type="integer">1</editable-quantity>
<editable-shipping-type>UPS</editable-shipping-type>
<extra-price type="decimal">0.0</extra-price>
<id type="integer">57552</id>
<line-price type="decimal">2000.0</line-price>
<line-tax type="decimal">380.0</line-tax>
<line-weight type="float">0.0</line-weight>
<options nil="true"/>
<order-id type="integer">37578</order-id>
<price type="decimal">2000.0</price>
<product-id type="integer">167358</product-id>
<quantity type="integer">1</quantity>
<shipment-id type="integer" nil="true"/>
<shipping-address-id type="integer" nil="true"/>
<shipping-type>UPS</shipping-type>
<status>undelivered</status>
<subtitle>This is the subtitle of the product.</subtitle>
<tax-category>standard</tax-category>
<tax-rate type="decimal">19.0</tax-rate>
<title>This is the title (name) of the product.</title>
<vendor>Canon</vendor>
<weight type="float">0.0</weight>
</item>
</items>
<shipping-address type="Address">
<city>Hannover</city>
<company/>
<country>DE</country>
<customer-id type="integer">21781</customer-id>
<email>dorra@d-1.com</email>
<extension nil="true"/>
<firstname>Björn B.</firstname>
<id type="integer">126136</id>
<lastname>Dorra</lastname>
<option-01 nil="true"/>
<option-02 nil="true"/>
<option-03 nil="true"/>
<order-id type="integer">37578</order-id>
<phone nil="true"/>
<state>Lower Saxony</state>
<street>Sample Streetname</street>
<streetnumber>34</streetnumber>
<title>Mr.</title>
<zipcode>30161</zipcode>
</shipping-address>
<billing-address type="Address">
<city>Hannover</city>
<company/>
<country>DE</country>
<customer-id type="integer">21781</customer-id>
<email>dorra@d-1.com</email>
<extension nil="true"/>
<firstname>Björn B.</firstname>
<id type="integer">126135</id>
<lastname>Dorra</lastname>
<option-01 nil="true"/>
<option-02 nil="true"/>
<option-03 nil="true"/>
<order-id type="integer">37578</order-id>
<phone nil="true"/>
<state>Lower Saxony</state>
<street>Sample Streetname</street>
<streetnumber>34</streetnumber>
<title>Mr.</title>
<zipcode>30161</zipcode>
</billing-address>
<customer>
<accepts-newsletter type="boolean">true</accepts-newsletter>
<active type="boolean">false</active>
<birthday type="date" nil="true"/>
<created-on type="date">2013-06-20</created-on>
<email>dorra@d-1.com</email>
<id type="integer">12838</id>
<option-01 nil="true"/>
<option-02 nil="true"/>
<option-03 nil="true"/>
<option-04 nil="true"/>
<registered type="boolean">true</registered>
<shop-id type="integer">1157</shop-id>
<updated-on type="date">2013-06-20</updated-on>
</customer>
</order>