Skip to content
HitchPay API Docs

Checkout Payments

Verify Payment

Verify a payment reference and retrieve its final status and details.

GET /v1/payments/verify/{reference}

Verify the status and details of a payment using its HitchPay reference.

Always use this endpoint to confirm payment status — do not rely solely on the callback url redirect or webhook events, as these are asynchronous.


Request

Path Parameters

Parameter Type Required Description
reference string ✅ This accepts both the hitchpay and the merchant passed reference

Code Samples

const axios = require("axios");

const reference = "HCHK248EBF3863";

const response = await axios.get(
  `https://sandbox.hitchpay.ng/v1/payments/verify/${reference}`,
  {
    headers: {
      Authorization: `Bearer ${process.env.ACCESS_TOKEN}`
    }
  }
);

console.log(response.data);
<?php

$reference = "HCHK248EBF3863";

$ch = curl_init();

curl_setopt_array($ch, [
  CURLOPT_URL => "https://sandbox.hitchpay.ng/v1/payments/verify/{$reference}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ]
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
import requests

reference = "HCHK248EBF3863"

url = f"https://sandbox.hitchpay.ng/v1/payments/verify/{reference}"

headers = {
    "Authorization": "Bearer YOUR_ACCESS_TOKEN"
}

response = requests.get(url, headers=headers)
print(response.json())

Response

200 — Success

{
  "status": "success",
  "message": "Payment verified",
  "data": {
    "status": "successful",
    "amount": "100.00",
    "currency": "NGN",
    "amount_paid": "100.50",
    "reference": "HCHK380B3716D4",
    "paid_at": "2025-11-06T01:59:23.000Z",
    "payment_channel": "dynamic_account",
    "customer": {
      "name": "Jane Doe",
      "email": "[email protected]"
    }
  }
}

Payment Status Values

Status Description
successful Payment completed and confirmed
pending Payment initiated but not yet completed
failed Payment failed or was reversed
partial Partial payment received

404 — Not Found

{
  "status": "error",
  "code": "NOT_FOUND",
  "message": "Payment reference not found"
}

Questions? Email [email protected]. Also on GitBook.