Skip to Content
HomeLink Hub
Earnings & Payouts

Send a completed earning to my bank account

POST
/api/v1/earnings/{id}/dispatch

Access: Bearer token required.

Pays out one item from the GET /earnings feed to the payout account saved on the caller's profile, by Pandascrow bank transfer. source must match the item's source, and the item must belong to the caller and be completed: for escrow/shortlet the caller is the escrow's seller and its status is completed; for commission the caller is the listing agent of a completed purchase escrow; for inspection the caller is the agent of a paid inspection whose status is completed.

Each earning maps to a fixed idempotency key, so it can only be paid once: a payout that is already success or processing for that earning returns 409, while one that is pending or failed is re-sent under the same key. This matters for sales: when the escrow was opened with the seller's bank account, Pandascrow pays the seller directly on release and that transfer is recorded as a processing payout, so dispatching the same escrow returns 409 until the release is reported as failed. A new or retried payout must also fit within the available wallet balance.

For escrow and shortlet the call also triggers the escrow's other disbursements (the listing agent's commission, and the platform fee when auto-sweep is on); those payouts are appended to the response after the caller's own. The transfer is synchronous and no notification or socket event is sent.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Path Parameters

id*string

The earning's _id from the GET /earnings feed: an escrow transaction ObjectId, an inspection ObjectId, or <escrowId>-commission for commission rows (the suffix is stripped).

Request Body

application/json
  1. body
source*string

Which stream the earning belongs to: escrow, shortlet, commission or inspection. Use the feed item's source.

Response Body

The transfer for the caller's share was accepted. data is an array of payouts; the first is always the caller's own (purpose: seller_proceeds, agent_commission or inspection_fee). For escrow/shortlet it may be followed by the escrow's agent_commission and platform_fee payouts, which can individually be failed without failing the request.

application/json
  1. response
status*integer
success*boolean
message*string
data*array<>
Example Request
curl -X POST 'http://localhost:4000/api/v1/earnings/string/dispatch' \  -H 'Content-Type: application/json' \  -d '{  "source": "commission"}'
Example Response
{  "status": 200,  "success": true,  "message": "Funds dispatched successfully",  "data": [    {      "_id": "66601b7e9b1d4a0012ab4a10",      "purpose": "agent_commission",      "amount": 2250000,      "currency": "NGN",      "status": "success",      "transactionRef": "PNDS-PAYOUT-51C07E2B",      "failureReason": null,      "createdAt": "2026-11-25T09:12:40.118Z"    }  ]}