- Home
- API reference
- Payments
- List payments
List payments
Lists the payments visible to this API key, newest first.
/v1/paymentspayments:read permission.Query parameters
Section titled “Query parameters”starting_afterstringoptionalThe id of the last item on the page you have. The next page starts after it.
Example: pay_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with pay_.
limitintegeroptionalHow many items one page holds, from 1 to 100. The default is 20.
Example: 20
Minimum: 1
Maximum: 100
statusstringoptionalOnly payments in this status: created, pending, paid, failed or expired.
Example: paid
Possible values: created, pending, paid, failed, expired
project_idstringoptionalOnly the payments of this project.
Example: prj_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with prj_.
merchant_referencestringoptionalOnly the payment with exactly this reference of yours.
Example: order-1001
Min length: 1
Max length: 100
payment_methodstringoptionalOnly payments made with this method.
Example: payment.qris
Pattern: ^payment\.(qris|(va|ewallet|retail)\.[a-z0-9_]+)$
payment_link_idstringoptionalOnly the payments made through this payment link.
Example: lnk_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with lnk_.
qstringoptionalFind a payment by its full payment id or by the beginning of your merchant_reference.
Example: order-10
Min length: 1
Max length: 100
fromstringoptionalOnly payments created on or after this day, YYYY-MM-DD in Jakarta time.
Example: 2026-10-01
Pattern: ^\d{4}-\d{2}-\d{2}$
tostringoptionalOnly payments created on or before this day, YYYY-MM-DD in Jakarta time.
Example: 2026-10-26
Pattern: ^\d{4}-\d{2}-\d{2}$
Response (200)
Section titled “Response (200)”Returns a page of a list: data holds the items, and meta.pagination says how the list goes on. Page with limit and starting_after (the id of the last item you have), or fetch meta.pagination.next.
dataarray of objectrequiredThe returned object, or an array of objects for a list.
idstringrequiredThe id of the payment (pay_…).
Example: pay_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with pay_.
livemodebooleanrequiredtrue means this object belongs to live and can involve real payments; false means it belongs to the sandbox.
statusstringrequiredcreated (no method chosen yet), pending (waiting for the payer), paid, failed or expired.
Example: pending
Possible values: created, pending, paid, failed, expired
project_idstringrequiredThe project this object belongs to. Its settings determine which payment methods and limits apply.
Example: prj_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with prj_.
payment_link_idstring | nullrequiredThe payment link it was made through; null when it was not.
Example: lnk_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with lnk_.
amountintegerrequiredBase payment amount before fees, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 12500000
currencystringrequiredThe currency, an ISO 4217 code. Only IDR today.
Example: IDR
Value: IDR
payment_methodstring | nullrequiredMethod used by the payer: payment.qris, payment.va.<bank>, payment.ewallet.<wallet> or payment.retail.<outlet>. See List payment methods.
Example: payment.qris
feeobject | nullrequiredBaiyar's fee, fixed when the payer sees the amount. Null until a payment method is chosen.
amountintegerrequiredThe fee, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 7000
bearerstringrequiredWho bears the fee: merchant or customer.
Example: merchant
Possible values: merchant, customer
charged_amountinteger | nullrequiredTotal charged to the payer, including the fee when the payer bears it, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 1000000
net_amountinteger | nullrequiredThe amount credited after the Baiyar fee, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 993000
merchant_referencestring | nullrequiredYour own reference for the payment, such as an order number, up to 100 characters. Use it to find the payment again.
Example: order-1001
descriptionstring | nullrequiredA note about the payment that the payer sees, up to 500 characters.
Example: Pesanan kopi 1001
instructionobject | nullrequiredThe QR code, account number or other details the payer needs to complete the payment. Null when no instructions are needed.
typestringrequiredva, qr, ewallet_link, ewallet_push or retail_code. It decides which of the other fields are present.
Possible values: va, qr, ewallet_link, ewallet_push, retail_code
bank_codestringrequiredThe bank of the virtual account, for example bca.
Example: bca
When type is va.
account_numberstringrequiredThe virtual account number the payer transfers to.
Example: 8277012345678901
When type is va.
expires_atstringrequiredWhen the instruction stops working (RFC 3339, UTC).
Example: 2026-10-26T03:04:05.000Z
Format: date-time
qr_contentstringrequiredThe QRIS content: draw it as a QR code for the payer to scan.
Example: 00020101021226670016COM.BAIYAR.WWW01189360091400000001230210000000000303UMI51440014ID.CO.QRIS.WWW0215ID10200000000010303UMI5204581253033605802ID5906Toko6007Jakarta6304ABCD
When type is qr.
payment_urlstringrequiredWhere to send the payer to approve the payment in their wallet.
Example: https://pay.example.com/wallet/abc123
When type is ewallet_link.
wallet_codestringrequiredThe wallet that asks the payer to approve in its own app, for example ovo.
Example: ovo
When type is ewallet_push.
phone_last4string | nullrequiredThe last four digits of the phone number used for the wallet approval request.
Example: 6789
When type is ewallet_push.
payment_codestringrequiredThe code the payer gives at the outlet.
Example: ALFA123456
When type is retail_code.
expires_atstring | nullrequiredWhen this object expires (RFC 3339, UTC). For a payment, it is the payer's deadline; for a link, it is when the link stops accepting payments.
Example: 2026-10-26T03:04:05.000Z
Format: date-time
paid_atstring | nullrequiredWhen the payment was confirmed as paid (RFC 3339, UTC); null until then.
Example: 2026-10-26T03:04:05.000Z
Format: date-time
settlement_statusstringrequirednot_applicable (not paid), awaiting (paid, settlement not matched yet) or settled (matched and moved to available balance).
Example: awaiting
Possible values: not_applicable, awaiting, settled
reversalobject | nullrequiredDetails of a paid amount reversed by the provider or Baiyar operations; null when there is no reversal.
amountintegerrequiredThe amount removed from the balance by the reversal, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 993000
reversed_atstringrequiredWhen the reversal was recorded (RFC 3339, UTC).
Example: 2026-10-26T03:04:05.000Z
Format: date-time
metadataobjectrequiredUp to 20 pairs of your own (names up to 40 characters, values up to 500) that come back with the payment and in its events.
Values: string
Max keys: 20
created_atstringrequiredWhen this object was created (RFC 3339, UTC). Use it to sort objects by creation time.
Example: 2026-10-26T03:04:05.000Z
Format: date-time
metaobjectrequiredRequest details such as its id and pagination cursor.
request_idstringrequiredThe id of this request. Quote it when you ask support about it.
Example: req_Hy3k9QzT2LmN8vXa
paginationobjectrequiredPagination details for a list response. Use next to fetch the next page, or starting_after to build the URL yourself.
per_pageintegerrequiredNumber of items returned on this page.
Example: 20
has_morebooleanrequiredtrue means more items are available on another page.
nextstring | nullrequiredThe address of the next page, with your filters kept; null on the last page.
Example: string
A failed request answers with the common error shape; see Errors.
curl "https://api.baiyar.com/v1/payments" \ -H "Authorization: Bearer $BAIYAR_KEY"{ "data": [ { "id": "pay_01k7q3m8x2v5t9n4b6c1d0e7fa", "livemode": false, "status": "pending", "project_id": "prj_01k7q3m8x2v5t9n4b6c1d0e7fa", "payment_link_id": "lnk_01k7q3m8x2v5t9n4b6c1d0e7fa", "amount": 12500000, "currency": "IDR", "payment_method": "payment.qris", "fee": { "amount": 7000, "bearer": "merchant" }, "charged_amount": 1000000, "net_amount": 993000, "merchant_reference": "order-1001", "description": "Pesanan kopi 1001", "instruction": { "type": "qr", "bank_code": "bca", "account_number": "8277012345678901", "expires_at": "2026-10-26T03:04:05.000Z" }, "expires_at": "2026-10-26T03:04:05.000Z", "paid_at": "2026-10-26T03:04:05.000Z", "settlement_status": "awaiting", "reversal": { "amount": 993000, "reversed_at": "2026-10-26T03:04:05.000Z" }, "metadata": { "order_id": "1001" }, "created_at": "2026-10-26T03:04:05.000Z" } ], "meta": { "request_id": "req_Hy3k9QzT2LmN8vXa", "pagination": { "per_page": 20, "has_more": true, "next": "https://api.baiyar.com/v1/payments?starting_after=pay_01k7q3m8x2v5t9n4b6c1d0e7fa" } }}