Skip to Content

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

MethodmethodAmount (rupiah)Payment stays open
QRIS: any bank or e-wallet app that scans QRISqris (the default)1,000 to 10,000,000up to 24 hours
Virtual account: Mandiri, BRI, BNI, BSI, CIMB, Permata, Maybank, Danamonva, with va_bank: mandiri, bri, bni, bsi, cimb, permata, maybank or danamon10,000 to 50,000,000up to 24 hours
Customer's choice: the customer picks QRIS or a bank on the payment pageany1,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) and net (what you receive).
  • You switch methods on or off per app in the dashboard (Metode bayar). GET /v1/methods lists 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.id

Test 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

  1. Create a payment. Your server calls POST /v1/payments with the amount and your own reference (your order id). You get back a checkout_url, and the QR string or the virtual account number.
  2. 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; with return_url set, the customer comes back to your site. You can also show the QR or the number in your own screens.
  3. We confirm the payment and tell you. Once we have confirmed it, the payment becomes paid and we send a payment.paid event, signed, to your app's webhook URL.
  4. You deliver. Check the signature, check the payment is paid (in the event, or with GET /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.