Shipper
Locations, domestic rates, orders with tracking and labels, creating and cancelling orders and pickups node only
Beta v0.1.0 Node.js 15 actions
About
A Graphrt plugin for the Shipper.id logistics API v3 (reference). It searches locations, compares domestic courier rates, creates orders, requests pickups, prints labels and tracks orders. Reads, rates and labels are agent tools, creating and cancelling orders and requesting pickups are workflow nodes only.
What it can do
- Locations: search_locations (by name, any level) and step by step list_countries → list_provinces → list_cities → list_suburbs → list_areas (paginated with limit/cursor, Indonesia is country 228)
- get_domestic_rates: prices per courier and service (rate.id is what create_order needs) for a parcel with optional item_categories (from Shipper's list: Cairan, Dokumen, Elektronik, Furnitur, Kosmetik, Makanan, Minuman, Pakaian, Sepatu, Spare Parts, Aksesoris, Dekorasi Rumah, Mainan, Obat dan Herbal, Garmen dan Tekstil, Buku, Lainnya, matched case-insensitively), filter by rate type, cod_amount quotes cash-on-delivery couriers
- Orders: create_order (node only), get_order and get_order_by_external_id (with awb_number, shipment_status and the tracking history), cancel_order (node only)
- request_pickup (node only): activate orders for pickup, a courier is dispatched
- create_label: label (LBL) or receipt (RCP) document for orders
- api_request: any other endpoint, e.g. /v3/vehicle/city/{city_id} (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 locations
shipper.search_locations - List countries
shipper.list_countries - List provinces
shipper.list_provinces - List cities
shipper.list_cities - List suburbs
shipper.list_suburbs - List areas
shipper.list_areas - Domestic rates
shipper.get_domestic_rates - Create order
shipper.create_order - Get order (with tracking)
shipper.get_order - Get order by external id
shipper.get_order_by_external_id
Show all 14 actions
- Cancel order
shipper.cancel_order - Request pickup
shipper.request_pickup - Shipping label
shipper.create_label - Shipper API v3 request
shipper.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
SHIPPER_API_KEYRequiredAPI key, sent in the X-API-Key header -
SHIPPER_ENVIRONMENTOptionalproduction (default, merchant-api.shipper.id) or sandbox (merchant-api-sandbox.shipper.id)
How to use it
In Graphrt Desktop
- Open Plugins and search for Shipper.
- 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 shipper workflow.yaml
- id: rates
type: shipper.get_domestic_rates
origin: { area_id: 4711, lat: "-6.2", lng: "106.8", suburb_id: 482 }
destination: { area_id: 12345, lat: "-6.9", lng: "107.6", suburb_id: 1030 }
weight: 1
package_length: 10
package_width: 10
package_height: 5
item_value: 150000
item_categories: [Pakaian]
rate_types: [regular]
- id: order
type: shipper.create_order
consignee: { name: Budi, phone_number: "6281200000002", email: budi@example.com }
consigner: { name: Toko A, phone_number: "6281200000001", email: toko@example.com }
courier: { rate_id: "{{#rates.data.pricings.0.rate.id#}}", use_insurance: false, cod: false }
origin: { area_id: 4711, address: Jl. Sudirman 1, lat: "-6.2", lng: "106.8" }
destination: { area_id: 12345, address: Jl. Asia Afrika 2, lat: "-6.9", lng: "107.6" }
package: { weight: 1, length: 10, width: 10, height: 5, price: 150000, package_type: 2, items: [{ name: Kemeja, price: 150000, qty: 1 }] }
external_id: "INV-{{#start.order_id#}}"