Skip to main content

VTEX Integration

Connect your VTEX store with ZenFlow to automatically import orders, sync inventory, and streamline your fulfillment operations at enterprise scale.
This integration supports VTEX Commerce in any country. Compatible with VTEX’s OMS (Order Management System).

Features

Import Orders

Import orders in “ready-for-handling” status

Real-time Feed

Receive status changes via Feed or Webhooks

Inventory Sync

Stock synchronization by warehouse to VTEX

Multi-warehouse

Support for multiple VTEX warehouses

Setup Guide

Step 1: Get API Credentials in VTEX

  1. In your VTEX admin, go to Account settings > Application keys
  2. Click Generate new key
  3. Assign the following permissions:
    • OMS - Full access
    • Logistics - Full access
  4. Copy the App Key and App Token
The App Token is only shown once. Store it securely.

Step 2: Connect in ZenFlow

  1. Go to Settings > Integrations in ZenFlow
  2. Click Connect VTEX
  3. Enter:
    • Account Name: Your VTEX account name (e.g., mystore)
    • App Key: The application key
    • App Token: The application token
  4. Click Connect

Step 3: Select VTEX Warehouse

After connecting, select the VTEX warehouse you want to sync:
  1. Go to Integrations > VTEX > Settings
  2. Select the VTEX warehouse from the list
  3. Enable order and/or inventory synchronization

Step 4: Configure Notifications (Optional)

Choose how to receive new order notifications:

Feed (Recommended)

ZenFlow polls VTEX every 30 seconds. More reliable.

Webhooks

VTEX notifies ZenFlow in real-time. Faster but may miss events.

Order Flow

API Reference

Connect Account

Request:
Response:

Get Connection Status

Response:

Update Configuration

Request:

List VTEX Warehouses

Response:

Set Warehouse

Request:

Configure Feed

Configures the polling feed to receive order changes.

Configure Webhooks

Registers webhooks in VTEX for real-time notifications.

Manually Sync Orders

Request:

Sync Stock to VTEX

List Product Mappings

Response:

Create Product Mapping

Request:

Delete Mapping

Disconnect Account

Order Notifications

Feed (Polling)

Feed is the recommended method for receiving notifications:
  • ZenFlow polls VTEX every 30 seconds
  • Processes status changes in batch
  • Confirms processed items to avoid duplicates
  • More reliable than webhooks (doesn’t miss events)

Webhooks

Webhooks provide real-time notifications:

Product Mapping

Automatic Matching

When an order is imported, ZenFlow attempts to match products automatically:
  1. Looks for existing mapping by vtex_sku_id
  2. If not found, searches by SKU or barcode in ZenFlow
  3. If found, creates the mapping automatically

Manual Mapping

For products that don’t auto-match:
  1. Go to Integrations > VTEX > Product Mapping
  2. Filter by “Unmapped”
  3. Select the corresponding ZenFlow product

Status Mapping

Inventory Synchronization

Stock synchronization works as follows:
  1. ZenFlow calculates available stock (total - reserved)
  2. Updates inventory in VTEX for the configured warehouse
  3. Only syncs products with active mapping and sync_stock: true

Troubleshooting

Cannot Connect

Make sure the App Key and App Token are correct. Generate new credentials if needed.
Credentials need full access to OMS and Logistics. Verify permissions in VTEX Admin.
The account_name must be exactly your VTEX account name (without “.vtexcommercestable.com.br”).

Orders Not Importing

Only orders in “ready-for-handling” status are imported. Check the order flow in VTEX.
Make sure you’ve selected the correct VTEX warehouse in the configuration.
Verify that feed is configured (recommended) or that webhooks are active.

Stock Not Syncing

The product must be mapped and have sync_stock enabled.
The VTEX warehouse must be configured in the integration.
Credentials need Logistics permissions to update inventory.

Rate Limits

ZenFlow handles rate limits automatically with wait and retry logic.

Requirements

  • Active VTEX account
  • App Key and App Token with permissions:
    • OMS - Full access
    • Logistics - Full access
  • At least one warehouse configured in VTEX

Support