n8n-nodes-vtex-apis
v0.3.2
Published
n8n community node for VTEX e-commerce platform
Maintainers
Readme
n8n-nodes-vtex-apis
This is an n8n community node that lets you interact with the VTEX e-commerce platform in your n8n workflows.
VTEX is a leading enterprise e-commerce platform for Latin America and beyond. This node provides access to the VTEX APIs for catalog management, orders, inventory, pricing, and more.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
Community Node Installation
- Go to Settings > Community Nodes.
- Select Install.
- Enter
n8n-nodes-vtex-apisin Enter npm package name. - Agree to the risks of using community nodes: select I understand the risks of installing unverified code from a public source.
- Select Install.
After installing the node, you can use it like any other node. n8n displays the node in search results in the Nodes panel.
Manual Installation
To get started locally, install the dependencies and build the code:
npm install
npm run buildThen link the node to your n8n installation:
npm link
cd ~/.n8n/nodes
npm link n8n-nodes-vtex-apisOperations
This node currently supports the following operations:
Product
- Create - Create a new product
- Get - Retrieve a product by ID
- Get Many - List multiple products
- Update - Update an existing product
- Delete - Delete a product
SKU
- Create - Create a new SKU for a product
- Get - Retrieve a SKU by ID
- Get Many - List multiple SKUs
- Update - Update an existing SKU
Order
- Get - Retrieve an order by ID
- Get Many - List multiple orders with filters
- Start Handling - Start handling an order
- Cancel - Cancel an order
Category
- Create - Create a new category
- Get - Retrieve a category by ID
- Get Many - List all categories (tree structure)
- Update - Update an existing category
- Delete - Delete a category
Brand
- Create - Create a new brand
- Get - Retrieve a brand by ID
- Get Many - List all brands
- Update - Update an existing brand
- Delete - Delete a brand
Inventory
- Get - Get inventory for a SKU
- Update - Update inventory quantity by warehouse
Pricing
- Get - Get price for a SKU
- Create or Update - Set price for a SKU
- Delete - Delete price for a SKU
Warehouse
- Create - Create a new warehouse
- Get - Retrieve a warehouse by ID
- Get Many - List all warehouses
- Update - Update an existing warehouse
- Delete - Delete a warehouse
Promotion 🆕
- Create - Create a new promotion with percentage or fixed discount
- Get - Retrieve a promotion by ID
- Get Many - List promotions (with archived filter)
- Update - Update a promotion
- Archive - Archive a promotion
- Unarchive - Reactivate an archived promotion
Coupon 🆕
- Create - Create a coupon with custom code
- Get - Retrieve a coupon by code
- Get Many - List all coupons
- Archive - Archive a coupon
Master Data (CRM) 🆕
- Create Document - Create a document in any Master Data entity
- Get Document - Retrieve a document with field selection
- Update Document - Update a document
- Delete Document - Delete a document
- Search Documents - Search with advanced filters and pagination
- Get Client by Email - Quick client lookup by email
Product Search 🆕
- Search - Advanced product search with filters, categories, and sorting
- Get by Identifier - Find products by ID, EAN, Reference ID, or SKU ID
Credentials
To use this node, you need VTEX API credentials:
- Go to your VTEX Admin
- Navigate to Account Settings → Account → Security → Application Keys
- Click Generate access key
- Save your App Key and App Token securely
- In n8n, create new credentials for "VTEX API" and enter:
- Account Name: Your VTEX account name (e.g.,
mystore) - Environment: Usually
vtexcommercestable - App Key: Your VTEX App Key
- App Token: Your VTEX App Token
- Account Name: Your VTEX account name (e.g.,
Required Permissions
Your App Key needs appropriate permissions depending on which operations you'll use:
- Catalog API - For product and SKU operations
- OMS API - For order operations
- Pricing API - For pricing operations
- Logistics API - For inventory and warehouse operations
Compatibility
This node is compatible with n8n version 1.0.0 and above.
Tested with:
- n8n v1.0+
- Node.js 18+
Usage
Example: Create a Product
- Add a VTEX node to your workflow
- Select Product as the resource
- Select Create as the operation
- Fill in the required fields:
- Name: "Premium T-Shirt"
- Category ID: 1
- Brand ID: 2
- Optionally add additional fields like description, reference ID, etc.
Example: Get Recent Orders
- Add a VTEX node to your workflow
- Select Order as the resource
- Select Get Many as the operation
- Configure filters:
- Add "Creation Date From" filter for recent orders
- Process the order data in subsequent nodes
Example: Update Inventory
Coming soon! Inventory operations will be added in the next version.
Resources
Development
Building the Node
npm run buildWatching for Changes
npm run devLinting
npm run lint
npm run lintfixVersion History
0.1.0 (Initial Release)
- Product operations (Create, Get, Get Many, Update, Delete)
- SKU operations (Create, Get, Get Many, Update)
- Order operations (Get, Get Many, Start Handling, Cancel)
- VTEX API authentication
License
Author
Leonardo Sepúlveda
- Email: [email protected]
- GitHub: @leosepulveda
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you encounter any issues or have questions:
- Open an issue on GitHub
- Check the VTEX Developer Portal for API documentation
- Visit the n8n community forum
Made with ❤️ for the n8n and VTEX communities
