> ## 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.

# Payments API

> Customer payment connections, unit checkout, temporary holds, deposits, and transaction reporting.

These endpoints cover payments made **to a Planpoint customer's merchant account**. They do not describe the customer's subscription to Planpoint, subscription invoices, or private administrative operations.

For dashboard configuration, see [Payments](https://viewerdocs.planpoint.io/payments.md). For buyer accounts, see the [Portal API](https://viewerdocs.planpoint.io/api-documentation/portal/overview.md).

## Access and identifiers

Use `https://app.planpoint.io/api` and JSON unless an endpoint says otherwise. IDs for Planpoint records are 24-character hexadecimal strings.

| Access label | Meaning |
| - | - |
| Public | No Planpoint bearer token required. Project/provider configuration and validation still apply. |
| Portal buyer | `Authorization: Bearer <PORTAL_TOKEN>` from Portal login. |
| Customer dashboard | `Authorization: Bearer <DASHBOARD_TOKEN>` from [customer login](https://viewerdocs.planpoint.io/api-documentation/endpoint/user/login.md), with the permissions stated on each endpoint. |
| Hold token | The opaque `holdToken` returned when that hold was created. A Portal JWT is not a substitute. |
| Provider only | A signed callback from Stripe or Paystack, not an API to call from a buyer's browser. |

In payment requests, `userId` usually means the **project owner's customer-account ID**, not the buyer. `portalUserId` is the buyer's Portal ID. Paystack payment-success names the owner's field `user` instead of `userId`.

## Unit checkout is not an appointment deposit

1. Resolve the owner's public payment-account identifiers.
2. If the project enables temporary holds, acquire a hold and retain its token.
3. Start Stripe checkout or obtain a Paystack price quote.
4. Confirm payment through the provider's client SDK.
5. Check provider status and allow server-side completion to record the reservation.
6. Read the saved reservation/transaction separately. Release an abandoned hold with its hold token.

A successful provider charge, inventory marked `Reserved`, and a saved reservation are separate results. A `200` webhook acknowledgement or a Portal activity event does not prove all of them exist.

CRF (Custom Reservation Flow) instead combines Calendly booking with an optional appointment deposit. A CRF deposit does not reserve a unit. When the configured deposit is zero, skip payment creation.

## Amounts and retries

Stripe unit checkout calculates the charge from stored project/item settings. The submitted `amount` is not authoritative. Paystack's quote supplies the current amount, currency, and an opaque signed `priceQuote` to preserve in provider metadata.

Checkout and quote response amounts are in **major currency units**. Paystack session-status returns its provider amount in **minor units**. The references below label these explicitly.

There is no documented client idempotency-key header for payment creation. Do not blindly retry a creation or charge after a timeout. Check the existing provider transaction first; contact support if payment and reservation records disagree.

> [!WARNING]
>
> These are not sandbox URLs. Even a GET can refresh stored provider settings or create a payout session. Do not execute payment examples until support has confirmed the test project, merchant account, and provider test mode. Never place provider secret keys or returned client secrets in public code or logs.

## Endpoint reference

| Area | Operations |
| - | - |
| [Checkout and status](https://viewerdocs.planpoint.io/api-documentation/payments/checkout.md) | `POST /get-payment-account`, `POST /stripe/create-checkout-session`, `POST /stripe/session-status`, `POST /paystack/quote`, `POST /paystack/payment-success`, `POST /paystack/session-status` |
| [Temporary holds](https://viewerdocs.planpoint.io/api-documentation/payments/holds.md) | `POST /units/{id}/reserve-temp`, `POST /commercialSpaces/{id}/reserve-temp`, `POST /units/{id}/reset-availability`, `POST /commercialSpaces/{id}/reset-availability`, restricted `POST /units/{id}/pre-reserve` |
| [Stripe connection](https://viewerdocs.planpoint.io/api-documentation/payments/connections.md) | `POST /stripe/connect`, `POST /stripe/oauth-start`, `POST /stripe/oauth-complete`, `GET /stripe/account-status`, `GET /stripe/create-payouts-session` |
| [CRF booking and deposits](https://viewerdocs.planpoint.io/api-documentation/payments/crf.md) | `POST /crf/calendly-booking`, `POST /crf/create-deposit-intent`, `POST /crf/verify-paypal-order` |
| [Transactions and live board](https://viewerdocs.planpoint.io/api-documentation/payments/transactions.md) | `GET /crf/deposits`, `POST /payments/transactions`, `GET /live-board` |
| [Provider callbacks](https://viewerdocs.planpoint.io/api-documentation/payments/webhooks.md) | `POST /stripe/webhook-connect`, `POST /paystack/webhook` |

Unsupported methods generally return `405`. Errors use `message` or `error` depending on the endpoint; always inspect the HTTP status first. Common errors include invalid input (`400`), missing authentication (`401`), denied access (`403`), missing resources (`404`), and provider/server failures (`500`). Specific exceptions appear on each page.


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