Skip to Content
HomeLink Hub
Transactions & Payments

List my transaction history

GET
/api/v1/transaction/history

Access: Bearer token required.

Returns a page of Transaction records where the caller is parties.from or parties.to, newest first, with propertyId populated (title, location, media, pricing). type is one of rent_payment, sale_payment, deposit, refund, commission; status one of pending, completed, failed, disputed. Caveat: nothing in the current service source creates Transaction documents (escrow payments are stored as EscrowTransaction, and Paystack inspection/booking payments are not persisted here), so unless records are written by another process this list is empty. For escrow activity use the escrow endpoints. The example values for auditTrail[].action and paymentReference are illustrative; the code does not define them.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Query Parameters

page?integer

1-based page number. Defaults to 1.

Default1
limit?integer

Transactions per page. Defaults to 20; no upper bound is enforced.

Default20

Response Body

Page of transactions.

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X GET 'http://localhost:4000/api/v1/transaction/history'
Example Response
{  "status": 200,  "success": true,  "message": "Transaction history fetched",  "data": {    "transactions": [      {        "_id": "6661b3e58d4f6c0012ef9a42",        "escrowId": "6662c4f69e507d0012fa0b53",        "propertyId": {          "_id": "664a0b7e3f2c1d0012ef5a01",          "title": "3 Bedroom Apartment in Lekki Phase 1",          "location": {            "state": "Lagos",            "lga": "Eti-Osa",            "community": "Lekki Phase 1",            "street": "14 Admiralty Way",            "nearestLandmark": "Lekki Phase 1 Gate",            "coordinates": {              "type": "Point",              "coordinates": [                3.4723,                6.4474              ]            }          },          "pricing": {            "rentPrice": 4500000,            "salePrice": null,            "currency": "NGN",            "rentDurationYears": 1          },          "media": {            "images": [              {                "_id": "664a0b7e3f2c1d0012ef5a02",                "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1716100000/properties/lekki-3bed-living.jpg",                "metadata": {                  "tag": "Living room"                }              }            ],            "videos": []          }        },        "type": "rent_payment",        "status": "completed",        "amount": 4500000,        "currency": "NGN",        "parties": {          "from": "663d9a1c5e4b2a0012cd7f10",          "to": "6629e4f08a7b3c0012aa9e42"        },        "paymentMethod": "bank_transfer",        "paymentGateway": "pandascrow",        "paymentReference": "HLH-ESC-20261125-0042",        "auditTrail": [          {            "_id": "6661b3e58d4f6c0012ef9a43",            "action": "payment_received",            "actor": "663d9a1c5e4b2a0012cd7f10",            "timestamp": "2026-11-25T09:22:41.000Z"          }        ],        "createdAt": "2026-11-25T09:20:05.112Z",        "updatedAt": "2026-11-25T09:22:41.310Z",        "__v": 0      }    ],    "pagination": {      "page": 1,      "limit": 20,      "total": 1,      "pages": 1    }  }}