Vendre integration


Vendre is a complete e-commerce platform that includes all the components you need to run e-commerce, whether you sell B2C, B2B or your own brand.


With the integration between Rule and Vendre, you can automatically sync and send events that occur in your webshop directly to your account in Rule, to easily reach customers via email and SMS.


Process your customers directly after they have made a purchase in your shop using automations in Rule based on purchase behavior data from your store. This way, your communication will be more accurate and personalized.


We will go through:


  1. About the integration
  2. Installation
  3. Usage
  4. Import historical orders, one retrieval at a time
  5. Data fields sent to Rule


About the 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 here.


Installation


  1. In the Vendre admin panel, navigate to the 'Apps & Integration' section in the navigation window and click on 'Webhooks'
  2. Create an API key inside your Rule account, go to 'Settings' > 'Developer' > Create a new API key > Name the API key > Copy the API key
  3. The webhook URL should be combined with the API key shown below (alternatively, you can enter your API key in the text box below to automatically combine the webhook URL).                                            
  4.  Enter Rule API Key:
    https://ix.rule.io/vendre?apikey=APIKEYHERE
  5. On Vendre's webhook page, paste the webhook URL (combined with the API key) into the URL field for the webhook you want to activate. It is recommended to activate all available webhooks to have the most complete set of data available on Rule.

  6. To test webhooks, trigger events from the webshop for the webhooks that have been 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 Vendre to confirm that 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 connection allows Vendre to send that data to Rule as soon as an event occurs.


Once you have finished your settings, make a test call to Rule for all your flows, then you will be able to see in your Rule account what data you are receiving and to which tag.



Usage


Webhook event in VendreTag in RuleData sent to RuleDescription
Customer AddedVendre, Newsletter*Subscriber Data
Triggered when a new customer is created (e.g. a new customer places an order)

Customer UpdatedVendre, Newsletter*Subscriber Data
Triggered when customer information is updated

Customer Deleted--
Subscriber is removed from Rule

Cart UpdatedCartInProgressSubscriber & Cart Data
Cart updated

Order CompletedOrderCompletedOrder Data
Triggered when an order is completed in Vendre's webshop


The newsletter tag is used when the customer checks the box "subscribe to newsletter" at checkout


All events are triggered from the storefront. Updating or adding customers from the admin panel will not trigger webhook events


Import historical orders, one retrieval at a time


If there are orders and subscribers in Vendre that are missing in Rule, we recommend retrieving them, so you can start segmenting your subscribers from day 1. All Rule needs is an API key from Vendre and the address to the e-commerce site.


Then send these to support@rule.se. See example below


URL: https://examplestore.com/


Vendre API key (example): 4wGpn-UB9lPLjygjGw9E7F4Bz-GyC-ElTz6N


If you are unsure where to find this information, contact Vendre.


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.NameFirst
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 field Cart.Products contains a JSON-formatted array with information about the product/products 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)
Order.ProductTagsSwedish
Order.ProductTagsEnglish
Order.ProductCategoriesSwedish
Order.ProductCategoriesEnglish


The field Orders.Products contains a JSON-formatted array with information about the product/products 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 field Order.Totals contains a JSON-formatted array with the total cost of an order:


title
text
value
tax
class






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article

Other ways to get help

Sign up for our next training

Free

Become an expert in Rule and discover the power of all the functions in the platform. We guide you step-by-step!

Contact us to book a Workshop

Discover how you can increase digital engagement and growth in a personal review of Rule

Couldn’t find what you needed?

No worries, feel free to reach out to our support about any queries!

Sign up to our newsletter!

I agree to receive Rules newsletter in accordance with the privacypolicy.