curl --request GET \
--url https://api.qint.ch/api/v1/merchant/balances/conversions \
--cookie qint_session=const options = {method: 'GET', headers: {cookie: 'qint_session='}};
fetch('https://api.qint.ch/api/v1/merchant/balances/conversions', 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/merchant/balances/conversions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "qint_session=",
]);
$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/merchant/balances/conversions"
headers = {"cookie": "qint_session="}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "cv_4k8m2p9q7w1x",
"fromCurrency": "CHF",
"fromAmount": 2400,
"toCurrency": "CHF",
"toAmount": 2256.48,
"rate": 0.9402,
"rateSource": "<string>",
"rateAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"requestedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "An error occurred while processing your request.",
"status": 400,
"detail": "currency must be one of: CHF, EUR, USD, GBP.",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00"
}List conversions
The merchant’s balance conversions, newest first (at most 100).
Any member of the merchant account can read them.
curl --request GET \
--url https://api.qint.ch/api/v1/merchant/balances/conversions \
--cookie qint_session=const options = {method: 'GET', headers: {cookie: 'qint_session='}};
fetch('https://api.qint.ch/api/v1/merchant/balances/conversions', 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/merchant/balances/conversions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "qint_session=",
]);
$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/merchant/balances/conversions"
headers = {"cookie": "qint_session="}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "cv_4k8m2p9q7w1x",
"fromCurrency": "CHF",
"fromAmount": 2400,
"toCurrency": "CHF",
"toAmount": 2256.48,
"rate": 0.9402,
"rateSource": "<string>",
"rateAt": "2023-11-07T05:31:56Z",
"idempotencyKey": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"requestedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "An error occurred while processing your request.",
"status": 400,
"detail": "currency must be one of: CHF, EUR, USD, GBP.",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00"
}Authorizations
The signed-in session of the Qint dashboard (dashboard.qint.ch). Only the Dashboard endpoints use it; API keys are not accepted there.
Headers
The merchant account to act on, for users with access to more than one. Not needed when the user belongs to a single merchant account.
Response
The conversions.
Conversion id (cv_…).
"cv_4k8m2p9q7w1x"
The fiat currency new payments are credited in (CHF unless the merchant chooses otherwise). It can change at any time; a balance in a previous Account Currency stays in that currency. Every payment is credited in the Account Currency of its quote, at the rate fixed when the buyer was quoted.
CHF, EUR, USD, GBP The amount taken from the fromCurrency balance.
2400
The fiat currency new payments are credited in (CHF unless the merchant chooses otherwise). It can change at any time; a balance in a previous Account Currency stays in that currency. Every payment is credited in the Account Currency of its quote, at the rate fixed when the buyer was quoted.
CHF, EUR, USD, GBP The amount added to the Account Currency balance, rounded to the cent.
2256.48
Units of toCurrency per 1 unit of fromCurrency. The reference rate; no fee, no spread.
0.9402
Where the rate came from.
The time of the rate.
The dashboard user who requested it.