Internal API Gateway Dashboard
Pintu middleware terpusat untuk Orderia Logistics API, WhatsApp Gateway, dan aplikasi client.
Database MySQL Memerlukan Konfigurasi / Inisialisasi
Status koneksi: 127.0.0.1 / apidbbion
Grafik Volume Traffic Gateway (7 Hari)
Statistik request masuk dan rate error.
Integrasi Layanan
Perhitungan ongkir multi-kurir & booking resi otomatis dengan auto-injected partner credentials.
Pengiriman notifikasi otomatis nomor resi & update order via WA Gateway.
Aktivitas Request Terakhir
Feed 10 request gateway terbaru secara live.
Shopee Open Platform v2 Gateway
PHASE 1-6 ACTIVEMulti-Shop OAuth2, Live Order Sync Engine, Fulfillment, Tracking, Catalog & SKU Mapping.
Daftar Toko Shopee Terhubung
Kelola otorisasi OAuth2 dan token refresh otomatis per toko.
| Shop Name / ID | Region / Env | Status Otorisasi | Access Token Expiry | Health Check | Aksi |
|---|---|---|---|---|---|
| Memuat toko Shopee... | |||||
Order Sinkronisasi & Fulfillment Shopee
Pesanan marketplace yang disinkronkan secara inkremental ke OMS BION.
| Order SN | Pembeli | Total Amount | Status Normalized | Kurir & Resi | Fulfillment |
|---|---|---|---|---|---|
| Memuat data order... | |||||
Katalog Produk & Mapping SKU OMS
Pemetaan produk Shopee (Item ID / Model ID) dengan master SKU internal BION.
| Shopee Item & Model | Marketplace SKU | Internal SKU (OMS) | Stok & Harga | Status Mapping | Aksi |
|---|---|---|---|---|---|
| Memuat katalog produk... | |||||
Central Inventory Engine (BION Source of Truth)
PHASE 7 ENGINEDouble-entry ledger mutasi stok, row locking, reservasi order idempotent, dan alokasi multi-channel.
Saldo Stok Internal Real-Time
Formula: Available = On Hand - Reserved - Safety Reserve
| Master SKU / Variant | Produk | Lokasi Gudang | Fisik (On Hand) | Reserved | Available Stock | Status |
|---|---|---|---|---|---|---|
| Memuat saldo inventory... | ||||||
Audit Log Mutasi Stok (Double-Entry Ledger)
Setiap perubahan stok tercatat abadi dengan type dan reference ID.
| Waktu | Tipe Mutasi | Jumlah (Qty) | Gudang | Reference ID / Source | Catatan |
|---|---|---|---|---|---|
| Memuat buku besar mutasi... | |||||
Daftar Reservasi Stok Pesanan Aktif
Stok yang dikunci sementara menunggu konfirmasi pengiriman / resi kurir.
| Reservation ID | Order Ref / Provider | Jumlah Dikunci | Status | Waktu Dibuat |
|---|---|---|---|---|
| Memuat data reservasi... | ||||
Proyeksi Stok Marketplace (Desired vs Confirmed)
Membandingkan stok yang diinginkan (Desired) vs stok live di Shopee.
| Channel / Shop | Internal SKU | Internal Available | Buffer | Desired Stock | Shopee Stock | Status Sync |
|---|---|---|---|---|---|---|
| Memuat proyeksi marketplace... | ||||||
Manajemen API Key
Kelola API Key Bion (contoh: BSTXXXX) untuk WooCommerce, Web Store, atau integrasi aplikasi pihak ketiga.
| Nama Key / Client | Bion API Key | Layanan Diizinkan | Rate Limit & Usage | Status | Aksi |
|---|---|---|---|---|---|
| Memuat API Keys... | |||||
Lincah Logistics & Shipping API
Konfigurasi kredensial Partner ID & Bearer Token OpenAPI Lincah.
partner-id.
Lincah Webhook Receiver
Penerima notifikasi status pengiriman & pickup real-time.
order.pickup→ Paket dijemput kurirorder.status→ Update resi (onDelivery, delivered, onReturn)order.updated→ Perubahan data pesanan
Shopee Open Platform v2 Gateway
Konfigurasi Partner ID, Partner Key, OAuth2 Redirect URL, dan Environment.
Shopee Webhook Inbound
Push notification order status & return dari Shopee.
order_status_update→ Status pesanan berubahtracking_no→ Update resi otomatis kuriritem_promotion→ Perubahan promosi produk
API Gateway Playground
Uji coba endpoint API Bion Gateway secara langsung dengan simulasi request & respons real-time.
"34.04.07" untuk Depok Sleman, "31.71.01" untuk Gambir). Anda bisa mencarinya langsung via endpoint /v1/lincah/district/search?q=sleman atau mengunduh master file Excel di atas.
// Klik "Kirim Request ke Gateway" untuk melihat hasil response
Request Log Explorer
Audit log lengkap semua request yang masuk ke API Bion Gateway secara real-time.
| Waktu (WIB) | Method | Endpoint | Service | API Key | Status / Time | Detail |
|---|---|---|---|---|---|---|
| Memuat log audit... | ||||||
Contoh Kode Integrasi
Snippet siap pakai untuk menghubungkan aplikasi Anda ke API Bion Gateway.
Panduan Deployment di ServerAvatar & VPS
Langkah mudah deploy API Bion PHP ke ServerAvatar dengan web server Apache / Nginx dan MySQL.
1. Buka dashboard ServerAvatar → Pilih Server Anda.
2. Klik Create Application → Pilih Custom PHP (PHP 8.1 / 8.2 / 8.3).
3. Set Webroot ke /public atau biarkan root jika menggunakan file .htaccess yang sudah disediakan.
1. Pada menu aplikasi ServerAvatar → Buka Databases → Klik Create Database.
2. Buat database misal bion_db beserta user & password MySQL.
Copy .env.example menjadi .env di root folder aplikasi dan isikan kredensial database Anda:
DB_HOST="127.0.0.1" DB_PORT="3306" DB_NAME="bion_db" DB_USER="bion_user" DB_PASSWORD="password_anda" LINCAH_PARTNER_ID="your_lincah_partner_id" LINCAH_API_TOKEN="your_lincah_api_token" LINCAH_IS_SANDBOX="false"
Cukup buka domain Anda di browser. Jika tabel belum diisi, klik tombol "Inisialisasi Database" yang muncul di banner atas dashboard, dan seluruh tabel + API Key default akan langsung siap digunakan!
Dokumentasi API Gateway & Integrasi
Panduan lengkap, endpoint schema, kode integrasi PHP / WooCommerce, dan pengujian langsung.
Sertakan header X-API-Key pada setiap request ke endpoint /v1/*:
X-API-Key: bion_live_...
Client Anda tidak perlu mengetahui Partner ID Orderia. BION Gateway secara otomatis menyuntikkan kredensial di sisi server PHP.
Hitung estimasi ongkos kirim multi-kurir (JNE, SiCepat, J&T, Lion, POS, Anteraja, Wahana, dsb).
{
"code": 200,
"status": "success",
"data": [
{
"logistic": "JNE",
"service": "REG",
"service_name": "Reguler Service",
"tariff": 22000,
"estimated_days": "1-2",
"is_cod_available": true
},
{
"logistic": "SICEPAT",
"service": "SIUNT",
"service_name": "SiUntung",
"tariff": 20000,
"estimated_days": "1-2",
"is_cod_available": true
}
]
}
Booking order pengiriman, generate nomor resi (AWB), dan jadwalkan pickup.
{
"code": 200,
"status": "success",
"data": {
"order_id": "ORD-20260824-88912",
"reference_id": "ORDER-WOO-100234",
"waybill_no": "JNE01928374619",
"logistic": "JNE",
"service": "REG",
"shipping_cost": 22000,
"status": "waiting_pickup"
}
}
Lacak status dan perjalanan paket real-time berdasarkan nomor resi pengiriman.
Cetak label thermal (100x150mm) atau A4 dalam format PDF.
// Payload:
{
"order_ids": ["ORD-88912"],
"format": "thermal"
}
// Response:
{
"code": 200,
"pdf_url": "https://assets.orderia.id/labels/print_88912.pdf"
}
Pencarian kecamatan untuk input autosearch alamat pengiriman.
// Request: GET /v1/orderia/district/search?q=sleman
{
"code": 200,
"data": [
{ "code": "34.04.07", "district_name": "Depok", "city_name": "Kab. Sleman" }
]
}
Terima update status resi otomatis dan teruskan ke toko online Anda via WEBHOOK_FORWARD_URL di .env.
Kirim pesan WhatsApp otomatis (notifikasi resi ke pelanggan).
Official PHP SDK Helper (src/BionClient.php)
Class PHP siap pakai tanpa dependency Composer untuk native PHP, Laravel, atau CodeIgniter.
Integrasi WordPress & WooCommerce (functions.php)
Tempelkan snippet ini ke theme child atau custom plugin toko online Anda.