Integrating Vendre with Rule
Vendre is a complete e-commerce platform that includes all the components you need to run an e-commerce business, whether you sell b2c, b2b or private label.
With the integration between Rule and Vendre, you can automatically sync and send over events that take place in your webshop directly into your account in Rule, to easily reach out to customers via email and SMS.
Process your customers right after they've shopped in your store using automations in Rule based on buying behavior data from your store. In this way, your communication will be more accurate and personalized.
This integration uses Vendre webhook triggers to send customer and order data to Rule when certain events occur on the Vendre platform.
Additional information about Vendre's webhooks and API can be found här.
|Webhook Events in Vendre||Tag in Rule|| Data sent
|Customer Added||Vendre, Newsletter*||Subscriber Data|| Triggered when a new customer is created (e.g. a new customer creates an order)
|Customer Updated||Vendre, Newsletter*||Subscriber Data|| Triggered when customer information is updated
|Customer Deleted||-||-||Subscriber removed from Rule|
|Cart Updated||CartInProgress||Subscriber & Cart Data||Shopping cart updated|
|Order Completed||OrderCompleted||Order Data|| Triggered when an order is completed in Vendre's webshop
* The newsletter tag is used when the customer selects the "subscribe to newsletter" check box at checkout
Note: All events are triggered from the shop window. Updating or adding customers from the admin panel will not trigger webhook events.
Data fields sent to Rule
Subscriber.Source (Vendre) Subscriber.AddressCity Subscriber.AddressCountryId Subscriber.AddressPostcode Subscriber.Street Subscriber.Street2 Subscriber.Company Subscriber.MarketID Subscriber.Gender Subscriber.NameAlias Subscriber.NameFisrt Subscriber.NameLast Subscriber.Birthday Subscriber.GroupId Subscriber.DateAdded Subscriber.DateModified
Cart.Products (JSON - see below) Cart.Names Cart.Models Cart.Manufacturers Cart.ProductTags
The Cart.Products field contains a JSON formatted array with information about the product(s) in an order:
id_string id image_id image_path quantity model name price final_price tax tax_class_id weight package_content unit external_id category_name manufacturer_name tag_names
Order.ID Order.BillingName Order.BillingCompany Order.BillingStreetAddress Order.BillingStreetAddress2 Order.BillingCity Order.BillingPostcode Order.BillingCountryId Order.Currency Order.ShippingName Order.ShippingCompany Order.ShippingStreetAddress Order.ShippingStreetAddress2 Order.ShippingCity Order.ShippingPostCode Order.ShippingCountryId Order.VatDisp Order.Date Order.Names Order.Models Order.Manufacturers Order.Products (JSON - see below) Order.Total Order.Totals (JSON - see below)
The Orders.Products field contains a JSON-formatted array with information about the product(s) in an order:
id image_id external_id quantity model name price final_price tax tax_class_id weight attributes package_content unit manufacturer_name
The Order.Totals field contains a JSON formatted array with the total cost of an order:
title text value tax class
Importing historical customer data
If there are orders and members in Vendre that are missing in Rule, we recommend downloading these, then you can start segmenting your members from day 1. The only thing Rule needs is an API key from Vendre and the address of the e-commerce site.
Then send them to email@example.com. See example below
API key: 4wGpn-UB9lPLjygjGw9E7F4Bz-GyC-ElTz6N
Generate and copy a new Rule API key from Rule utvecklarssidan.
The Webhook URL should be put together with the API key shown below (alternatively, you can enter your API key in the text box below to have the webhook URL automatically assembled).
On Vendre's webhook page, paste the webhook URL (combined with the API key) into the URL field of the webhook you want to enable. It is recommended to enable all available webhooks available to have the most complete set of data available on Rule.
To test webhooks, trigger the events from the webshop for the webhooks added (such as creating a new order, creating a new customer or updating a customer's information). Once a webhook has been triggered, you can see the webhook logs at the bottom of the webhooks page on Vedre to confirm that the data was sent to Rule.
The integration is now complete and you will be able to see customer events inside the Rule platform because the connector causes Vendre to send that data over to Rule as soon as an event occurs.
When you have finished your settings, make a test call to Rule for all your feeds, then you will be able to see in your account in Rule what data you are getting in and to what tag.