Skip to Content
HomeLink Hub
Transactions & Payments

Verify an inspection payment

GET
/api/v1/transaction/inspection/verify/{reference}

Access: Bearer token required.

Asks Paystack for the status of a transaction reference and returns Paystack's data object unchanged. The envelope is always HTTP 200 / Transaction verified when Paystack answers, even for a failed or abandoned payment, so clients must read data.status (success, failed, abandoned, ...).

When data.status is success and the metadata says type: "inspection", the payment is applied to the inspection named in the metadata (the same routine the Paystack webhook runs; whichever arrives first wins and the second is a no-op): paymentStatus -> paid, paymentReference is stored, status -> scheduled, and agentId / agentFee are set to the listing agent (or landlord) and the NGN amount actually collected. If the payer has connected Google Calendar, an event is then created on their primary calendar in the background. The payment is silently not applied (the response is still 200) when the inspection is missing or already paid, when the metadata's propertyId does not match the inspection, or when the amount collected is below the quoted fee.

The endpoint does not check that the reference belongs to the caller: any authenticated user can verify any reference and receive Paystack's data for it. The inspection's current status is not checked either, so a cancelled inspection that is paid becomes scheduled.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Path Parameters

reference*string

Paystack transaction reference returned by the initialize endpoint, e.g. INS-1764062400000-K3F9QZ.

Response Body

Paystack answered. data is Paystack's verify-transaction payload passed through as-is; the example shows only a few of its fields (amounts are in kobo). Check data.status.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/transaction/inspection/verify/string'
Example Response
{  "status": 200,  "success": true,  "message": "Transaction verified",  "data": {    "id": 4099260516,    "status": "success",    "reference": "INS-1764062400000-K3F9QZ",    "amount": 500000,    "currency": "NGN",    "channel": "card",    "gateway_response": "Successful",    "paid_at": "2026-11-25T09:22:41.000Z",    "metadata": {      "userId": "663d9a1c5e4b2a0012cd7f10",      "propertyId": "664a0b7e3f2c1d0012ef5a01",      "inspectionId": "6660a2d47c3e5b0012de8f31",      "type": "inspection",      "quotedFee": 5000    },    "customer": {      "email": "chinedu.okafor@example.com"    }  }}