Xendit
Invoice (halaman pembayaran, pemakaian oleh agent dibatasi nominal dan mata uang), payment request v3, saldo, transaksi. Refund, payout dan expire invoice hanya lewat node
Beta v0.1.0 Node.js 13 aksi
Tentang
Plugin Graphrt untuk Xendit API (Indonesia, Filipina dan Asia Tenggara). Mencakup invoice (halaman pembayaran), payment request (Payments API v3), saldo, transaksi, refund dan payout (v3). Dibuat dengan lapisan REST deklaratif (definition.mjs) ditambah wrapper kecil untuk keamanan agent di lib/.
Yang bisa dilakukan
- 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)
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- 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
Tampilkan semua 13 aksi
- Create payout
xendit.create_payout - Get payout
xendit.get_payout - Xendit API request
xendit.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
XENDIT_SECRET_KEYWajibSecret API key, sent as the Basic auth user with an empty password -
XENDIT_TOOL_ALLOW_INVOICESOpsional1 lets agent tools create invoices, within the cap below -
XENDIT_TOOL_MAX_AMOUNTFor agent invoicesMaximum 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_CURRENCIESFor agent invoicesComma-separated currencies agents may use, e.g. IDR. Unset refuses every agent invoice -
XENDIT_TOOL_API_EXTRA_PATHSOpsionalMore GET paths agents may reach with api_request, comma-separated, * = one segment
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Xendit.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan 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#}}"