curl --request POST \
--url https://api.linkio.world/otc/pop \
--header 'Content-Type: multipart/form-data' \
--header 'ngnc-sec-key: <api-key>' \
--form reference=link-otc-12345678 \
--form file='@example-file' \
--form transaction_hash=0xabc123...import requests
url = "https://api.linkio.world/otc/pop"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = {
"reference": "link-otc-12345678",
"transaction_hash": "0xabc123..."
}
headers = {"ngnc-sec-key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('reference', 'link-otc-12345678');
form.append('file', '<string>');
form.append('transaction_hash', '0xabc123...');
const options = {method: 'POST', headers: {'ngnc-sec-key': '<api-key>'}};
options.body = form;
fetch('https://api.linkio.world/otc/pop', 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/otc/pop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkio.world/otc/pop"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
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/otc/pop")
.header("ngnc-sec-key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkio.world/otc/pop")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ngnc-sec-key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"data": {
"reference": "link-otc-12345678",
"filename": "receipt.pdf",
"transaction_hash": "<string>",
"status": "processing"
}
}Upload Proof of Payment
Submit proof of payment for an B2B transaction.
Onramp: Upload a payment receipt file (JPEG/PNG/GIF/PDF, max 3 MB). The file is forwarded to the B2B partner to confirm fiat receipt.
Offramp: Provide the blockchain transaction hash or block explorer URL confirming that stablecoins have been sent. The transaction status is updated from pending to processing and the admin is notified.
curl --request POST \
--url https://api.linkio.world/otc/pop \
--header 'Content-Type: multipart/form-data' \
--header 'ngnc-sec-key: <api-key>' \
--form reference=link-otc-12345678 \
--form file='@example-file' \
--form transaction_hash=0xabc123...import requests
url = "https://api.linkio.world/otc/pop"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = {
"reference": "link-otc-12345678",
"transaction_hash": "0xabc123..."
}
headers = {"ngnc-sec-key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('reference', 'link-otc-12345678');
form.append('file', '<string>');
form.append('transaction_hash', '0xabc123...');
const options = {method: 'POST', headers: {'ngnc-sec-key': '<api-key>'}};
options.body = form;
fetch('https://api.linkio.world/otc/pop', 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/otc/pop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkio.world/otc/pop"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
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/otc/pop")
.header("ngnc-sec-key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkio.world/otc/pop")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ngnc-sec-key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"reference\"\r\n\r\nlink-otc-12345678\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"transaction_hash\"\r\n\r\n0xabc123...\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"data": {
"reference": "link-otc-12345678",
"filename": "receipt.pdf",
"transaction_hash": "<string>",
"status": "processing"
}
}Authorizations
Body
The transaction reference returned when the transaction was created (e.g. link-otc-12345678).
"link-otc-12345678"
The type of transaction. Determines which proof is expected — file for onramp, transaction_hash for offramp.
onramp, offramp Required for onramp only. Proof of payment file. Accepted types: JPEG, PNG, GIF, PDF. Maximum size: 3 MB.
Required for offramp only. The blockchain transaction hash or block explorer URL confirming stablecoin transfer (e.g. a Tronscan or Etherscan link).
"0xabc123..."

