Оплатить по ссылке (создать платёж)
curl --request POST \
--url https://api.oblodai.com/v1/link/{id}/checkout \
--header 'Content-Type: application/json' \
--data '
{
"amount": "10.00",
"currency": "USDT",
"network": "tron",
"order_id": "<string>",
"payer_email": "buyer@example.com"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/link/{id}/checkout",
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([
'amount' => '10.00',
'currency' => 'USDT',
'network' => 'tron',
'order_id' => '<string>',
'payer_email' => 'buyer@example.com'
]),
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({
amount: '10.00',
currency: 'USDT',
network: 'tron',
order_id: '<string>',
payer_email: 'buyer@example.com'
})
};
fetch('https://api.oblodai.com/v1/link/{id}/checkout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/link/{id}/checkout"
payload = {
"amount": "10.00",
"currency": "USDT",
"network": "tron",
"order_id": "<string>",
"payer_email": "buyer@example.com"
}
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/link/{id}/checkout"
payload := strings.NewReader("{\n \"amount\": \"10.00\",\n \"currency\": \"USDT\",\n \"network\": \"tron\",\n \"order_id\": \"<string>\",\n \"payer_email\": \"buyer@example.com\"\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
}Оплатить по ссылке (создать платёж)
Публично: клиент вводит сумму (для open/range) и, если валюта не закреплена, выбирает валюту/сеть. Создаётся свежий инвойс — в ответе обычный объект платежа с uuid и url страницы оплаты.
POST
/
v1
/
link
/
{id}
/
checkout
Оплатить по ссылке (создать платёж)
curl --request POST \
--url https://api.oblodai.com/v1/link/{id}/checkout \
--header 'Content-Type: application/json' \
--data '
{
"amount": "10.00",
"currency": "USDT",
"network": "tron",
"order_id": "<string>",
"payer_email": "buyer@example.com"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/link/{id}/checkout",
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([
'amount' => '10.00',
'currency' => 'USDT',
'network' => 'tron',
'order_id' => '<string>',
'payer_email' => 'buyer@example.com'
]),
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({
amount: '10.00',
currency: 'USDT',
network: 'tron',
order_id: '<string>',
payer_email: 'buyer@example.com'
})
};
fetch('https://api.oblodai.com/v1/link/{id}/checkout', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/link/{id}/checkout"
payload = {
"amount": "10.00",
"currency": "USDT",
"network": "tron",
"order_id": "<string>",
"payer_email": "buyer@example.com"
}
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/link/{id}/checkout"
payload := strings.NewReader("{\n \"amount\": \"10.00\",\n \"currency\": \"USDT\",\n \"network\": \"tron\",\n \"order_id\": \"<string>\",\n \"payer_email\": \"buyer@example.com\"\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
}Тело
application/json
Сумма, которую ввёл покупатель, в валюте цены ссылки; обязательна для open и range, для fixed игнорируется
Пример:
"10.00"
Валюта расчёта — монета, которой платит покупатель; нужна, только если ссылка не закрепила pinned_currency
Пример:
"USDT"
Сеть расчёта; нужна, только если ссылка не закрепила pinned_network
Пример:
"tron"
Номер заказа магазина из встроенного виджета (data-oblodai-order-id); переносится на счёт и в вебхук для сопоставления с заказом; не ключ идемпотентности
Email покупателя — на него автоматически уйдёт чек после оплаты
Пример:
"buyer@example.com"
⌘I