Biteship
Courier rates, couriers, area search, order tracking and public waybill tracking, booking and cancelling orders node only
Beta v0.1.0 Node.js 10 actions
About
A Graphrt plugin for Biteship, an Indonesian shipping aggregator (JNE, J&T, SiCepat, AnterAja, Ninja, Gojek, Grab, Lalamove, ...). It compares courier rates, finds area ids, books couriers (orders), cancels them and tracks shipments. Reads and rate checks are agent tools, booking and cancelling are workflow nodes only.
What it can do
- 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)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- 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
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
BITESHIP_API_KEYRequiredAPI key, sent as the Authorization header
How to use it
In Graphrt Desktop
- Open Plugins and search for Biteship.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the 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 }