|
/ Documentation /Workflows/ Send SureCart Order Data to Brevo

Send SureCart Order Data to Brevo

Want to automatically add customers to your Brevo email list when they complete a purchase on your SureCart store? This guide walks you through setting up a workflow that captures order information and sends it straight to Brevo, keeping your email marketing list synchronized with your sales in real-time.

Perfect for building targeted email campaigns, abandoned cart sequences, or customer segmentation based on purchase behavior.

What You’ll Need

Before you start, make sure you have:

  • SureCart installed and activated on your WordPress site
  • OttoKit plugin installed and activated on the same site (Download from WordPress.org)
  • An OttoKit account (sign up for free if you don’t have one yet)
  • A SureCart account with at least one product created
  • A Brevo account for email marketing

Step 1: Connect OttoKit to Your WordPress Site

First, establish the connection between OttoKit and your WordPress site.

  1. In your WordPress dashboard, go to OttoKit in the sidebar.
  2. Click Sign In and log in with your OttoKit account credentials.
  3. This creates a connection between OttoKit and your site.

Step 2: Create a SureCart API Connection

Unlike WordPress plugins that connect automatically, SureCart requires an API token for secure communication.

Generate Your SureCart API Token

  1. Go to https://app.surecart.com/api_tokens
  2. Click New Token
  3. Enter a name for your API token (e.g., “OttoKit Integration”)
  4. Click Create
  5. Copy the token that appears (you won’t be able to see it again)

Connect SureCart in OttoKit

  1. In your WordPress dashboard, go to OttoKit → Apps
  2. Click the “Create Connection” button and select “Create New.”
  3. Search for SureCart and select it
  4. Enter a name for the connection (e.g., “My SureCart Store”)
  5. Paste the API token you copied
  6. Click Connect SureCart

Step 3: Create a Brevo API Connection

Now, let’s connect your Brevo account so OttoKit can automatically add contacts.

Generate Your Brevo API Key

  1. Go to https://app.brevo.com/settings/keys/api
  2. Click Generate a new API key
  3. Enter a name for the key (e.g., “OttoKit Integration”)
  4. Click Generate
  5. Copy the API key that appears

Connect Brevo in OttoKit

  1. In your WordPress dashboard, go to OttoKit → Apps
  2. Click on the “Create Connection” button, choose Create New
  3. Search for Brevo and select it
  4. Enter a name for the connection (e.g., “My SureCart Store”)
  5. Paste the API key you copied
  6. Click Connect Brevo

Step 4: Create a Test Order in SureCart

Before setting up the workflow, you need to create a test order, so OttoKit has real data to work with.

  1. Go to SureCart in your WordPress dashboard
  2. Navigate to your shop page on the front end
  3. Select a product and go through the checkout process
  4. Complete the purchase to create an order

This test order will be used to fetch sample data when configuring your workflow.

Step 5: Create Your Workflow in OttoKit

Now let’s build the automation that connects your orders to Brevo.

Create a New Workflow

  1. In your WordPress dashboard, go to OttoKit → Workflows
  2. Click Create Workflow
  3. From the dropdown, select Create from Scratch
  1. Enter a name for your workflow, like “SureCart Orders to Brevo.”
  2. Click Create

Add the SureCart Trigger

The trigger is what starts your workflow, in this case, when an order is paid.

  1. Click the plus (+) button to add a trigger step
  2. In the apps search field, type SureCart and select it
  1. Choose the Order Paid trigger event
  2. Click Select Connection, then choose the SureCart connection you created earlier
  3. Click Continue to move to the Test tab
  1. Click Fetch Data
  2. OttoKit will pull the details from your most recent order
  3. Review the data to confirm everything looks correct
  4. Click Save

Add a Filter (Optional but Recommended)

If you sell multiple products but only want to add customers to Brevo when they purchase a specific product, add a filter step.

Why use a filter? If someone orders multiple products and you only want to track purchases of a specific item (like a premium course or membership), the filter ensures only the right customers get added to your Brevo list.

  1. Click the plus (+) icon below your trigger to add a new step
  2. Search for and select Filter
  1. Under the Configure tab, set up your condition:
    • Field: Type @ and select the product name field from your SureCart order data
    • Operator: Select Contains
    • Value: Type the name of the specific product you want to target
  1. Click Continue to move to the Test tab
  2. Click Test Action to verify the filter works correctly
  1. If the condition is met, it will return either “False” or “True”. In this case, it returns true as the product line item contains the searched product.
  2. Click Save

Note: 

  • If you want to add all customers to Brevo regardless of what they purchase, you can skip this filter step entirely.
  • Workflows that use the Filter app can only be published on OttoKit premium plans.

Add the Brevo Action

Now let’s tell OttoKit what to do with that order data, add or update the customer in Brevo.

  1. Click the plus (+) icon below your filter (or trigger, if you skipped the filter)
  2. In the apps search field, type Brevo and select it
  1. Choose the Add/Update Contact action
  2. Click Select Connection, then choose your Brevo connection
  3. Click Continue to open the Configure tab

Configure the Brevo Contact

  1. User Email: Type @ in the field and select the customer email from your SureCart order data
  2. Folder: Select the Brevo list/folder where you want to add this contact
  3. Map customer name, phone number, or other order details to Brevo contact attributes
  4. Optional fields (click Show Optional Fields if you want to access more options)
  1. Click Continue to move to the Test tab

Test Your Action

  1. Click Test Action
  2. OttoKit will send the test order data to Brevo
  3. Check your Brevo account to verify the contact was added successfully
  1. If everything looks good, click Save

Step 6: Activate Your Workflow

Your workflow is built and tested, now let’s turn it on.

  1. At the top of the workflow builder, click the Publish button
  2. You’ll see the status change to Update

That’s it! Your workflow is now live and monitoring your SureCart store.

How It Works

From now on, every time a customer completes a purchase on your SureCart store:

  1. OttoKit detects the “Order Paid” event instantly
  2. If you added a filter, it checks whether the order matches your criteria
  3. The customer’s email and details are automatically sent to Brevo
  4. The contact is added to your chosen list (or updated if they already exist)

No manual data entry. No CSV imports. Everything happens automatically in the background.

Tips for Success

  • Test with real orders – After activating, complete a test purchase to verify everything flows correctly
  • Check your Brevo lists – Make sure contacts are appearing in the right folder
  • Monitor your workflow – Check the workflow history in OttoKit occasionally to ensure everything is running smoothly
  • Update field mappings – If you add new products or change your Brevo list structure, update your workflow accordingly
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top