Get earnings summary and feed
Access: Bearer token required.
Everything the earnings screen needs in one call: lifetime totals, the wallet balance and a merged, paginated feed of the caller's earnings, newest first. Four streams feed it, each tagged with source: escrow (escrows where the caller is the seller, any status), shortlet (the same, when the property type is SHORTLET), commission (completed purchase escrows where the caller is the listing agent; these rows have _id = <escrowId>-commission) and inspection (paid inspections assigned to the caller as agent).
Amounts come from the values snapshotted on each record when it was created, so later fee changes never restate history. grossAmount is what the buyer paid, netAmount what the caller earns; for a seller it is already net of the platform fee and of any agent commission. Item status is the escrow status (pending, funded, completed, disputed, cancelled); inspection rows are reported as completed when the inspection is completed and funded otherwise. payout is the latest bank transfer recorded for that earning (status: pending, processing, success, failed) or null.
In summary, totalNet, pendingNet and bySource come from the wallet ledger (totalNet = completed seller proceeds + completed purchase commissions + fees on paid inspections; pendingNet is seller proceeds still pending or funded), while totalGross, totalPlatformFees, completedCount and thisMonthNet count completed feed items (this month is judged by the item's creation date). The feed is assembled in memory and then sliced, so pagination.total counts all items; limit has no upper bound. Any authenticated user may call this; users with no earnings get zeros and an empty feed.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
page?integer1-based page of the merged feed. Non-numeric or 0 falls back to 1.
1limit?integerFeed page size. Non-numeric or 0 falls back to 20; no maximum is enforced.
20Summary, wallet and one page of the feed. property and counterparty are populated objects (property: title, type, location, media, pricing; counterparty: firstName, lastName, avatar) or null when the referenced record is gone.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X GET 'http://localhost:4000/api/v1/earnings'{ "status": 200, "success": true, "message": "Earnings fetched successfully", "data": { "summary": { "totalNet": 43125000, "totalGross": 45828600, "totalPlatformFees": 453600, "pendingNet": 1485000, "thisMonthNet": 42750000, "completedCount": 5, "currency": "NGN", "bySource": { "escrow": 42750000, "commission": 0, "inspection": 15000, "shortlet": 360000 } }, "wallet": { "available": 375000, "withdrawn": 42750000, "processing": 0, "pending": 1485000, "currency": "NGN" }, "transactions": [ { "_id": "665f1c2e9b1d4a0012ab34cd", "source": "escrow", "property": { "_id": "665e0a7b9b1d4a0012ab1f02", "title": "4 Bedroom Duplex, Lekki Phase 1", "type": "HOUSE", "location": { "state": "Lagos", "lga": "Eti-Osa", "community": "Lekki Phase 1", "street": "12 Admiralty Way", "coordinates": { "type": "Point", "coordinates": [ 3.4723, 6.4474 ] } }, "media": { "images": [ { "_id": "665e0a7b9b1d4a0012ab1f05", "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1717400000/properties/duplex-front.jpg", "metadata": { "tag": "Exterior" } } ], "videos": [] }, "pricing": { "rentPrice": null, "salePrice": 45000000, "currency": "NGN", "rentDurationYears": 1 } }, "counterparty": { "_id": "665d9f3a9b1d4a0012ab0e11", "firstName": "Chinedu", "lastName": "Okafor", "avatar": "https://res.cloudinary.com/homelinkhub/image/upload/v1717300000/avatars/chinedu.jpg" }, "transactionType": "purchase", "status": "completed", "grossAmount": 45450000, "platformFee": 450000, "agentCommission": 2250000, "netAmount": 42750000, "currency": "NGN", "reference": "PNDS-TRX-8F3A21C9D0", "completedAt": "2026-11-24T14:03:31.207Z", "createdAt": "2026-11-20T10:31:05.412Z", "payout": { "_id": "66601b7e9b1d4a0012ab4a10", "status": "success", "amount": 42750000, "transactionRef": "PNDS-PAYOUT-51C07E2B", "failureReason": null, "processedAt": "2026-11-24T14:05:02.000Z" } } ], "pagination": { "page": 1, "limit": 20, "total": 7, "pages": 1 } }}List escrow payments for one of my properties GET
Seller view of a property's deals: returns every escrow transaction recorded against the property, newest first, with the buyer populated (firstName, lastName, email, avatar).
Get wallet balance GET
Returns the caller's wallet figures and the payout account saved on their profile.
HomeLink Hub