Integrate 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 events that happen in your webshop directly to your account in Rule, to easily reach out to customers via email and SMS.
Process your customers immediately after they have shopped in your shop with the help of automations in Rule that are based on purchase behavior data from your store. This way, your communication will be more accurate and personalized.
About integration
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.
Use
Webhook Events in Vendre | Tag i Rule | Data sent Rule |
Description | |
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 Fields
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 Fields
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 Fields
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 support@rule.se. See example below
URL: https://examplestore.com/
API key: 4wGpn-UB9lPLjygjGw9E7F4Bz-GyC-ElTz6N
Installation
Generate and copy a new Rule API key from the 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).
https://ix.rule.io/vendre?apikey=APIKEYHERE
On the Vendre webhook page, paste the webhook URL (combined with the API key) in the URL field of the webhook you want to activate. It is recommended to activate 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 added webhooks (like creating a new order, creating a new customer or updating a customer's information). Once a webhook has been triggered, you can view 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 as the connection allows Vendre to send that data to Rule as soon as an event occurs.
When you are done with your settings, make a test call to Rule for all your feeds, then you will be able to see in your account in Rule which data you receive and to which tag.