JSPM

n8n-nodes-sahabat-xpert

1.5.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q45677F
  • License MIT

n8n community node for Sahabat Xpert - Multi-platform business automation with Bizapp integration

Package Exports

  • n8n-nodes-sahabat-xpert
  • n8n-nodes-sahabat-xpert/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n8n-nodes-sahabat-xpert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

  1. Go to Settings > Community Nodes in your n8n instance
  2. Click Install a community node
  3. Enter: n8n-nodes-sahabat-xpert
  4. 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

  1. Create new credentials of type Sahabat Xpert Credentials

  2. 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
  3. 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

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. 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):

  1. Check Credential Configuration:

    Service Type: Bizapp E-commerce
    Bizapp Secret Key: your-secret-key-here
  2. Verify Secret Key Format:

    • Enter your secret key without the - prefix
    • The system will automatically add - if needed
    • Example: If your key is abc123, enter abc123 (not -abc123)

For Payment Gateway:

  1. Verify API Key and Secret are correct
  2. Check if payment gateway service is active
  3. Ensure proper currency and amount formats

For Shipping API:

  1. Validate shipping API token
  2. Check carrier service availability
  3. Verify address format requirements

For CRM System:

  1. Confirm CRM access token is valid
  2. Check CRM base URL configuration
  3. Verify contact data format requirements

General Solutions: 3. Test Credentials:

  • Click "Test" button in credential settings
  • Ensure you get a successful response
  1. 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

  1. Always test credentials after setup for each service type
  2. Monitor n8n logs for detailed error messages
  3. Keep all API keys and tokens secure - never share them
  4. Update to latest version regularly
  5. 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:

  1. Check n8n logs:

    # Docker
    docker logs n8n-container-name
    
    # PM2
    pm2 logs n8n
    
    # Direct installation
    Check ~/.n8n/logs/
  2. Test API directly:

    curl "https://woo.bizapp.my/v2/getproductlist/-YOUR-SECRET-KEY"
  3. 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 INVALIDKEY dan 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