Sorai's method catalogue intersected with the store's enablement,
the currency's constraints and the currencies this shop sells in. The
Indonesian rails settle only in IDR, so they are
absent for any other currency, and a currency the shop does not sell in
returns an empty list rather than a card rail: Sorai never converts
between currencies. expiry_seconds is how long the buyer will have to
complete that rail once a session exists.
publishableKeyX-Sorai-Key<token>A store's publishable key, spk_….
id*stringStore id. Must match a store-scoped key.
uuidcurrency?stringISO 4217. Defaults to the store's currency.
3 <= length <= 3country?stringWhere the buyer is, as an ISO 3166-1 alpha-2 code. Only methods that can be paid from there are listed. Defaults to the shop's own country.
2 <= length <= 2amount_minor?integerThe order's total before tax, in minor units. When given, each method carries the service fee the buyer would pay on it and the resulting total.
int640 <= valueThe available methods, in display order.
application/jsonpayment_methods*array<>currency_supported*booleanWhether this shop can be paid in this currency at all. False means no payment method could ever apply and the price has to be listed in a currency the shop sells in; true with an empty list means the shop has switched every method off, which is a different thing to tell a buyer.
country*stringThe country this list was built for. Empty when neither the request nor the shop names one, in which case no method is left out for its country.
curl -X GET 'https://api.sorai.ai/v1/public/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/payment-methods'{ "payment_methods": [ { "method": "string", "label": "string", "display_name": "string", "group": "qris", "region": "string", "brand": "string", "logo_url": "string", "instrument": "qr", "bank": "string", "currencies": [ "str" ], "countries": [ "st" ], "expiry_seconds": 0, "status": "active", "status_message": "string", "amount_limits": { "min_minor": 0, "max_minor": 0 }, "buyer_fee_minor": 0, "total_minor": 0 } ], "currency_supported": true, "country": "string"}