Graphrt

RajaOngkir

Indonesian shipping cost quotes (domestic, by district, international), destination search and waybill tracking

Beta v0.1.0 Node.js 11 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the current RajaOngkir API by Komerce (rajaongkir.komerce.id). The old api.rajaongkir.com Starter/Basic/Pro API was retired when RajaOngkir moved to Komerce, and its keys do not work here. The plugin quotes shipping costs of Indonesian couriers, searches destinations and tracks waybills. Every operation is a read, a workflow node and an agent tool.

What it can do

  • Destinations: search_domestic_destinations (city, district, village or postal code, paginated with limit/cursor), search_international_destinations (countries), and step by step list_provinces → list_cities → list_districts → list_subdistricts
  • Costs: calculate_domestic_cost (ids from the destination search), calculate_district_cost (district ids), calculate_international_cost, each returns one row per courier service: name, code, service, description, cost (IDR), etd
  • track_waybill: status, summary, delivery status and manifest history of a waybill (resi)
  • api_request: any other endpoint (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.

  • Search domestic destinations rajaongkir.search_domestic_destinations
  • Search international destinations rajaongkir.search_international_destinations
  • List provinces rajaongkir.list_provinces
  • List cities rajaongkir.list_cities
  • List districts rajaongkir.list_districts
  • List subdistricts rajaongkir.list_subdistricts
  • Domestic shipping cost rajaongkir.calculate_domestic_cost
  • Domestic cost by district rajaongkir.calculate_district_cost
  • International shipping cost rajaongkir.calculate_international_cost
  • Track a waybill rajaongkir.track_waybill
Show all 11 actions
  • RajaOngkir (Komerce) API request rajaongkir.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • RAJAONGKIR_API_KEY Required
    Shipping Cost API key, sent in the key header

How to use it

In Graphrt Desktop

  1. Open Plugins and search for RajaOngkir.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install rajaongkir
workflow.yaml
- id: track
  type: rajaongkir.track_waybill
  awb: "{{#start.resi#}}"
  courier: jne
  last_phone_number: "12345"
Plugins in the docs