Skip to content

Получить список валют магазина

GET
/v1/external/store/currencies
Сервер

Получить список валют магазина

Авторизация

XApiKey
ТипAPI Key (header: X-Api-Key)

Ответы

OK
*/*
JSON
{
"code": 0,
"data": [
{
"blockchain": "string",
"blockchain_icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
},
"code": "string",
"contract_address": "string",
"explorer_link": "string",
"has_balance": true,
"icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
},
"id": "string",
"is_fiat": true,
"min_confirmation": 0,
"name": "string",
"precision": 0,
"status": true,
"withdrawal_min_balance": 0
}
],
"message": "string"
}

Примеры

cURL
curl -X GET \
'https://demo.dv.net/api/v1/external/store/currencies' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://demo.dv.net/api/v1/external/store/currencies', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://demo.dv.net/api/v1/external/store/currencies';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://demo.dv.net/api/v1/external/store/currencies'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())