Cancel Deposit
curl --request POST \
--url https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit \
--header 'ngnc-sec-key: <api-key>'import requests
url = "https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit"
headers = {"ngnc-sec-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'ngnc-sec-key': '<api-key>'}};
fetch('https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit', 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.linkio.world/transactions/v2/direct_ramp/cancel_deposit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ngnc-sec-key: <api-key>"
],
]);
$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://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("ngnc-sec-key", "<api-key>")
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.linkio.world/transactions/v2/direct_ramp/cancel_deposit")
.header("ngnc-sec-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ngnc-sec-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "Success",
"message": "onramp transaction with reference LNK-8F3K2A: Cancelled",
"date": "2026-10-09 11:42"
}Pan-Africa Ramp
Cancel Deposit
Cancel a pending Pan-Africa onramp deposit that the customer has not paid. Pass the reference returned when the deposit was created. Parameters are sent as query string values, not as a JSON body.
POST
/
transactions
/
v2
/
direct_ramp
/
cancel_deposit
Cancel Deposit
curl --request POST \
--url https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit \
--header 'ngnc-sec-key: <api-key>'import requests
url = "https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit"
headers = {"ngnc-sec-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'ngnc-sec-key': '<api-key>'}};
fetch('https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit', 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.linkio.world/transactions/v2/direct_ramp/cancel_deposit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ngnc-sec-key: <api-key>"
],
]);
$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://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("ngnc-sec-key", "<api-key>")
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.linkio.world/transactions/v2/direct_ramp/cancel_deposit")
.header("ngnc-sec-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkio.world/transactions/v2/direct_ramp/cancel_deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ngnc-sec-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "Success",
"message": "onramp transaction with reference LNK-8F3K2A: Cancelled",
"date": "2026-10-09 11:42"
}Authorizations
Query Parameters
Transaction type. Only onramp deposits can be cancelled.
Available options:
onramp Reference code returned when the deposit was created.

