Graphrt

Xendit

Invoices (hosted payment pages, agent use capped by amount and currency), payment requests v3, balance, transactions, refunds, payouts and invoice expiry node only

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

About

A Graphrt plugin for the Xendit API (Indonesia, Philippines and South-East Asia): invoices (hosted payment pages), payment requests (Payments API v3), balance, transactions, refunds and payouts (v3). It is built with the declarative REST layer (definition.mjs) plus small agent-safety wrappers in lib/.

What it can do

  • Invoices: create_invoice (returns invoice_url), get_invoice, list_invoices, expire_invoice (node only)
  • Payment requests (v3, api-version: 2024-11-11): create_payment_request (node only), get_payment_request
  • Balance and ledger: get_balance, list_transactions
  • Refunds: create_refund (node only), get_refund
  • Payouts (v3, api-version: 2025-09-01): create_payout, get_payout (both node only)
  • api_request: any other endpoint (agents: GET and allowlisted paths only)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Create invoice xendit.create_invoice
  • Get invoice xendit.get_invoice
  • List invoices xendit.list_invoices
  • Expire invoice xendit.expire_invoice
  • Create payment request xendit.create_payment_request
  • Get payment request xendit.get_payment_request
  • Get balance xendit.get_balance
  • List transactions xendit.list_transactions
  • Create refund xendit.create_refund
  • Get refund xendit.get_refund
Show all 13 actions
  • Create payout xendit.create_payout
  • Get payout xendit.get_payout
  • Xendit API request xendit.api_request

Settings

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

  • XENDIT_SECRET_KEY Required
    Secret API key, sent as the Basic auth user with an empty password
  • XENDIT_TOOL_ALLOW_INVOICES Optional
    1 lets agent tools create invoices, within the cap below
  • XENDIT_TOOL_MAX_AMOUNT For agent invoices
    Maximum amount per agent-created invoice, in the currency's major unit (e.g. 500000 = Rp500.000). Unset or 0 refuses every one
  • XENDIT_TOOL_ALLOWED_CURRENCIES For agent invoices
    Comma-separated currencies agents may use, e.g. IDR. Unset refuses every agent invoice
  • XENDIT_TOOL_API_EXTRA_PATHS Optional
    More GET paths agents may reach with api_request, comma-separated, * = one segment

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Xendit.
  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 xendit
workflow.yaml
- id: invoice
  type: xendit.create_invoice
  external_id: "ORDER-{{#start.order_id#}}"
  amount: 250000
  description: Kopi 1kg
  payment_methods: [QRIS, BCA, OVO]
  invoice_duration: 86400
- id: link
  type: answer
  answer: "Pay here: {{#invoice.data.invoice_url#}}"
Plugins in the docs