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
}Crear transacción de entrada (Venezuela)
Acredita una cuenta USDT operativa. amount es una cadena decimal positiva, no un número JSON.
Pueden aparecer hasta 8 dígitos fraccionarios. montoFiat y tasaCompra son metadatos en VES.
Obligatorios: accountId, amount. Opcionales: bancoPago, webhookUrl.
bancoPago debe ser un onramp.banks[].name exacto de GET /ve/banks.
No es el id numérico ni un country.banks[].label. Omítalo para dejar el banco del pagador sin definir.
Un nombre desconocido o un id crudo devuelve 400 con code: VE_INBOUND_INVALID_BANCO_PAGO.
El éxito es 201 con id, status: pending, amount, orden_id, y montoFiat / tasaCompra solo cuando la respuesta de creación los incluye.
Una cuenta inexistente devuelve 404. Sin acceso devuelve 403. Bloqueada o Cerrada devuelve 403 con code: ACCOUNT_NOT_OPERATIVE.
Una cuenta no admitida o una moneda distinta de USDT devuelve 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
}Autorizaciones
Token de autenticación de API de usuario con formato cash_<64-char-hex>. Valor de ejemplo cash_16cdc3b6f83c72d9d2680adca4f430962981f6bf32613a129dded0aa060387d2.
Cuerpo
"YOUR_ACCOUNT_UUID"
Cadena decimal USDT positiva. No es un número JSON. Pueden aparecer hasta 8 dígitos fraccionarios. Los montos en VES no son este campo.
^\d+(\.\d+)?$"100.5"
onramp.banks[].name exacto de GET /ve/banks. No es el id numérico.
"ONRAMP_BANK_NAME"
Respuesta
Cash-in creado
pending Cadena decimal USDT positiva. No es un número JSON. Pueden aparecer hasta 8 dígitos fraccionarios. Los montos en VES no son este campo.
^\d+(\.\d+)?$"100.5"
Metadato en VES. Se incluye solo cuando la respuesta de creación lo trae.
Metadato en VES. Se incluye solo cuando la respuesta de creación lo trae.

