curl --request POST \
--url https://hg.cash/api/v1/ve/transactions/inbound \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "YOUR_ACCOUNT_UUID",
"amount": "100.5",
"bancoPago": "ONRAMP_BANK_NAME"
}
'import requests
url = "https://hg.cash/api/v1/ve/transactions/inbound"
payload = {
"accountId": "YOUR_ACCOUNT_UUID",
"amount": "100.5",
"bancoPago": "ONRAMP_BANK_NAME"
}
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({accountId: 'YOUR_ACCOUNT_UUID', amount: '100.5', bancoPago: 'ONRAMP_BANK_NAME'})
};
fetch('https://hg.cash/api/v1/ve/transactions/inbound', 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://hg.cash/api/v1/ve/transactions/inbound",
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([
'accountId' => 'YOUR_ACCOUNT_UUID',
'amount' => '100.5',
'bancoPago' => 'ONRAMP_BANK_NAME'
]),
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://hg.cash/api/v1/ve/transactions/inbound"
payload := strings.NewReader("{\n \"accountId\": \"YOUR_ACCOUNT_UUID\",\n \"amount\": \"100.5\",\n \"bancoPago\": \"ONRAMP_BANK_NAME\"\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://hg.cash/api/v1/ve/transactions/inbound")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountId\": \"YOUR_ACCOUNT_UUID\",\n \"amount\": \"100.5\",\n \"bancoPago\": \"ONRAMP_BANK_NAME\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hg.cash/api/v1/ve/transactions/inbound")
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 \"accountId\": \"YOUR_ACCOUNT_UUID\",\n \"amount\": \"100.5\",\n \"bancoPago\": \"ONRAMP_BANK_NAME\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "pending",
"amount": "100.5",
"orden_id": 1000
}Criar transação de entrada (Venezuela)
Credita uma conta USDT operativa. amount é uma string decimal positiva, não um número JSON.
Até 8 dígitos fracionários podem aparecer. montoFiat e tasaCompra são metadados em VES.
Obrigatórios: accountId, amount. Opcionais: bancoPago, webhookUrl.
bancoPago deve ser um onramp.banks[].name exato de GET /ve/banks.
Não é o id numérico e não é um country.banks[].label. Omita para deixar o banco do pagador indefinido.
Um nome desconhecido ou um id cru retorna 400 com code: VE_INBOUND_INVALID_BANCO_PAGO.
O sucesso é 201 com id, status: pending, amount, orden_id, e montoFiat / tasaCompra somente quando a resposta de criação os inclui.
Uma conta inexistente retorna 404. Sem acesso retorna 403. Bloqueada ou Cerrada retorna 403 com code: ACCOUNT_NOT_OPERATIVE.
Uma conta incompatível ou uma moeda diferente de USDT retorna 400.
curl --request POST \
--url https://hg.cash/api/v1/ve/transactions/inbound \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountId": "YOUR_ACCOUNT_UUID",
"amount": "100.5",
"bancoPago": "ONRAMP_BANK_NAME"
}
'import requests
url = "https://hg.cash/api/v1/ve/transactions/inbound"
payload = {
"accountId": "YOUR_ACCOUNT_UUID",
"amount": "100.5",
"bancoPago": "ONRAMP_BANK_NAME"
}
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({accountId: 'YOUR_ACCOUNT_UUID', amount: '100.5', bancoPago: 'ONRAMP_BANK_NAME'})
};
fetch('https://hg.cash/api/v1/ve/transactions/inbound', 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://hg.cash/api/v1/ve/transactions/inbound",
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([
'accountId' => 'YOUR_ACCOUNT_UUID',
'amount' => '100.5',
'bancoPago' => 'ONRAMP_BANK_NAME'
]),
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://hg.cash/api/v1/ve/transactions/inbound"
payload := strings.NewReader("{\n \"accountId\": \"YOUR_ACCOUNT_UUID\",\n \"amount\": \"100.5\",\n \"bancoPago\": \"ONRAMP_BANK_NAME\"\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://hg.cash/api/v1/ve/transactions/inbound")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountId\": \"YOUR_ACCOUNT_UUID\",\n \"amount\": \"100.5\",\n \"bancoPago\": \"ONRAMP_BANK_NAME\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hg.cash/api/v1/ve/transactions/inbound")
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 \"accountId\": \"YOUR_ACCOUNT_UUID\",\n \"amount\": \"100.5\",\n \"bancoPago\": \"ONRAMP_BANK_NAME\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "pending",
"amount": "100.5",
"orden_id": 1000
}Autorizações
Token de autenticação da API do usuário com o formato cash_<64-char-hex>. Valor de exemplo cash_16cdc3b6f83c72d9d2680adca4f430962981f6bf32613a129dded0aa060387d2.
Corpo
"YOUR_ACCOUNT_UUID"
String decimal USDT positiva. Não é um número JSON. Até 8 dígitos fracionários podem aparecer. Valores em VES não são este campo.
^\d+(\.\d+)?$"100.5"
onramp.banks[].name exato de GET /ve/banks. Não é o id numérico.
"ONRAMP_BANK_NAME"
Resposta
Cash-in criado
pending String decimal USDT positiva. Não é um número JSON. Até 8 dígitos fracionários podem aparecer. Valores em VES não são este campo.
^\d+(\.\d+)?$"100.5"
Metadado em VES. Incluído somente quando a resposta de criação o traz.
Metadado em VES. Incluído somente quando a resposta de criação o traz.

