Skip to main content

Overview

Marks a booking’s payment as confirmed by the partner. This endpoint is only available to partners with paymentResponsibility = PARTNER. When your partner account has PARTNER payment responsibility, your system is responsible for collecting payment from your customer. After successful payment collection on your side, call this endpoint to notify CleanLife that the booking has been paid. This transitions the booking’s paymentStatus from PENDING to PAID.

Endpoint

Authentication

Requires a valid API Key with the partner_bookings_confirm_payment permission.

Path Parameters


Request Body


Example Request


Success Response

HTTP Status: 200 OK

Error Responses


Business Rules

  1. PARTNER responsibility only. This endpoint is exclusively for partners configured with paymentResponsibility = PARTNER. If your account has CLEANOS responsibility, calling this endpoint returns 422 PAYMENT_RESPONSIBILITY_MISMATCH.
  2. Cannot confirm payment for cancelled or failed bookings. If the booking is in canceled or failed status, payment confirmation is rejected.
  3. Duplicate confirmation. Calling this endpoint again after payment is already confirmed returns 422 PAYMENT_ALREADY_CONFIRMED. Treat this as a successful no-op.
  4. Payment reference stored for reconciliation. The paymentReference you provide is stored with a confirmation timestamp for billing reconciliation between CleanLife and your organization.

Notes

  • Even if you do not have an external payment reference (e.g., for invoiced arrangements), you can call this endpoint with an empty body ({}) to confirm that payment has been arranged.
  • The paymentStatus in subsequent GET /partners/bookings/:bookingId/status responses will reflect PAID after this call.

  • GET /partners/bookings/:bookingId/status — Check current paymentStatus
  • PATCH /partners/bookings/:bookingId/cancel — Cancel the booking if payment fails