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

# CRF booking and deposits

> Retrieve Calendly booking details and record optional Stripe or PayPal appointment deposits.

The [Custom Reservation Flow](https://viewerdocs.planpoint.io/payments.md#custom-reservation-flow-crf) is an appointment workflow, not unit checkout. These endpoints are **Public**: no Planpoint bearer token is required, but project/provider configuration is checked.

An appointment deposit does not create a unit reservation or change inventory availability. With a configured deposit amount of zero, skip payment creation. Do not substitute the project's regular unit-checkout fee.

## Get Calendly booking details

`POST /api/crf/calendly-booking`

| JSON field | Required | Description |
| - | - | - |
| `projectId` | Yes | Project with Calendly configured. |
| `eventUri` | Yes | `https://api.calendly.com/scheduled_events/{uuid}` from the booking. |
| `inviteeUri` | Yes | `https://api.calendly.com/scheduled_events/{uuid}/invitees/{uuid}`, belonging to that event. |

```json Request theme={null}
{
  "projectId": "000000000000000000000001",
  "eventUri": "https://api.calendly.com/scheduled_events/00000000-0000-4000-8000-000000000001",
  "inviteeUri": "https://api.calendly.com/scheduled_events/00000000-0000-4000-8000-000000000001/invitees/00000000-0000-4000-8000-000000000002"
}
```

```json Response (200) theme={null}
{
  "name": "Example Buyer",
  "email": "buyer@example.com",
  "startTime": "2026-11-30T12:00:00.000Z",
  "location": "Online Meeting"
}
```

This retrieves an existing booking using the project's provider connection; it does not create one. Responses have `Cache-Control: no-store`. Location is the physical address/location label, `TBD`, `Online Meeting`, or `Online`, as available; a meeting join URL is not returned.

Errors: `400` invalid/mismatched booking URIs, `404` Calendly not configured, `502` failed/incomplete provider lookup, and `500` server failure.

## Create a Stripe deposit PaymentIntent

`POST /api/crf/create-deposit-intent`

| JSON field | Required | Description |
| - | - | - |
| `projectId` | Yes | Project ID. |
| `name` | No | Buyer name, up to 120 characters. |
| `email` | No | Valid email, up to 200 characters. Omit rather than sending an empty string. |
| `units` | No | Text describing the selected units, up to 400 characters; not an array of inventory IDs. |

```json Request theme={null}
{
  "projectId": "000000000000000000000001",
  "name": "Example Buyer",
  "email": "buyer@example.com",
  "units": "A-101, A-102"
}
```

```json Response (200) theme={null}
{ "clientSecret": "<PAYMENT_INTENT_CLIENT_SECRET>" }
```

The project must have Calendly configured, a positive deposit, and an onboarded Stripe merchant connection. The server resolves the deposit amount, currency, and merchant from the project/owner; no client amount is accepted.

Confirm this card PaymentIntent using Stripe.js in the connected account. The [Connect webhook](https://viewerdocs.planpoint.io/api-documentation/payments/webhooks.md#stripe-connect-webhook) records a CRF deposit when payment succeeds. Creation alone is not a paid deposit.

Errors: `400` invalid fields, no positive deposit, or no connected Stripe account; `404` project/flow unavailable; and `500` unable to start payment.

## Verify a captured PayPal order

`POST /api/crf/verify-paypal-order`

Required fields are `projectId` and `orderId` (1-64 characters). Optional `name`, `email`, and `units` use the same limits and meanings as Stripe deposits above.

```json Request theme={null}
{
  "projectId": "000000000000000000000001",
  "orderId": "EXAMPLEPAYPALORDER",
  "name": "Example Buyer",
  "email": "buyer@example.com",
  "units": "A-101"
}
```

```json Response (200) theme={null}
{ "verified": true }
```

Capture the order using the project's PayPal client integration first. This endpoint does not create or capture an order: it retrieves the order using the owner's provider connection, requires `COMPLETED`, and checks the first capture's amount and currency against the configured deposit. A verified order creates or updates the deposit record keyed by order ID.

Errors: `400` invalid fields, no positive deposit, no PayPal connection, incomplete order, or amount/currency mismatch; `404` project/flow unavailable; and `500` unable to verify payment.

Read recorded deposits through [GET /crf/deposits](https://viewerdocs.planpoint.io/api-documentation/payments/transactions.md#list-recorded-payments). A successful appointment booking alone is not a recorded payment.


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