Skip to main content
POST
/
v1
/
payments
/
verify
Verify payment
curl --request POST \
  --url https://api.platnova.com/v1/payments/verify \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "reference": "UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt"
}
'
import requests

url = "https://api.platnova.com/v1/payments/verify"

payload = { "reference": "UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt" }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reference: 'UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt'})
};

fetch('https://api.platnova.com/v1/payments/verify', 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/verify",
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([
'reference' => 'UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.platnova.com/v1/payments/verify"

payload := strings.NewReader("{\n \"reference\": \"UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-KEY", "<api-key>")
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.platnova.com/v1/payments/verify")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reference\": \"UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.platnova.com/v1/payments/verify")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reference\": \"UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt\"\n}"

response = http.request(request)
puts response.read_body
{
  "status": true,
  "data": {
    "id": "<string>",
    "reference": "<string>",
    "currency": "<string>",
    "amount": 123,
    "fee": 123,
    "type": "<string>",
    "status": "<string>",
    "entry": "<string>",
    "message": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "error": [
    "<unknown>"
  ],
  "message": "<string>"
}
{
"status": true,
"data": {},
"error": [
"<unknown>"
],
"message": "<string>"
}

Overview

Verify a payment by its reference. Send a JSON body with reference: the transaction or payment reference returned when you sent the payment (for example a UTR_… value). The response includes status, amount, and related transaction details.

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Body

application/json
reference
string
required

Transaction or payment reference to verify

Response

Payment details retrieved successfully

status
boolean
data
object
error
any[]
message
string