Graphrt

Biteship

Ongkir kurir, daftar kurir, pencarian area, lacak pesanan dan lacak resi publik. Booking dan pembatalan pesanan hanya lewat node

Beta v0.1.0 Node.js 10 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk Biteship, agregator pengiriman Indonesia (JNE, J&T, SiCepat, AnterAja, Ninja, Gojek, Grab, Lalamove dan lainnya). Plugin ini membandingkan ongkir kurir, mencari id area, memesan kurir (order), membatalkannya dan melacak kiriman. Baca data dan cek ongkir tersedia sebagai tool agent, sedangkan booking dan pembatalan hanya lewat node workflow.

Yang bisa dilakukan

  • get_rates: prices and ETAs from the couriers you list, between two places given as area ids, postal codes or coordinates (instant couriers need coordinates), with insurance and COD options
  • list_couriers: couriers and services enabled for the account
  • search_areas: area ids by name or postal code
  • create_order (node only): book a courier for a shipment, the fee is charged to your Biteship balance
  • get_order, cancel_order (node only), list_cancellation_reasons
  • get_tracking: tracking of an order booked through Biteship (courier.tracking_id)
  • track_waybill: public tracking of any waybill (resi) by courier code, also for shipments booked elsewhere
  • api_request: any other endpoint, e.g. /v1/locations (GET only for agents)

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • Courier rates biteship.get_rates
  • List couriers biteship.list_couriers
  • Search areas biteship.search_areas
  • Create order (book a courier) biteship.create_order
  • Get order biteship.get_order
  • Cancel order biteship.cancel_order
  • Cancellation reasons biteship.list_cancellation_reasons
  • Track an order biteship.get_tracking
  • Track a waybill biteship.track_waybill
  • Biteship API request biteship.api_request

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • BITESHIP_API_KEY Wajib
    API key, sent as the Authorization header

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari Biteship.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install biteship
workflow.yaml
- id: rates
  type: biteship.get_rates
  origin_postal_code: 12440
  destination_postal_code: 40111
  couriers: jne,sicepat,jnt,anteraja
  items:
    - { name: Kemeja, value: 150000, quantity: 1, weight: 300 }
- id: book
  type: biteship.create_order
  origin_contact_name: Toko A
  origin_contact_phone: "08120000001"
  origin_address: Jl. Sudirman 1, Jakarta
  origin_postal_code: 12440
  destination_contact_name: Budi
  destination_contact_phone: "08120000002"
  destination_address: Jl. Asia Afrika 2, Bandung
  destination_postal_code: 40111
  courier_company: "{{#rates.data.0.courier_code#}}"
  courier_type: "{{#rates.data.0.courier_service_code#}}"
  delivery_type: now
  reference_id: "INV-{{#start.order_id#}}"
  items:
    - { name: Kemeja, value: 150000, quantity: 1, weight: 300 }
Plugin di docs