Package Information
Downloads: 1 weeklyĀ /Ā 4 monthly
Latest Version: 1.0.1
Author: Boesstom
Available Nodes
Documentation
n8n-nodes-biteship

Custom node n8n untuk integrasi dengan Biteship API, platform pengiriman Indonesia.
Fitur
- Courier Management: Dapatkan daftar kurir yang tersedia
- Rate Checking: Cek tarif pengiriman untuk berbagai kurir
- Order Management: Buat dan kelola pesanan pengiriman
- Tracking: Lacak status pengiriman real-time
Instalasi
šÆ Install via Community Nodes (Recommended)
- Buka n8n di browser
- Masuk ke Settings ā Community Nodes
- Klik "Install a community node"
- Masukkan package name:
n8n-nodes-biteship - Klik "Install"
- Restart n8n jika diminta
š¦ Install via npm
# Global installation
npm install -g n8n-nodes-biteship
# Or dalam project n8n
npm install n8n-nodes-biteship
š³ Install via Docker
FROM n8nio/n8n:latest
USER root
RUN npm install -g n8n-nodes-biteship
USER node
š ļø Install dari Source
git clone https://github.com/Boesstom/Biteship-Custom-Node-n8n.git
cd Biteship-Custom-Node-n8n
npm install
npm run build
Prasyarat
- Node.js (v16 atau lebih tinggi)
- npm atau yarn
- n8n (v0.190.0 atau lebih tinggi)
Konfigurasi
- API Key: Dapatkan API key dari Biteship Dashboard
- Environment: Pilih antara Production atau Sandbox
- Credentials: Tambahkan credentials di n8n dengan informasi:
- API Key dari Biteship
- Environment (production/sandbox)
Penggunaan
1. Courier Operations
Get All Couriers
Dapatkan daftar semua kurir yang tersedia di Biteship.
Output:
{
"courier_code": "jne",
"courier_name": "JNE",
"courier_service_name": "REG",
"description": "Layanan Reguler",
"service_type": "standard",
"shipping_type": "parcel",
"shipment_duration_range": "1-2",
"shipment_duration_unit": "days"
}
2. Rate Operations
Check Rates
Cek tarif pengiriman untuk berbagai kurir.
Input Parameters:
- Origin Postal Code (required)
- Destination Postal Code (required)
- Couriers (multiselect)
- Items (collection)
Output:
{
"courier_code": "jne",
"courier_service_code": "REG",
"courier_service_name": "Layanan Reguler",
"price": 15000,
"type": "parcel"
}
3. Tracking Operations
Track Shipment
Lacak status pengiriman menggunakan waybill ID.
Input Parameters:
- Waybill ID (required)
- Courier Code (required)
Output:
{
"status": "delivered",
"waybill_id": "12345678901234567890",
"courier": {
"code": "jne",
"name": "JNE"
},
"history": [
{
"note": "Paket telah diterima",
"updated_at": "2023-12-01T10:00:00Z",
"status": "delivered"
}
]
}
Development
Setup Development Environment
# Clone repository
git clone https://github.com/biteship/n8n-nodes-biteship.git
cd n8n-nodes-biteship
# Install dependencies
npm install
# Build project
npm run build
# Run in development mode
npm run dev
Project Structure
āāā credentials/
ā āāā BiteshipApi.credentials.ts # API credentials
āāā nodes/
ā āāā Biteship/
ā āāā Biteship.node.ts # Main node implementation
ā āāā biteship.svg # Node icon
āāā package.json # Package configuration
āāā tsconfig.json # TypeScript configuration
āāā README.md # Documentation
Build Commands
npm run build # Build TypeScript and copy assets
npm run dev # Watch mode for development
npm run lint # Run ESLint
npm run format # Format code with Prettier
Testing
Manual Testing
- Import node ke n8n instance
- Buat workflow baru
- Tambahkan node Biteship
- Konfigurasi credentials
- Test berbagai operasi
Unit Testing
npm test
Troubleshooting
Common Issues
Authentication Error
- Pastikan API key valid
- Cek environment setting (production vs sandbox)
Rate Limit
- Biteship API memiliki rate limit
- Tambahkan delay antar request jika diperlukan
Invalid Postal Code
- Pastikan format kode pos benar (5 digit)
- Cek ketersediaan layanan di area tersebut
Contributing
- Fork repository
- Buat feature branch
- Commit changes
- Push ke branch
- Buat Pull Request
License
MIT License - lihat file LICENSE untuk detail.
Support
- Email: support@biteship.com
- Documentation: https://biteship.com/id/docs/intro
- GitHub Issues: https://github.com/biteship/n8n-nodes-biteship/issues
Changelog
v1.0.0
- Initial release
- Support untuk courier, rate, order, dan tracking operations
- Dokumentasi lengkap
- Error handling yang robust