Payments

Record a payment on a booking (captain)

post/api/v1/bookings/{id}/payments

Request

  • Base URL: http://localhost:3002
  • URL: http://localhost:3002/api/v1/bookings/{id}/payments
  • Auth: HTTP bearer

Path parameters

idstring required

Headers

Idempotency-Keystring uuid

Client-supplied UUID v4. Repeat requests with the same key return the cached response.

Request body

type'DEPOSIT' | 'BALANCE' | 'TIP' required
amountinteger required
method'CASH' | 'CHECK' | 'CONNECTED_CARD' required
notestring
connectedPaymentMethodIdstring nullable
source'CASH' | 'CHECK' | 'VENMO' | 'ZELLE' | 'PAYPAL' | 'OTHER' | 'null' nullable

Response

Created

Changes

No recorded changes to this operation across all 1 revision of this API.