---
title: "Record a payment on a rental (boat owner)"
method: POST
path: "/api/v1/rentals/{rentalId}/payments"
tags: ["Rental Payments"]
---

# Record a payment on a rental (boat owner)

`POST /api/v1/rentals/{rentalId}/payments`

## Request

- Base URL: `http://localhost:3002`
- URL: `http://localhost:3002/api/v1/rentals/{rentalId}/payments`
- Auth: HTTP bearer

## Path parameters

- `rentalId` string, required

## Headers

- `Idempotency-Key` string, uuid: Client-supplied UUID v4. Repeat requests with the same key return the cached response.

## Request body

- object
  - `type` 'RENTAL_DEPOSIT' | 'RENTAL_BALANCE' | 'SECURITY_AUTHORIZATION' | 'SECURITY_CAPTURE', required
  - `amount` integer, required
  - `method` 'CASH' | 'CHECK' | 'CONNECTED_CARD', required
  - `note` string
  - `connectedPaymentMethodId` string, nullable
  - `source` 'CASH' | 'CHECK' | 'VENMO' | 'ZELLE' | 'PAYPAL' | 'OTHER' | 'null', nullable

## Response `201`

Created

- object
  - `data` object, required
    - `paymentId` string, required

## Other responses

- `400`: Request body or query parameters failed validation.
- `401`: Authentication required, or the bearer token is missing or invalid.
- `404`: The requested resource does not exist (existence is not leaked).
- `409`: Idempotency-Key was reused with a different request body

---

[API](https://skmtc.dev/chartercaptain/apis/charter-captain-api.md) · [All operations](https://skmtc.dev/chartercaptain/apis/charter-captain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chartercaptain/apis/charter-captain-api/revisions/1ffea1113adb?raw)
