Skip to main content
GET
Get Bookings During Pause Period

Get Bookings During Pause Period

Returns a summary of the customer’s bookings that fall within a proposed pause period. Use this endpoint in the pause flow to warn the customer about any existing bookings that will be affected — specifically those that have not yet been charged, invoiced, or paid.

Authentication

This endpoint requires an authenticated customer session.

Query Parameters

string
required
ISO 8601 datetime string for the start of the proposed pause period. This is typically the earliest pause date returned by the pause metadata endpoint.
string
required
ISO 8601 datetime string for the end of the proposed pause period. This is computed from the selected number of pause cycles.

Response

Returns a PauseBooking object summarising booking counts within the date range.
number
Total number of bookings within the proposed pause period.
number
Number of bookings that have not yet been charged.
number
Number of bookings that have not yet been invoiced.
number
Number of bookings whose invoices have not yet been paid.

Example Response

Usage in Portal

Called inside the pause modal each time the customer changes the number of pause cycles, so the warning counts stay in sync with the selected date range.
  • File: src/views/user/plans/components/PauseContractModal.tsx

Typical integration pattern

  • GET /api/public/billing/coworkerContracts/{contractId}/pause/meta – Get pause eligibility and available date options
  • PUT /api/public/billing/coworkerContracts/v2/{contractId}/pause – Submit the pause request

Error Responses

error
The current user is not authenticated.
error
Missing or invalid start/end parameters.