Description
n8n-nodes-avanta
An n8n community node for integrating with the Avanta B2B E-Commerce platform. This node enables seamless integration with Avanta’s comprehensive B2B commerce solution, allowing you to automate customer management, order processing, inventory tracking, and business reporting directly from your n8n workflows.
Table of Contents
- About Avanta
- About this n8n node
- Installation
- Configuration
- Operations
- Usage Examples
- API Reference
- Changelog
- Contributing
- License
- Support
About avanta: ERP-First B2B Commerce Platform
avanta is an ERP-first B2B commerce platform for manufacturers, industrial companies, and wholesalers.
The platform is specifically designed for complex B2B processes and connects digital sales, service, and after-sales channels directly with the ERP system.
Unlike traditional e-commerce systems, avanta offers a comprehensive B2B feature set out of the box. Companies can digitalize key sales and customer service processes without extensive custom development.
The platform is open source and can be deployed as SaaS, in the cloud, or on-premise.
avanta is primarily used by mid-market and enterprise companies, particularly in industries such as mechanical engineering, plant engineering, tooling, chemicals, industrial components, and packaging.
The platform includes features such as B2B online shops, customer and service portals, PunchOut integrations (OCI / cXML), spare parts solutions, mobile apps, IoT automation, and integrated AI capabilities and bots.
About this n8n node:
This n8n node provides direct access to avanta’s powerful API, enabling you to automate your workflows and integrate avanta with your existing business processes.
Installation
Community Nodes (Recommended)
1. Go to Settings > Community Nodes in your n8n instance
2. Select Install a community node
3. Enter n8n-nodes-avanta in the npm package name field
4. Click Install
Manual Installation
If you’re running n8n locally, you can install this node manually:
Navigate to your n8n installation directory
cd ~/.n8nInstall the node
npm install n8n-nodes-avantaRestart n8n
Docker Installation
For Docker installations, you can install community nodes by:
1. Using the n8n interface (recommended)
2. Building a custom Docker image with the node pre-installed
Configuration
Credentials Setup
1. In n8n, go to Credentials and create new avanta API credentials
2. Fill in the required fields:
– Host: Your avanta API base URL including store scope (e.g., https://your-avanta-instance.com/rest/STORE_CODE or https://your-avanta-instance.com/rest/all for all stores)
– Access Token: Your avanta API access token
Getting API Credentials
To obtain your avanta API credentials, you’ll need to generate an access token through the avanta admin interface:
#### Step 1: Access the Admin Panel
1. Log into your avanta system with administrator privileges
2. Navigate to System > Integrations > API Tokens in the admin menu
#### Step 2: Create a New Integration Token
1. Click Add New Token or Create Integration
2. Provide a descriptive name for your integration (e.g., “n8n Workflow Integration”)
3. Select the appropriate API Resources and Access Levels based on your workflow needs:
– Companies: For managing B2B customer companies and relationships
– Orders: For order processing and management
– Products: For catalog and inventory operations
– Reports: For generating business analytics and reports
– Users: For customer user management
#### Step 3: Configure Token Permissions
Set the appropriate access levels for each resource:
#### Step 4: Generate and Secure Your Token
1. Click Generate Token
2. Important: Copy the generated access token immediately – it will only be displayed once
3. Store the token securely (consider using a password manager)
4. Note your API base URL including store scope (typically https://your-domain.com/rest/STORE_CODE or https://your-domain.com/rest/all for all stores)
#### Authentication Method
The avanta API uses Bearer Token Authentication. All API requests must include the access token in the Authorization header:
Authorization: Bearer YOURACCESSTOKEN
#### Token Security Best Practices
#### Troubleshooting Authentication
If you encounter authentication issues:
1. Verify the token hasn’t expired or been revoked
2. Check that the token has the necessary permissions for your operations
3. Ensure your API base URL is correct and accessible
4. Confirm your avanta instance supports the API version being used
Operations
The avanta node supports comprehensive B2B E-Commerce operations across the following resources:
Customer Companies
Company Addresses
Company Contacts
Company Groups
Company Restrictions
Company Roles (available from avanta v3.6)
Company Rules (available from avanta v3.6)
Company SKUs
Company Users
Bill of Materials (BOM)
Categories
Downloads
Order Management
Business Reports
Product Catalog
Sales Organizations
Usage Examples
Creating a Company
{
"name": "Example Corp",
"email": "contact@example.com",
"group_id": "1",
"additionalFields": {
"telephone": "+1-555-0123",
"vat_id": "US123456789",
"internet": "https://example.com"
}
}
Creating an Order Report
{
"customer_id": "CUST001",
"company_id": 123,
"customer_orderid": "ORD-2024-001",
"order_positions": [
{
"item_pos": 1,
"name": "Product A",
"sku": "PROD-A-001",
"qty": 5,
"price": 29.99,
"subtotal": 149.95
}
]
}
Creating a Company Address
{
"companycustomerid": "COMP001",
"companygroupid": "1",
"externaladdressid": "ADDR001",
"additionalFields": {
"street": "123 Business Ave",
"city": "Business City",
"postcode": "12345",
"country_id": "US",
"address_type": 1
}
}
API Reference
Authentication
All API requests require authentication using a Bearer token:
Authorization: Bearer YOURACCESSTOKEN
Base URL
All API endpoints are relative to your avanta instance base URL including store scope:
https://your-avanta-instance.com/rest/STORE_CODE/V1/proline-admin/
Or for all stores:
https://your-avanta-instance.com/rest/all/V1/proline-admin/
Common Parameters
Most operations support these common parameters:
Error Handling
The node includes comprehensive error handling:
Data Types and Validation
Required Fields
Each B2B E-Commerce operation has specific required fields. Common required fields include:
name, group_id for company registrationcustomerid, companyid for transaction trackingcompanycustomerid, companygroupid for shipping/billing setupOptional Fields
Most B2B operations support additional optional fields through the “Additional Fields” collection, enabling:
Date Formatting
Date fields are automatically formatted to ISO 8601 format when sent to the API.
Workflow Integration
B2B E-Commerce Use Cases
The avanta node is designed for comprehensive B2B E-Commerce automation:
Triggers
This node works well with:
Data Flow
The node can be chained with:
Troubleshooting
Common Issues
1. Authentication Errors
– Verify your API credentials are correct
– Check that your access token hasn’t expired
– Ensure your host URL is correct
2. Validation Errors
– Check that all required fields are provided
– Verify data types match expected formats
– Review field length limitations
3. Connection Issues
– Verify network connectivity to your avanta instance
– Check firewall settings
– Confirm SSL/TLS configuration
Debug Mode
Enable debug mode in n8n to see detailed request/response information:
1. Set environment variable: N8NLOGLEVEL=debug
2. Restart n8n
3. Check logs for detailed API communication
Contributing
We welcome contributions to improve this node! Here’s how you can help:
Development Setup
1. Clone the repository:
git clone https://github.com/ecoplan-avanta/n8n-nodes-avanta.git
cd n8n-nodes-avanta
2. Install dependencies:
npm install
3. Build the project:
npm run build
4. Run linting:
npm run lint
Submitting Changes
1. Fork the repository
2. Create a feature branch: git checkout -b feature/your-feature-name
3. Make your changes
4. Run tests and linting: npm run lint
5. Commit your changes: git commit -m "Add your feature"
6. Push to your fork: git push origin feature/your-feature-name
7. Submit a pull request
Code Standards
License
This project is licensed under the MIT License – see the LICENSE file for details.
Support
Documentation
Community
Commercial Support
For commercial support and custom development:
Changelog
For a detailed list of changes and version history, see the CHANGELOG.md file.
You can also view the releases on GitHub Releases.
> Note: The changelog is automatically generated from git commits when pushing to a release branch (GitLab CI). Commits are categorized based on their message prefixes:
> – feat, add, AVANTAN8N-, AVANTA- → Added
> – fix, bugfix, hotfix → Fixed
> – Other commits → Changed
>
> GitHub Releases are automatically created after npm publish via GitHub Actions.
Latest Version: 0.1.72
Highlights of recent releases:
—
Note: This is a community-maintained node. For issues specific to the avanta API itself, please contact avanta support directly.