Get payment by idempotency key
curl --request GET \
--url https://api.platnova.com/v1/payments/by-key/{key} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.platnova.com/v1/payments/by-key/{key}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.platnova.com/v1/payments/by-key/{key}', 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.platnova.com/v1/payments/by-key/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-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.platnova.com/v1/payments/by-key/{key}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-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.get("https://api.platnova.com/v1/payments/by-key/{key}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/payments/by-key/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": {
"key": "payout-INV-2026-0042",
"state": "answered",
"nothing_created": false,
"payment": {
"type": "transaction",
"id": "6f1c2d9e-8a4b-4c1e-9b7a-2f5d3e8c1a90",
"ref": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2",
"status": "success",
"amount": "5000.00",
"fee": "50.00",
"created_at": "2026-11-03T09:15:02Z"
}
},
"error": [],
"message": "operation was successful"
}Payments
Get Payment by Idempotency Key
What became of a money request whose answer you lost, by the Idempotency-Key you sent it with. Keys are looked up within your business: requests made with your API keys are found by any of them, and a dashboard user finds only their own. Read-only: nothing is run or repeated.
GET
/
v1
/
payments
/
by-key
/
{key}
Get payment by idempotency key
curl --request GET \
--url https://api.platnova.com/v1/payments/by-key/{key} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.platnova.com/v1/payments/by-key/{key}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.platnova.com/v1/payments/by-key/{key}', 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.platnova.com/v1/payments/by-key/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-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.platnova.com/v1/payments/by-key/{key}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-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.get("https://api.platnova.com/v1/payments/by-key/{key}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platnova.com/v1/payments/by-key/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": {
"key": "payout-INV-2026-0042",
"state": "answered",
"nothing_created": false,
"payment": {
"type": "transaction",
"id": "6f1c2d9e-8a4b-4c1e-9b7a-2f5d3e8c1a90",
"ref": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2",
"status": "success",
"amount": "5000.00",
"fee": "50.00",
"created_at": "2026-11-03T09:15:02Z"
}
},
"error": [],
"message": "operation was successful"
}Overview
Find out what became of a money request whose answer you lost, such as a Send Payment that timed out, by theIdempotency-Key you sent it with. It only reads: nothing is run or repeated. For a payout you sent with your own reference, Verify Payment by that reference does the same job.
paymentset: the payment exists.payment.refis itstransaction_ref, andpayment.statusis its status now.nothing_created: true: nothing was created and nothing can be. Send it again under a new key.paymentnull andnothing_created: false: we can’t be sure yet (in_progress, or a request that stopped without an answer). Ask again later; don’t send it again.

