Выбрать валюту и сеть для валюто-агностичной ссылки
curl --request POST \
--url https://api.oblodai.com/v1/pay/{id}/select \
--header 'Content-Type: application/json' \
--data '
{
"currency": "USDT",
"network": "tron"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/pay/{id}/select",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'USDT',
'network' => 'tron'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({currency: 'USDT', network: 'tron'})
};
fetch('https://api.oblodai.com/v1/pay/{id}/select', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/pay/{id}/select"
payload = {
"currency": "USDT",
"network": "tron"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.oblodai.com/v1/pay/{id}/select"
payload := strings.NewReader("{\n \"currency\": \"USDT\",\n \"network\": \"tron\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"result": {
"additional_data": "<string>",
"address": "<string>",
"address_muxed": "<string>",
"address_qr_code": "<string>",
"address_xaddress": "<string>",
"amount": "10.00",
"amount_paid": "<string>",
"amount_remaining": "<string>",
"confirmations": 123,
"created_at": "2026-07-10T12:00:00Z",
"currency": "USD",
"destination_tag": "<string>",
"expired_at": 1783728000,
"is_final": true,
"is_multi": true,
"memo": "<string>",
"network": "tron",
"order_id": "<string>",
"payer_address": "<string>",
"payer_address_is_refundable": true,
"payer_amount": "10.150000",
"payer_currency": "USDT",
"payer_email": "<string>",
"payment_amount": "<string>",
"payment_status": "check",
"rate_expires_at": 1783724700,
"required_confirmations": 20,
"txid": "<string>",
"updated_at": "2026-07-10T12:00:00Z",
"url": "<string>",
"url_return": "<string>",
"url_success": "<string>",
"uuid": "<string>"
},
"state": 0
}Выбрать валюту и сеть для валюто-агностичной ссылки
Клиент выбирает currency + network; после этого фиксируется курс и выделяется адрес.
POST
/
v1
/
pay
/
{id}
/
select
Выбрать валюту и сеть для валюто-агностичной ссылки
curl --request POST \
--url https://api.oblodai.com/v1/pay/{id}/select \
--header 'Content-Type: application/json' \
--data '
{
"currency": "USDT",
"network": "tron"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/pay/{id}/select",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'USDT',
'network' => 'tron'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({currency: 'USDT', network: 'tron'})
};
fetch('https://api.oblodai.com/v1/pay/{id}/select', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/pay/{id}/select"
payload = {
"currency": "USDT",
"network": "tron"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.oblodai.com/v1/pay/{id}/select"
payload := strings.NewReader("{\n \"currency\": \"USDT\",\n \"network\": \"tron\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"result": {
"additional_data": "<string>",
"address": "<string>",
"address_muxed": "<string>",
"address_qr_code": "<string>",
"address_xaddress": "<string>",
"amount": "10.00",
"amount_paid": "<string>",
"amount_remaining": "<string>",
"confirmations": 123,
"created_at": "2026-07-10T12:00:00Z",
"currency": "USD",
"destination_tag": "<string>",
"expired_at": 1783728000,
"is_final": true,
"is_multi": true,
"memo": "<string>",
"network": "tron",
"order_id": "<string>",
"payer_address": "<string>",
"payer_address_is_refundable": true,
"payer_amount": "10.150000",
"payer_currency": "USDT",
"payer_email": "<string>",
"payment_amount": "<string>",
"payment_status": "check",
"rate_expires_at": 1783724700,
"required_confirmations": 20,
"txid": "<string>",
"updated_at": "2026-07-10T12:00:00Z",
"url": "<string>",
"url_return": "<string>",
"url_success": "<string>",
"uuid": "<string>"
},
"state": 0
}⌘I