> ## Documentation Index
> Fetch the complete documentation index at: https://viewerdocs.planpoint.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Transactions and live board

> Read recorded payments, enrich unit rows, and inspect inventory and buyer state.

All operations require **customer-dashboard authentication**, not a Portal buyer token. Results can contain personal information; restrict storage and display to authorized users. Examples below are synthetic.

## List recorded payments

`GET /api/crf/deposits`

Required query `projectId` identifies the project. Access is limited to its owner or direct project administrators/editors; this endpoint does not add the owner's team as a separate access path.

```bash theme={null}
curl 'https://app.planpoint.io/api/crf/deposits?projectId=000000000000000000000001' \
  -H 'Authorization: Bearer <DASHBOARD_TOKEN>'
```

```json Response (200) theme={null}
{
  "deposits": [{
    "_id": "000000000000000000000004",
    "date": "2026-11-27T12:00:00.000Z",
    "name": "Example Buyer",
    "email": "buyer@example.com",
    "units": "A-101",
    "amount": 100,
    "currency": "cad",
    "provider": "stripe",
    "status": "succeeded"
  }],
  "paidIntoStripeAccounts": ["acct_EXAMPLE"]
}
```

Despite the path and `deposits` key, this merges **CRF deposits and regular unit reservations**. Rows are sorted newest first. It retrieves at most 200 records from each source (up to 400 combined); there is no pagination parameter.

Amounts are in major units. Older records may omit amount/currency; name, email, and unit description can be empty strings. `paidIntoStripeAccounts` contains distinct connected account IDs recorded on the returned CRF deposits; it is not a complete account history for all reservations.

> [!WARNING]
>
> A cart payment can be recorded against multiple units with the same total payment amount. Do not sum reservation rows as if each row represented a distinct charge. This endpoint is a transaction display, not a settlement or reconciliation ledger.

Errors: `400` invalid project ID, `401` unauthenticated, `403` denied access, or `404` project not found.

## Get payment details for units

`POST /api/payments/transactions`

Required `projectId` and nonempty `unitIds` array identify the project and requested inventory. The caller must be the project owner, a project administrator/editor, or an administrator/editor on the owner's team.

```json Request theme={null}
{
  "projectId": "000000000000000000000001",
  "unitIds": ["000000000000000000000002"]
}
```

```json Response (200, reservations found) theme={null}
{
  "success": true,
  "units": [{
    "unitId": "000000000000000000000002",
    "name": "Example Buyer",
    "email": "buyer@example.com",
    "phone": null,
    "id": "000000000000000000000003",
    "reservationDate": "2026-11-27T12:00:00.000Z",
    "status": "succeeded",
    "payment": {
      "amount": 100,
      "currency": "cad",
      "provider": "stripe",
      "date": "2026-11-27T12:00:00.000Z"
    }
  }]
}
```

Only units with matching reservation records appear. `id` is the Portal buyer ID or `null`, not the unit ID. `payment` can be null; name/email can come from either the buyer or reservation.

When no reservations are found, the response deliberately has a different shape:

```json Response (200, no reservations) theme={null}
{ "success": true, "usersMap": {} }
```

Handle both shapes; do not assume `units` is always present.

This is a dashboard enrichment endpoint. It can fetch the first 100 Paystack transactions using the caller's provider connection and match the latest successful transaction by buyer email. In that case, `payment` has `amount`, `currency`, `reference`, and `date`; otherwise it uses recorded reservation data with optional `provider`. Amounts are in major units.

Email-based enrichment is not an exact transaction-to-unit reconciliation. Results do not promise the latest reservation when multiple records exist for one unit. Use provider references and saved records for reconciliation, not this display alone.

Errors use `error`: `400` invalid input, `401` unauthenticated, `403` denied access, `404` missing project, and `500` server failure.

## Get the live board

`GET /api/live-board`

Required query `projectId`. The caller must be the project owner or a direct project administrator/editor; the owner's team is not a separate access path here.

```json Response (200) theme={null}
{
  "projectName": "Example Project",
  "paymentsEnabled": true,
  "floors": [{
    "_id": "000000000000000000000007",
    "name": "Floor 1",
    "position": 0,
    "units": [{
      "_id": "000000000000000000000002",
      "name": "A-101",
      "availability": "Available",
      "price": 300000,
      "holder": null,
      "buyer": null,
      "reservationDate": null,
      "buyNow": false,
      "buyNowFee": 0
    }]
  }]
}
```

Units can additionally include `updatedAt` and `holdExpiresAt`. `holder` and `buyer`, when present, contain `name`, `email`, and nullable `phone`. Buyer information comes from the latest succeeded reservation.

For projects without a floor step, commercial spaces are grouped under a synthetic floor named `Units` whose `_id` is the project ID. For floor-based projects, amenities and parking entries are excluded.

Inventory availability, hold expiry, reservation date, and buyer presence are independent fields. The board is not a provider-payment verification endpoint.

Errors: `400` invalid project ID, `401` unauthenticated, `403` denied access, `404` missing project, and `500` failure.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.