List currencies
curl --request GET \
--url https://api.qint.ch/api/v1/public/currenciesconst options = {method: 'GET'};
fetch('https://api.qint.ch/api/v1/public/currencies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qint.ch/api/v1/public/currencies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.qint.ch/api/v1/public/currencies"
response = requests.get(url)
print(response.text){
"currencies": [
{
"code": "CHF",
"enabled": true
},
{
"code": "EUR",
"enabled": true
},
{
"code": "USD",
"enabled": true
},
{
"code": "GBP",
"enabled": false
}
]
}Currencies
List currencies
Public, unauthenticated. Every fiat currency Qint knows, with whether it
is offered for new payments right now. Qint can switch a currency
off (and back on) at any time; while it is off, creating an intent,
link or invoice in it is refused with 400. That 400 has no
machine-readable code — only a detail such as
GBP is currently disabled on Qint. currency must be one of: CHF, EUR, USD.
— so call this endpoint before creating an intent rather than parsing
the error. Records already created in that currency keep working.
The response is cacheable for 30 seconds — cache it on your side rather than calling it on every checkout.
GET
/
api
/
v1
/
public
/
currencies
List currencies
curl --request GET \
--url https://api.qint.ch/api/v1/public/currenciesconst options = {method: 'GET'};
fetch('https://api.qint.ch/api/v1/public/currencies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qint.ch/api/v1/public/currencies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.qint.ch/api/v1/public/currencies"
response = requests.get(url)
print(response.text){
"currencies": [
{
"code": "CHF",
"enabled": true
},
{
"code": "EUR",
"enabled": true
},
{
"code": "USD",
"enabled": true
},
{
"code": "GBP",
"enabled": false
}
]
}Response
200 - application/json
The currency list, in display order.
Show child attributes
Show child attributes