- Home
- API reference
- Payments
- List payment attempts
List payment attempts
Lists the methods tried for a payment, oldest first, and the result of each attempt. Only the latest attempt can be paid.
/v1/payments/{id}/attemptspayments:read permission.Path parameters
Section titled “Path parameters”idstringrequiredThe id of the payment (pay_…).
Example: pay_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with pay_.
Response (200)
Section titled “Response (200)”dataarray of objectrequiredThe returned object, or an array of objects for a list.
idstringrequiredThe id of the attempt (att_…).
Example: att_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with att_.
attempt_nointegerrequired1 for the first method the payer tried, then 2, 3 and so on.
Example: 1
Minimum: 1
payment_methodstringrequiredMethod used by the payer: payment.qris, payment.va.<bank>, payment.ewallet.<wallet> or payment.retail.<outlet>. See List payment methods.
Example: payment.qris
Pattern: ^payment\.(qris|(va|ewallet|retail)\.[a-z0-9_]+)$
statusstringrequiredHow the attempt stands: created, requested, pending, paid, failed, expired or cancelled.
Example: pending
Possible values: created, requested, pending, paid, failed, expired, cancelled
currencystringrequiredThe currency, an ISO 4217 code. Only IDR today.
Example: IDR
Value: IDR
charged_amountintegerrequiredWhat the payer pays through this attempt, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 1000000
fee_amountintegerrequiredThe fee of this attempt, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 7000
net_amountintegerrequiredWhat you receive if this attempt is paid, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 993000
expires_atstringrequiredWhen 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
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
A failed request answers with the common error shape; see Errors.
curl "https://api.baiyar.com/v1/payments/{id}/attempts" \ -H "Authorization: Bearer $BAIYAR_KEY"{ "data": [ { "id": "att_01k7q3m8x2v5t9n4b6c1d0e7fa", "attempt_no": 1, "payment_method": "payment.qris", "status": "pending", "currency": "IDR", "charged_amount": 1000000, "fee_amount": 7000, "net_amount": 993000, "expires_at": "2026-10-26T03:04:05.000Z" } ], "meta": { "request_id": "req_Hy3k9QzT2LmN8vXa" }}