List the currencies payments can be priced in, with their minimums
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/price-currencies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/price-currencies';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.feitpay.com/v1/price-currencies \ --header 'Authorization: Bearer <token>'Every fiat currency a payment intent, checkout session, payment link or invoice can be priced in (currency), with its ISO 4217 decimals and, for live payments, the smallest amount accepted right now. EUR, BRL, USD and GBP (popular) have fixed minimums; every other currency’s minimum is the EUR one converted at the current exchange rate and rounded up to a clean amount, so it moves with the rate. A currency without a current exchange rate is listed with available: false (unavailable_reason: rate_unavailable) and new live payments in it are refused with 403 currency_unavailable until the rate is back. minimum_amount is what the API enforces when a payment is created; some coins ask for more (standard_minimum_amount, and each coin’s own minimum at checkout). Served from memory and cacheable for a minute; any member or API key may read it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).
Responses
Section titled “Responses”The price currencies, EUR, BRL, USD and GBP first, then alphabetical by code.
object
object
ISO 4217 code of a price currency. GET /v1/price-currencies lists them with their decimals and, for live payments, the current minimum; amounts use the currency’s minor units (no decimals for JPY, three for KWD).
English name (clients show their own localized name).
The symbol commonly shown with amounts (the code when it has none).
ISO 4217 minor units. Amounts in this currency have at most this many decimals.
EUR, BRL, USD and GBP: listed first, with fixed minimums.
A new live payment can be priced in it now (false without a current exchange rate).
Why it is not available; null when it is.
Smallest live payment, payment link or invoice total accepted in this currency now (refused below with 422 amount_below_minimum).
Minimum of most coins. When it is above minimum_amount, only some coins accept the smaller amounts and the customer chooses one of those at checkout.
When the oldest exchange rate behind the converted minimums was read; null when none is used.
Example
{ "object": "list", "data": [ { "object": "price_currency", "code": "EUR", "unavailable_reason": "rate_unavailable" } ], "has_more": false}Missing or invalid credentials.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}