Create a crypto top-up
curl --request POST \
--url https://api.refuseless.com/v1/top-ups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 50,
"method": "usdt-tron"
}
'import requests
url = "https://api.refuseless.com/v1/top-ups"
payload = {
"amount": 50,
"method": "usdt-tron"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 50, method: 'usdt-tron'})
};
fetch('https://api.refuseless.com/v1/top-ups', 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.refuseless.com/v1/top-ups",
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' => 50,
'method' => 'usdt-tron'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.refuseless.com/v1/top-ups"
payload := strings.NewReader("{\n \"amount\": 50,\n \"method\": \"usdt-tron\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.refuseless.com/v1/top-ups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 50,\n \"method\": \"usdt-tron\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.refuseless.com/v1/top-ups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 50,\n \"method\": \"usdt-tron\"\n}"
response = http.request(request)
puts response.read_body{
"object": "top_up",
"id": "tu_k3j9x0q2m8v1c7d5f4h6a2s9w0e3r8t1",
"status": "pending",
"amount": 50,
"method": "usdt-tron",
"currency": "USDT",
"network": "Tron",
"address": "<string>",
"pay_amount": "50.12",
"created_at": 123,
"bonus": 0,
"memo": "<string>",
"paid_amount": "<string>",
"remaining_amount": "<string>",
"expires_at": 123,
"paid_at": 123
}{
"object": "top_up",
"id": "tu_k3j9x0q2m8v1c7d5f4h6a2s9w0e3r8t1",
"status": "pending",
"amount": 50,
"method": "usdt-tron",
"currency": "USDT",
"network": "Tron",
"address": "<string>",
"pay_amount": "50.12",
"created_at": 123,
"bonus": 0,
"memo": "<string>",
"paid_amount": "<string>",
"remaining_amount": "<string>",
"expires_at": 123,
"paid_at": 123
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}Top-ups
Create a crypto top-up
Returns an address and the exact coin amount to send. Credits are added to the key owner’s account once the network confirms the transfer. Poll GET /v1/top-ups/ until status is paid.
POST
/
v1
/
top-ups
Create a crypto top-up
curl --request POST \
--url https://api.refuseless.com/v1/top-ups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 50,
"method": "usdt-tron"
}
'import requests
url = "https://api.refuseless.com/v1/top-ups"
payload = {
"amount": 50,
"method": "usdt-tron"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 50, method: 'usdt-tron'})
};
fetch('https://api.refuseless.com/v1/top-ups', 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.refuseless.com/v1/top-ups",
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' => 50,
'method' => 'usdt-tron'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.refuseless.com/v1/top-ups"
payload := strings.NewReader("{\n \"amount\": 50,\n \"method\": \"usdt-tron\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.refuseless.com/v1/top-ups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 50,\n \"method\": \"usdt-tron\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.refuseless.com/v1/top-ups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 50,\n \"method\": \"usdt-tron\"\n}"
response = http.request(request)
puts response.read_body{
"object": "top_up",
"id": "tu_k3j9x0q2m8v1c7d5f4h6a2s9w0e3r8t1",
"status": "pending",
"amount": 50,
"method": "usdt-tron",
"currency": "USDT",
"network": "Tron",
"address": "<string>",
"pay_amount": "50.12",
"created_at": 123,
"bonus": 0,
"memo": "<string>",
"paid_amount": "<string>",
"remaining_amount": "<string>",
"expires_at": 123,
"paid_at": 123
}{
"object": "top_up",
"id": "tu_k3j9x0q2m8v1c7d5f4h6a2s9w0e3r8t1",
"status": "pending",
"amount": 50,
"method": "usdt-tron",
"currency": "USDT",
"network": "Tron",
"address": "<string>",
"pay_amount": "50.12",
"created_at": 123,
"bonus": 0,
"memo": "<string>",
"paid_amount": "<string>",
"remaining_amount": "<string>",
"expires_at": 123,
"paid_at": 123
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}{
"error": {
"code": "invalid_key",
"message": "<string>",
"type": "api_error"
}
}Authorizations
Headers
Body
application/json
Response
Retry with an Idempotency-Key already used: the same top-up