Introduction
Take QRIS and virtual account payments in Indonesia with one API.
Piti by Layerbeat is a payment gateway for Indonesian businesses. With one API you create a payment, send your customer to a payment page we host, and get a signed webhook when it is paid. We pay the money out to your bank account.
Payment methods
| Method | method | Amount (rupiah) | Payment stays open |
|---|---|---|---|
| QRIS: any bank or e-wallet app that scans QRIS | qris (the default) | 1,000 to 10,000,000 | up to 24 hours |
| Virtual account: Mandiri, BRI, BNI, BSI, CIMB, Permata, Maybank, Danamon | va, with va_bank: mandiri, bri, bni, bsi, cimb, permata, maybank or danamon | 10,000 to 50,000,000 | up to 24 hours |
| Customer's choice: the customer picks QRIS or a bank on the payment page | any | 1,000 to 50,000,000 (each method keeps its own range) | up to 30 days |
- Amounts are whole rupiah: integers, currency
IDR. - Our fee is fixed when the payment is created. Each payment shows
amount,fee,total(what the customer pays) andnet(what you receive). - You switch methods on or off per app in the dashboard (Metode bayar).
GET /v1/methodslists what your key's app can take, with the fee for an amount.
Test and live
Every account can use test mode as soon as it signs up: no real money moves, and you can mark payments paid yourself. Live mode (real money) opens once your business verification is approved.
The API key decides the mode: lbp_test_... for test, lbp_live_... for live. There is one base URL for both:
https://pay.piti.idTest and live data are separate: a test key never sees live payments, and the reverse. See API keys & modes and Testing.
How the pieces fit
- Create a payment. Your server calls
POST /v1/paymentswith the amount and your ownreference(your order id). You get back acheckout_url, and the QR string or the virtual account number. - The customer pays. Send them to
checkout_url. The page shows the QR or the account number, renews the QR while the payment is open, and shows when it is paid; withreturn_urlset, the customer comes back to your site. You can also show the QR or the number in your own screens. - We confirm the payment and tell you. Once we have confirmed it, the payment becomes
paidand we send apayment.paidevent, signed, to your app's webhook URL. - You deliver. Check the signature, check the payment is
paid(in the event, or withGET /v1/payments/{id}), then fulfil the order.
A paid payment is never undone, only refunded.
Apps
An app is one integration: a website, a mobile app's backend, a point of sale. Each app has its own API keys and its own webhook URL, for test and for live. A key sees only its app's payments and events. Every account starts with one app; add more on the Developer page of the dashboard.
Read next
Quickstart
Sign up, create a test payment and receive its webhook.
API keys & modes
Test and live keys, apps, limits.
QRIS
Take a payment by QR code.
Virtual account
Take a bank transfer to a one-off account number.
Customer's choice
Let the customer pick the method on the payment page.
Payment page
The hosted page behind checkout_url.
Webhooks
Signed events for paid, expired and refunded payments.
Refunds
Give back all or part of a payment.
Balance & settlement
Your balance and payouts to your bank account.
Recurring invoices
Plans and subscriptions that invoice every period.
Moving from Xendit
Keep your Xendit invoice integration.
Moving from Duitku
Keep your Duitku integration.