Register a tx for a request (V3 body).
curl --request PATCH \
--url https://gateway-api-mainnet.gobob.xyz/v3/register-tx \
--header 'Content-Type: application/json' \
--data '
{
"onramp": {
"order_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"bitcoin_tx_hex": "<string>",
"bitcoin_txid": "<string>"
}
}
'import requests
url = "https://gateway-api-mainnet.gobob.xyz/v3/register-tx"
payload = { "onramp": {
"order_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"bitcoin_tx_hex": "<string>",
"bitcoin_txid": "<string>"
} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
onramp: {
order_id: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
bitcoin_tx_hex: '<string>',
bitcoin_txid: '<string>'
}
})
};
fetch('https://gateway-api-mainnet.gobob.xyz/v3/register-tx', 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://gateway-api-mainnet.gobob.xyz/v3/register-tx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'onramp' => [
'order_id' => 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
'bitcoin_tx_hex' => '<string>',
'bitcoin_txid' => '<string>'
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-api-mainnet.gobob.xyz/v3/register-tx"
payload := strings.NewReader("{\n \"onramp\": {\n \"order_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"bitcoin_tx_hex\": \"<string>\",\n \"bitcoin_txid\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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))
}HttpResponse<String> response = Unirest.patch("https://gateway-api-mainnet.gobob.xyz/v3/register-tx")
.header("Content-Type", "application/json")
.body("{\n \"onramp\": {\n \"order_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"bitcoin_tx_hex\": \"<string>\",\n \"bitcoin_txid\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api-mainnet.gobob.xyz/v3/register-tx")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"onramp\": {\n \"order_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"bitcoin_tx_hex\": \"<string>\",\n \"bitcoin_txid\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"onramp": {
"txid": "<string>"
}
}{
"error": "<string>",
"details": {
"addresses": [
"<string>"
]
}
}API reference
Register a tx for a request (V3 body).
PATCH
/
v3
/
register-tx
Register a tx for a request (V3 body).
curl --request PATCH \
--url https://gateway-api-mainnet.gobob.xyz/v3/register-tx \
--header 'Content-Type: application/json' \
--data '
{
"onramp": {
"order_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"bitcoin_tx_hex": "<string>",
"bitcoin_txid": "<string>"
}
}
'import requests
url = "https://gateway-api-mainnet.gobob.xyz/v3/register-tx"
payload = { "onramp": {
"order_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"bitcoin_tx_hex": "<string>",
"bitcoin_txid": "<string>"
} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
onramp: {
order_id: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
bitcoin_tx_hex: '<string>',
bitcoin_txid: '<string>'
}
})
};
fetch('https://gateway-api-mainnet.gobob.xyz/v3/register-tx', 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://gateway-api-mainnet.gobob.xyz/v3/register-tx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'onramp' => [
'order_id' => 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
'bitcoin_tx_hex' => '<string>',
'bitcoin_txid' => '<string>'
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-api-mainnet.gobob.xyz/v3/register-tx"
payload := strings.NewReader("{\n \"onramp\": {\n \"order_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"bitcoin_tx_hex\": \"<string>\",\n \"bitcoin_txid\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PATCH", 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))
}HttpResponse<String> response = Unirest.patch("https://gateway-api-mainnet.gobob.xyz/v3/register-tx")
.header("Content-Type", "application/json")
.body("{\n \"onramp\": {\n \"order_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"bitcoin_tx_hex\": \"<string>\",\n \"bitcoin_txid\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api-mainnet.gobob.xyz/v3/register-tx")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"onramp\": {\n \"order_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"bitcoin_tx_hex\": \"<string>\",\n \"bitcoin_txid\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"onramp": {
"txid": "<string>"
}
}{
"error": "<string>",
"details": {
"addresses": [
"<string>"
]
}
}⌘I