Skip to content

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.


GET/v1/payments/{id}/attempts
Requires payments:read permission.
idstringrequired

The id of the payment (pay_…).

Example: pay_01k7q3m8x2v5t9n4b6c1d0e7fa

Prefixed with pay_.

dataarray of objectrequired

The returned object, or an array of objects for a list.

idstringrequired

The id of the attempt (att_…).

Example: att_01k7q3m8x2v5t9n4b6c1d0e7fa

Prefixed with att_.

attempt_nointegerrequired

1 for the first method the payer tried, then 2, 3 and so on.

Example: 1

Minimum: 1

payment_methodstringrequired

Method 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_]+)$

statusstringrequired

How the attempt stands: created, requested, pending, paid, failed, expired or cancelled.

Example: pending

Possible values: created, requested, pending, paid, failed, expired, cancelled

currencystringrequired

The currency, an ISO 4217 code. Only IDR today.

Example: IDR

Value: IDR

charged_amountintegerrequired

What the payer pays through this attempt, in the smallest unit of currency (Rp125.000 is 12500000).

Example: 1000000

fee_amountintegerrequired

The fee of this attempt, in the smallest unit of currency (Rp125.000 is 12500000).

Example: 7000

net_amountintegerrequired

What you receive if this attempt is paid, in the smallest unit of currency (Rp125.000 is 12500000).

Example: 993000

expires_atstringrequired

When 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

metaobjectrequired

Request details such as its id and pagination cursor.

request_idstringrequired

The 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"