Payment methods

Every request goes to https://api.lemak.cash. About the reference.

List payment methods

GET /v1/payment_methods

Returns the payment methods you can use in the mode of the API key, each with the currencies it serves. A method is listed when an active payment channel can take it today. An order can still be refused for its amount, a daily limit or maintenance. A test key lists every method a production channel offers for the currency, so you can integrate a method before it is enabled.

Authentication

Bearer key. Your secret API key, which starts with sk_test_ or sk_live_. Send it as Authorization: Bearer <key>. A test key works as soon as your account exists. A production key returns 403 live_not_enabled until your account is activated.

Parameters

NameInTypeDescription
Api-Version optionalheaderstringThe API version for this request, as a date in YYYY-MM-DD format. When omitted, your account's version applies, which is set to the latest version on your first request. An unknown version returns 400 invalid_api_version. Pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
currency optionalquerystringList only the methods that serve this currency. Pattern ^[A-Z]{3,5}$.

Responses

200

Every payment method you can use. The list is never paged.

application/json

PaymentMethodList

FieldTypeDescription
object requiredlist
has_more requiredbooleanAlways false.
data requiredarray of PaymentMethod
Fields of data
FieldTypeDescription
object requiredpayment_method
code requiredstringThe code you send as payment_method.
names requiredobjectThe name of the method by language tag, such as en, zh-Hant or zh-Hans. en is always present. A map of string keys to string values.
kind requiredstringThe kind of method, such as qr, wallet, bank, card or crypto.
icon_url optionalstringAn icon for the method, when one is set.
currencies requiredarray of stringThe currencies the method serves, in alphabetical order.
transaction_limits requiredobjectThe charge rules of the method, per currency it serves. A map of string keys to values.

Errors

Every error answers with the error object.

StatusWhen
OtherAn error. The status tells you the kind: 400 invalid request, 401 invalid API key, 402 payment could not be placed, 403 forbidden, 404 not found, 409 conflict, 413 body over 64 KiB, 422 idempotency key reused, 429 too many requests, 5xx server error. A test mode key takes at most 5 requests a second.

Example

curl https://api.lemak.cash/v1/payment_methods \
  -H "Authorization: Bearer sk_test_..." \
  -H "Api-Version: 2026-12-01"