Get crypto bridge deposit status
curl --request GET \
--url https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}', 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://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Crypto bridge deposit status retrieved.",
"data": {
"kotani_reference_id": "KOTANI-REF-789",
"provider_reference_id": "PROVIDER-TXN-20241122-001",
"status": "PAYMENT_SENT",
"transaction_type": "cross_border",
"chain": "LIGHTNING",
"token": "MSAT",
"stages": {
"deposit": {
"status": "DEPOSIT_CONFIRMED",
"timestamp": "2024-11-22T12:00:45Z",
"amount": 1000,
"currency": "KES",
"chain": "LIGHTNING",
"token": "MSAT",
"payment_hash": "a1b2c3d4e5f6...",
"amount_msat": 150000000
},
"crypto_payment": {
"status": "DEPOSIT_CONFIRMED",
"timestamp": "2024-11-22T12:00:45Z",
"amount": 1000,
"currency": "KES",
"chain": "LIGHTNING",
"token": "MSAT",
"payment_hash": "a1b2c3d4e5f6...",
"amount_msat": 150000000
},
"settlement": {
"status": "DEPOSIT_CONFIRMED",
"timestamp": "2024-11-22T12:00:45Z",
"amount": 1000,
"currency": "KES",
"chain": "LIGHTNING",
"token": "MSAT",
"payment_hash": "a1b2c3d4e5f6...",
"amount_msat": 150000000
}
},
"metadata": {
"sender_name": "John Doe",
"sender_country": "KE",
"recipient_name": "Jane Smith",
"recipient_country": "ZA",
"notes": "Family support payment"
}
}
}{
"success": false,
"message": "Bad Request",
"data": {}
}{
"success": false,
"message": "Unauthorized",
"data": {}
}{
"success": false,
"message": "Transaction not found",
"data": {}
}Crypto Bridge
Get Crypto Bridge Deposit Status
Retrieve detailed status of a crypto bridge transaction including all stages: deposit collection, crypto payment, and settlement.
GET
/
api
/
v3
/
deposit
/
crypto-bridge
/
status
/
{kotani_reference_id}
Get crypto bridge deposit status
curl --request GET \
--url https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}', 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://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.kotanipay.com/api/v3/deposit/crypto-bridge/status/{kotani_reference_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Crypto bridge deposit status retrieved.",
"data": {
"kotani_reference_id": "KOTANI-REF-789",
"provider_reference_id": "PROVIDER-TXN-20241122-001",
"status": "PAYMENT_SENT",
"transaction_type": "cross_border",
"chain": "LIGHTNING",
"token": "MSAT",
"stages": {
"deposit": {
"status": "DEPOSIT_CONFIRMED",
"timestamp": "2024-11-22T12:00:45Z",
"amount": 1000,
"currency": "KES",
"chain": "LIGHTNING",
"token": "MSAT",
"payment_hash": "a1b2c3d4e5f6...",
"amount_msat": 150000000
},
"crypto_payment": {
"status": "DEPOSIT_CONFIRMED",
"timestamp": "2024-11-22T12:00:45Z",
"amount": 1000,
"currency": "KES",
"chain": "LIGHTNING",
"token": "MSAT",
"payment_hash": "a1b2c3d4e5f6...",
"amount_msat": 150000000
},
"settlement": {
"status": "DEPOSIT_CONFIRMED",
"timestamp": "2024-11-22T12:00:45Z",
"amount": 1000,
"currency": "KES",
"chain": "LIGHTNING",
"token": "MSAT",
"payment_hash": "a1b2c3d4e5f6...",
"amount_msat": 150000000
}
},
"metadata": {
"sender_name": "John Doe",
"sender_country": "KE",
"recipient_name": "Jane Smith",
"recipient_country": "ZA",
"notes": "Family support payment"
}
}
}{
"success": false,
"message": "Bad Request",
"data": {}
}{
"success": false,
"message": "Unauthorized",
"data": {}
}{
"success": false,
"message": "Transaction not found",
"data": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Kotani reference ID for the transaction
Example:
"KOTANI-REF-789"