Transactions - Synchronize Transaction
curl --request POST \
--url https://api.ripio.com/trade/transactions/sync \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>' \
--data '
{
"block_id": 123456,
"currency_code": "BTC",
"hash": "7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae"
}
'import requests
url = "https://api.ripio.com/trade/transactions/sync"
payload = {
"block_id": 123456,
"currency_code": "BTC",
"hash": "7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae"
}
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
block_id: 123456,
currency_code: 'BTC',
hash: '7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae'
})
};
fetch('https://api.ripio.com/trade/transactions/sync', 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.ripio.com/trade/transactions/sync",
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([
'block_id' => 123456,
'currency_code' => 'BTC',
'hash' => '7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$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.ripio.com/trade/transactions/sync"
payload := strings.NewReader("{\n \"block_id\": 123456,\n \"currency_code\": \"BTC\",\n \"hash\": \"7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
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.ripio.com/trade/transactions/sync")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.header("Content-Type", "application/json")
.body("{\n \"block_id\": 123456,\n \"currency_code\": \"BTC\",\n \"hash\": \"7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/transactions/sync")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"block_id\": 123456,\n \"currency_code\": \"BTC\",\n \"hash\": \"7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae\"\n}"
response = http.request(request)
puts response.read_body{
"data": 123,
"error_code": null,
"message": null
}Transactions
Synchronize Transaction
Manually synchronize a cryptocurrency deposit.
Authorization
- Requires a valid API key.
- Required API-key permission(s):
- Deposit (Read)
POST
/
trade
/
transactions
/
sync
Transactions - Synchronize Transaction
curl --request POST \
--url https://api.ripio.com/trade/transactions/sync \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>' \
--data '
{
"block_id": 123456,
"currency_code": "BTC",
"hash": "7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae"
}
'import requests
url = "https://api.ripio.com/trade/transactions/sync"
payload = {
"block_id": 123456,
"currency_code": "BTC",
"hash": "7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae"
}
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
block_id: 123456,
currency_code: 'BTC',
hash: '7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae'
})
};
fetch('https://api.ripio.com/trade/transactions/sync', 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.ripio.com/trade/transactions/sync",
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([
'block_id' => 123456,
'currency_code' => 'BTC',
'hash' => '7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$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.ripio.com/trade/transactions/sync"
payload := strings.NewReader("{\n \"block_id\": 123456,\n \"currency_code\": \"BTC\",\n \"hash\": \"7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
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.ripio.com/trade/transactions/sync")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.header("Content-Type", "application/json")
.body("{\n \"block_id\": 123456,\n \"currency_code\": \"BTC\",\n \"hash\": \"7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/transactions/sync")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"block_id\": 123456,\n \"currency_code\": \"BTC\",\n \"hash\": \"7b6155e3d010b530f484e0cd05429328a514dd0158dc31c23cdd3ebb59f335ae\"\n}"
response = http.request(request)
puts response.read_body{
"data": 123,
"error_code": null,
"message": null
}Headers
The API key as a string.
See the Generating Signature section for more details.
A timestamp in milliseconds. See the Timestamp Security section for more details.
An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.
Body
application/json
⌘I