Package Information
Available Nodes
Documentation
n8n-nodes-sahabat-xpert
Sahabat Xpert - Multi-platform business automation node for n8n workflow automation.
Description
This package provides a powerful n8n node for Sahabat Xpert multi-service business automation with comprehensive integration capabilities:
Sahabat Xpert Node
A unified node supporting 4 major business services:
๐ E-commerce Operations (Bizapp)
- Get Product List: Retrieve product catalogs with SKU filtering
- Submit Order: Process orders with customer data and product items
๐ณ Payment Processing
- Process Payment: Handle payment transactions (Coming Soon)
- Refund Payment: Process payment refunds (Coming Soon)
- Check Payment Status: Monitor payment transaction status (Coming Soon)
๐ Shipping Management
- Create Shipment: Generate new shipping orders (Coming Soon)
- Track Shipment: Monitor shipment status and location (Coming Soon)
- Get Shipping Rates: Calculate shipping costs and delivery options (Coming Soon)
๐ฅ CRM Integration
- Create Contact: Add new contacts to CRM system (Coming Soon)
- Update Contact: Modify existing contact information (Coming Soon)
- Get Contact: Retrieve contact details and history (Coming Soon)
Installation
Community Nodes (Recommended)
- Go to Settings > Community Nodes in your n8n instance
- Click Install a community node
- Enter:
n8n-nodes-sahabat-xpert - Click Install
Manual Installation
# In your n8n root directory
npm install n8n-nodes-sahabat-xpert
Development Installation
# Clone this repository
git clone https://github.com/nmhafiz/n8n-nodes-sahabat-xpert.git
cd n8n-nodes-sahabat-xpert
# Install dependencies
npm install
# Build the nodes
npm run build
# Link to your n8n installation
npm link
cd /path/to/your/n8n
npm link n8n-nodes-sahabat-xpert
Node Operations
This package provides one unified node with multiple service operations:
Sahabat Xpert Node
๐ E-commerce Service (Bizapp)
Get Product List Operation:
- Retrieve all available products from Bizapp API
- Filter products by SKU pattern
- Include/exclude stock information
- Returns comprehensive product details (SKU, name, description, price, stock)
Submit Order Operation:
- Submit orders with complete customer information
- Support multiple products per order
- Automatic formatting for phone numbers, emails, and addresses
- Auto-generated order IDs and price formatting
- Real-time order processing
๐ณ Payment Service (Coming Soon)
Process Payment: Execute payment transactions with gateway integration
Refund Payment: Handle payment reversals and refund processing
Check Payment Status: Monitor and verify payment transaction states
๐ Shipping Service (Coming Soon)
Create Shipment: Generate shipping orders with carrier integration
Track Shipment: Real-time shipment tracking and status updates
Get Shipping Rates: Calculate shipping costs and delivery timeframes
๐ฅ CRM Service (Coming Soon)
Create Contact: Add new customer contacts to CRM system
Update Contact: Modify existing contact information and preferences
Get Contact: Retrieve detailed contact profiles and interaction history
Configuration
Credentials Setup
Create new credentials of type Sahabat Xpert Credentials
Select the appropriate Service Type based on your needs:
- Bizapp E-commerce: For e-commerce operations โ Available
- Payment Gateway: For payment processing services ๐ง Coming Soon
- Shipping API: For shipping and logistics operations ๐ง Coming Soon
- CRM System: For customer relationship management ๐ง Coming Soon
Enter the corresponding credentials based on your selected service type:
For Bizapp E-commerce: โ Available
- Bizapp Secret Key: Your Bizapp API authentication key
For Payment Gateway: ๐ง Coming Soon
- Payment API Key: Your payment gateway API key
- Payment API Secret: Optional API secret for enhanced security
For Shipping API: ๐ง Coming Soon
- Shipping API Token: Access token for shipping service authentication
For CRM System: ๐ง Coming Soon
- CRM Access Token: Access token for CRM system
- CRM Base URL: Base URL for your CRM system (optional)
Usage Examples
๐ E-commerce Operations
Get Product List:
{
"service": "ecommerce",
"ecommerceOperation": "getProductList",
"skuFilter": "PROD",
"includeStock": true
}
Submit Order:
{
"service": "ecommerce",
"ecommerceOperation": "submitOrder",
"customerName": "John Doe",
"customerAddress": "123 Main St, City, State 12345",
"customerPhone": "+1234567890",
"customerEmail": "john@example.com",
"totalPrice": 99.99,
"products": {
"productValues": [
{
"sku": "PROD001",
"quantity": 2
},
{
"sku": "PROD002",
"quantity": 1
}
]
}
}
๐ณ Payment Operations (Coming Soon)
Process Payment: (Preview - Implementation in progress)
{
"service": "payment",
"paymentOperation": "processPayment",
"amount": 99.99,
"currency": "MYR",
"paymentMethod": "credit_card"
}
๐ Shipping Operations (Coming Soon)
Create Shipment: (Preview - Implementation in progress)
{
"service": "shipping",
"shippingOperation": "createShipment",
"recipientName": "John Doe",
"recipientAddress": "123 Main St, City, State 12345",
"packageWeight": 2.5
}
๐ฅ CRM Operations (Coming Soon)
Create Contact: (Preview - Implementation in progress)
{
"service": "crm",
"crmOperation": "createContact",
"contactName": "John Doe",
"contactEmail": "john@example.com",
"contactPhone": "+1234567890"
}
API Compatibility
This package is designed to work with multiple service APIs that support:
๐ E-commerce APIs (Bizapp) โ Fully Implemented
- RESTful endpoints with JSON communication
- Secret key authentication
- Product catalog and order management
๐ณ Payment Gateway APIs ๐ง Coming Soon
- Secure payment processing protocols
- API key/secret authentication
- Transaction management and status tracking
๐ Shipping Service APIs ๐ง Coming Soon
- Carrier integration protocols
- Token-based authentication
- Shipment creation and tracking
๐ฅ CRM System APIs ๐ง Coming Soon
- Customer data management
- OAuth or token authentication
- Contact lifecycle management
Error Handling
All service operations include comprehensive error handling:
Common Error Handling
- Network timeouts (30 seconds)
- Invalid response formats
- Authentication failures
- Missing required parameters
- Service-specific validation errors
Service-Specific Error Handling
๐ E-commerce (Bizapp)
- INVALIDKEY errors with auto-correction suggestions
- Product SKU validation
- Order format validation
๐ณ Payment Processing
- Payment gateway connection errors
- Transaction validation failures
- Currency and amount format errors
๐ Shipping Management
- Carrier API connectivity issues
- Address validation errors
- Package specification errors
๐ฅ CRM Integration
- Contact data validation
- Duplicate contact handling
- CRM system connectivity errors
Development
# Install dependencies
npm install
# Build for development
npm run dev
# Build for production
npm run build
# Run linting
npm run lint
# Format code
npm run format
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details.
Troubleshooting
Common Issues
1. Service-Specific Authentication Errors
Problem: Getting authentication errors for different services
Solutions:
For Bizapp E-commerce (INVALIDKEY Error):
Check Credential Configuration:
Service Type: Bizapp E-commerce Bizapp Secret Key: your-secret-key-hereVerify Secret Key Format:
- Enter your secret key without the
-prefix - The system will automatically add
-if needed - Example: If your key is
abc123, enterabc123(not-abc123)
- Enter your secret key without the
For Payment Gateway:
- Verify API Key and Secret are correct
- Check if payment gateway service is active
- Ensure proper currency and amount formats
For Shipping API:
- Validate shipping API token
- Check carrier service availability
- Verify address format requirements
For CRM System:
- Confirm CRM access token is valid
- Check CRM base URL configuration
- Verify contact data format requirements
General Solutions:
3. Test Credentials:
- Click "Test" button in credential settings
- Ensure you get a successful response
- Reinstall Node (if issue persists):
1. Go to Settings > Community Nodes 2. Uninstall n8n-nodes-sahabat-xpert 3. Restart n8n 4. Reinstall n8n-nodes-sahabat-xpert 5. Reconfigure credentials
2. Node Not Loading
Problem: Node doesn't appear in n8n after installation
Solutions:
- Restart n8n service/container
- Clear browser cache
- Check n8n logs for installation errors
- Verify node is installed:
npm list n8n-nodes-sahabat-xpert
3. Credential Test Fails
Problem: Credential test returns error
Solutions:
- Verify internet connection
- Check if API endpoint is accessible
- Ensure secret key is valid and active
- Contact API provider if key is expired
4. Empty Product List
Problem: Get Product List returns empty array
Solutions:
- Verify your account has products configured
- Check if SKU filter is too restrictive
- Test with empty SKU filter first
- Verify API permissions for your account
Best Practices
General Practices
- Always test credentials after setup for each service type
- Monitor n8n logs for detailed error messages
- Keep all API keys and tokens secure - never share them
- Update to latest version regularly
- Use appropriate service types for different operations
Service-Specific Best Practices
๐ E-commerce (Bizapp):
- Use exact SKU values from Get Product List operation
- Test with small orders before processing bulk orders
- Validate customer data format before submission
๐ณ Payment Processing:
- Always verify payment amounts and currency
- Implement proper error handling for failed transactions
- Test in sandbox mode before going live
๐ Shipping Management:
- Validate shipping addresses before creating shipments
- Monitor shipment status regularly
- Keep tracking information updated
๐ฅ CRM Integration:
- Avoid creating duplicate contacts
- Maintain consistent contact data format
- Regular data synchronization between systems
Getting Help
If you're still experiencing issues:
Check n8n logs:
# Docker docker logs n8n-container-name # PM2 pm2 logs n8n # Direct installation Check ~/.n8n/logs/Test API directly:
curl "https://woo.bizapp.my/v2/getproductlist/-YOUR-SECRET-KEY"Verify node version:
npm list n8n-nodes-sahabat-xpert
Support
For issues and questions:
- Create an issue on GitHub
- Check the n8n community forum
- Review the documentation
- Test API endpoints directly for debugging
Changelog
v1.4.3 (Latest)
- ๐ CRITICAL FIX: Fixed submit order validation bug
- โ Now properly checks Bizapp API response status field
- โ Throws error when Bizapp returns failure status
- ๐ Added bizapp_order_id and bizapp_status to response
- ๐ Enhanced error reporting for failed order submissions
v1.4.2
- ๐ท๏ธ Penambahan label "Coming Soon" untuk fitur yang belum diimplementasikan (Payment, Shipping, CRM)
- ๐ Klarifikasi status implementasi - E-commerce sepenuhnya fungsional
- ๐ Peningkatan dokumentasi dengan indikator status fitur
- ๐ฏ Manajemen ekspektasi pengguna yang lebih baik
v1.4.1
- ๐ง Perbaikan minor dan optimisasi kode
- โ Verifikasi lengkap semua fungsi telah diuji
- ๐ฆ Build yang lebih stabil dengan dependencies terbaru
v1.4.0
- ๐งน Menghapus semua fungsi telemetry untuk privasi maksimal
- ๐ Tidak ada pelacakan - node sepenuhnya bersih dari tracking
- โก Performa lebih baik tanpa overhead telemetry
- ๐ก๏ธ Privasi terjamin - tidak ada data yang dikirim ke server eksternal
v1.3.0
- โ Menambahkan panduan pemecahan masalah yang komprehensif
- ๐ง Solusi untuk kesalahan
INVALIDKEYdan masalah umum - ๐ Instruksi instalasi ulang untuk mengatasi masalah cache
- ๐ Tips debugging dan praktik terbaik manajemen kredensial
- ๐ Panduan lengkap untuk mendapatkan bantuan dan dukungan
v1.2.9
- ๐ง Perbaikan masalah kompatibilitas kredensial
- ๐ Peningkatan dokumentasi dan contoh penggunaan
- ๐ Bug fixes untuk stabilitas yang lebih baik
v1.0.0
- ๐ Rilis pertama dengan dukungan Bizapp API
- โ Operasi Get Product List dan Submit Order
- ๐ Sistem kredensial yang aman
- ๐ Dokumentasi lengkap dan contoh penggunaan