- Home
- API reference
- Payment methods
- List payment methods
List payment methods
Lists methods with their fees, settlement times and availability. Live keys see live availability; test keys can test every method.
/v1/payment-methodsResponse (200)
Section titled “Response (200)”dataarray of objectrequiredThe returned object, or an array of objects for a list.
codestringrequiredThe code of the method, as you send it in payment_method.
Example: payment.va.bca
groupstringrequiredCategory used to group this method in the payment method list: qris, virtual_account, ewallet, retail or feature.
Example: virtual_account
Possible values: qris, virtual_account, ewallet, retail, feature
feeobject | nullrequiredWhat Baiyar charges you for the method. Null when a method has no fee of its own.
currencystringrequiredCurrency used for the flat fee amounts and fee tiers below.
Example: IDR
Pattern: ^[A-Z]{3}$
flat_amountinteger | nullrequiredThe fixed part of the fee, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 450000
percentnumber | nullrequiredPercentage added to the flat fee; 0.7 means 0.7%. Null means there is no percentage part.
Example: 0.7
tiersarray of objectrequiredFee rules by amount. The base fee applies until an amount is strictly above a tier's above_amount; then that tier's flat and percentage values apply.
above_amountintegerrequiredThe threshold an amount must exceed for this fee tier to apply, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 10000000
flat_amountinteger | nullrequiredThe fixed part of the fee in this step, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 0
percentnumber | nullrequiredPercentage added to this tier's flat fee; 0.7 means 0.7%.
Example: 0.7
settlement_daysinteger | nullrequiredExpected days after payment until funds reach your available balance. Null when no estimate is set.
Example: 1
statestringrequiredenabled, or not_eligible when your account cannot use it in live yet. A test key can try every method.
Example: enabled
Possible values: enabled, not_eligible
reasonsarray of stringrequiredIf state is not_eligible, these codes explain why the method is unavailable for this account. Empty means there is no eligibility issue.
switched_off_bystring | nullrequiredThe switch you turned off that closes this method (its own code or its family's); null when none.
Example: string
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/payment-methods" \ -H "Authorization: Bearer $BAIYAR_KEY"{ "data": [ { "code": "payment.va.bca", "group": "virtual_account", "fee": { "currency": "IDR", "flat_amount": 450000, "percent": 0.7, "tiers": [ { "above_amount": 10000000, "flat_amount": 0, "percent": 0.7 } ] }, "settlement_days": 1, "state": "enabled", "reasons": [ "SUSPENDED" ], "switched_off_by": "string" } ], "meta": { "request_id": "req_Hy3k9QzT2LmN8vXa" }}