parking67 Ops

Parking API

Parking lots, bookings, occupancy, providers, and session pricing.

Queries

QUERY

adminListParkingBookings

#

List all parking bookings (admin view). When statuses is provided the server filters in-DB; omitting it returns every booking.

Argumente

  • statuses[!]
  • pagination
Gibt zurück!
QUERY

adminListParkingLots

#

List all parking lots (admin view). statuses and search (case-insensitive substring on name/address/slug) are applied in-DB; both default to "no filter" when omitted.

Argumente

  • statuses[!]
  • searchString
  • pagination
Gibt zurück!
QUERY

adminParkingBooking

#

Get a parking booking by ID (admin view).

Argumente

  • id!
Gibt zurück
QUERY

adminParkingLot

#

Get a parking lot by ID (admin view).

Argumente

  • id!
Gibt zurück
QUERY

adminParkingOverviewKpis

#

Roll-up counters for the parking admin overview dashboard. Revenue is filtered by currency; bookings/lots/customers are tenant-wide.

Argumente

  • currencyString!
Gibt zurück!
QUERY

browseNearbyLots

#

Browse nearby parking lots.

Argumente

  • input!
  • pagination
Gibt zurück!
QUERY

cancellationPolicies

#

List all cancellation policies.

Argumente

  • pagination
Gibt zurück!
QUERY

cancellationPolicy

#

Get a cancellation policy by ID.

Argumente

  • id!
Gibt zurück
QUERY

durationOption

#

Get a duration option by ID.

Argumente

  • id!
Gibt zurück
QUERY

durationOptions

#

List all duration options.

Argumente

  • pagination
Gibt zurück!
QUERY

getMyProvider

#

Get the current provider's profile.

Gibt zurück!
QUERY

myActiveBookings

#

Get active (confirmed/in-progress) bookings for the provider.

Argumente

  • lotId
  • pagination
Gibt zurück!
QUERY

myBookingExtensions

#

List the extensions for one of the caller's bookings, most recent first. Ownership-checked: the booking must belong to the calling account. This is how a client discovers a provider-approved extension (status Approved = awaiting payment) so it can charge it via payParkingExtension — read id to pass to the mutation, status to know whether it is awaiting payment vs Paid/Pending/Rejected/Expired, and additionalPrice to show the amount.

Argumente

  • bookingId!
Gibt zurück[!]!
QUERY

myBookingHistory

#

Get booking history (past/completed bookings) for the provider.

Argumente

  • filter
  • pagination
Gibt zurück!
QUERY

myBookingRequests

#

Get pending booking requests for the provider.

Argumente

  • filter
  • pagination
Gibt zurück!
QUERY

myEarnings

#

Get provider's earnings summary.

Gibt zurück!
QUERY

myExtensionRequests

#

Get pending extension requests for the provider.

Argumente

  • pagination
Gibt zurück!
QUERY

myLot

#

Get a specific lot's full details.

Argumente

  • lotId!
Gibt zurück!
QUERY

myLots

#

Get the provider's parking lots.

Argumente

  • pagination
Gibt zurück!
QUERY

myParkingBooking

#

Get a specific booking by ID.

Argumente

  • bookingId!
Gibt zurück!
QUERY

myParkingBookingByCode

#

Get a booking by its code.

Argumente

  • bookingCodeString!
Gibt zurück!
QUERY

myParkingBookings

#

Get the current user's bookings.

Argumente

  • filter
  • pagination
Gibt zurück!
QUERY

myPerformanceMetrics

#

Get provider's performance metrics.

Gibt zurück!
QUERY

parkingBookingQuote

#

Quote the total price of a prospective parking booking without creating it. Returns the base rate, service fee, tax, and grand total the customer would be charged for the given lot, duration option, and vehicle — identical to what createParkingBooking charges for the same inputs. Read-only: it holds no capacity and creates no booking.

Argumente

  • lotId!
  • durationOptionId!
  • vehicleType!
  • vehicleSize
  • couponCodeString

    Optional promotion coupon code to preview. When present and valid, `total` reflects the discount and `discount` is populated; otherwise `couponError` explains why it wasn't applied.

Gibt zurück!
QUERY

parkingFeature

#

Get a parking feature by ID.

Argumente

  • id!
Gibt zurück
QUERY

parkingFeatures

#

List all parking features. Paginated admin surface — limited to TenantAdmin (for their own tenant) and PlatformAdmin. Regular authenticated users that previously hit this endpoint must migrate to the public surface (per-lot feature lists or the upcoming public catalog query); the bare admin endpoint must not be reachable from client apps.

Argumente

  • pagination
Gibt zurück!
QUERY

parkingLotById

#

Get parking lot details by ID.

Argumente

  • lotId!
Gibt zurück!
QUERY

parkingLotBySlug

#

Get parking lot details by slug.

Argumente

  • slugString!
Gibt zurück!
QUERY

parkingProvider

#

Get a parking provider by ID.

Argumente

  • id!
Gibt zurück
QUERY

parkingProviders

#

List all parking providers.

Argumente

  • pagination
Gibt zurück!
QUERY

parkingServiceHealth

#

Service health check query.

Gibt zurückString!
QUERY

tenantParkingFeatures

#

Public catalog of enabled parking features for the current tenant — drives the filter sheet and the "add spot" facility picker in the client app. Returns the full list (no pagination) since these UIs render every option inline. The paginated admin endpoint (parkingFeatures) is role- guarded; this is the sibling clients call instead.

Gibt zurück[!]!

Mutations

MUTATION

acceptBooking

#

Accept a booking request.

Argumente

  • bookingId!
Gibt zurück!
MUTATION

acceptExtension

#

Accept an extension request.

Argumente

  • extensionId!
Gibt zurück!
MUTATION

approveParkingProvider

#

Approve a parking provider application.

Argumente

  • providerId!
Gibt zurück!
MUTATION

cancelParkingBooking

#

Cancel a parking booking.

Argumente

  • input!
Gibt zurück!
MUTATION

confirmParkingBooking3ds

#

Confirm a parking booking's payment after the customer completes client-side authentication (3DS) for the initial authorization. Called when the initial confirmParkingBookingPayment returned a paymentObject requiring action and left the booking in PaymentPending. On a successful hold the booking transitions PaymentPending -> Confirmed with paymentStatus = Authorized (funds held; captured later at exit). If the payment still requires action, the booking stays PaymentPending and a fresh paymentObject is returned.

Argumente

  • input!
Gibt zurück!
MUTATION

confirmParkingBookingPayment

#

Confirm payment for an approved parking booking. This authorizes (holds) the payment amount on the customer's payment method. The booking status changes from Approved to Confirmed (or PaymentPending if 3DS required). The payment is captured later when the booking is completed (vehicle exits).

Argumente

  • input!
Gibt zurück!
MUTATION

confirmParkingExtension3ds

#

Confirm a parking extension's payment after the customer completes client-side authentication (3DS) for the initial authorization. Called when payParkingExtension returned a paymentObject requiring action and left the extension Approved with a stored payment attempt. On a successful hold the extension is applied (Approved -> Paid, booking extended, order total synced). If it still requires action, the extension stays Approved and a fresh paymentObject is returned.

Argumente

  • input!
Gibt zurück!
MUTATION

createCancellationPolicy

#

Create a new cancellation policy.

Argumente

  • input!
Gibt zurück!
MUTATION

createDurationOption

#

Create a new duration option.

Argumente

  • input!
Gibt zurück!
MUTATION

createParkingBooking

#

Create a new parking booking request. Tenant admins may pass customerId in the input to dispatch on behalf of another account; non-admin callers always book for themselves.

Argumente

  • input!
Gibt zurück!
MUTATION

createParkingFeature

#

Create a new global parking feature.

Argumente

  • input!
Gibt zurück!
MUTATION

createParkingLot

#

Create a new parking lot. Tenant admins may pass providerId in the input to create the lot under another provider; non-admin callers always create under their own provider.

Argumente

  • input!
Gibt zurück!
MUTATION

deleteCancellationPolicy

#

Delete a cancellation policy.

Argumente

  • id!
Gibt zurückBoolean!
MUTATION

deleteDurationOption

#

Delete a duration option.

Argumente

  • id!
Gibt zurückBoolean!
MUTATION

deleteParkingFeature

#

Delete a parking feature.

Argumente

  • id!
Gibt zurückBoolean!
MUTATION

markNoShow

#

Mark a confirmed booking as no-show. This can be called when the customer didn't arrive within the allowed grace period after the scheduled start time.

Argumente

  • bookingId!
Gibt zurück!
MUTATION

parkingServicePing

#

Service health check mutation.

Gibt zurückString!
MUTATION

payParkingExtension

#

Pay for a provider-approved parking booking extension. Authorizes (holds) the extension charge (parking rate + service fee + tax) on the customer's payment method. On an immediate hold the extension is applied: the booking's end time and total grow, the parent order total is synced, and the extension moves Approved -> Paid. If the PSP requires 3DS, a paymentObject is returned and the extension stays Approved so the client can finish via confirmParkingExtension3ds.

Argumente

  • input!
Gibt zurück!
MUTATION

recordEntry

#

Record vehicle entry for a confirmed booking. This transitions the booking from Confirmed to InProgress status and records the actual entry time.

Argumente

  • bookingId!
Gibt zurück!
MUTATION

recordExit

#

Record vehicle exit for an in-progress booking. This transitions the booking from InProgress to Completed status and records the actual exit time.

Argumente

  • bookingId!
Gibt zurück!
MUTATION

registerParkingProvider

#

Register as a parking provider. Tenant admins may pass accountId in the input to register on behalf of another account; non-admin callers always register themselves regardless of the override.

Argumente

  • input!
Gibt zurück!
MUTATION

rejectBooking

#

Reject a booking request.

Argumente

  • input!
Gibt zurück!
MUTATION

rejectExtension

#

Reject an extension request.

Argumente

  • input!
Gibt zurück!
MUTATION

rejectParkingProvider

#

Reject a parking provider application.

Argumente

  • input!
Gibt zurück!
MUTATION

requestParkingExtension

#

Request an extension for an active booking.

Argumente

  • input!
Gibt zurück!
MUTATION

setLotCapacity

#

Set lot capacity by vehicle type. Authorization: provider owner or tenant admin.

Argumente

  • input!
Gibt zurück[!]!
MUTATION

setLotFeatures

#

Set lot features. Authorization: provider owner or tenant admin.

Argumente

  • input!
Gibt zurück[!]!
MUTATION

setLotHours

#

Set lot operating hours. Authorization: provider owner or tenant admin.

Argumente

  • input!
Gibt zurück[!]!
MUTATION

setLotRates

#

Set lot rates. Authorization: provider owner or tenant admin.

Argumente

  • input!
Gibt zurück[!]!
MUTATION

submitParkingReview

#

Submit a review for a completed booking.

Argumente

  • input!
Gibt zurück!
MUTATION

updateCancellationPolicy

#

Update an existing cancellation policy.

Argumente

  • input!
Gibt zurück!
MUTATION

updateDurationOption

#

Update an existing duration option.

Argumente

  • input!
Gibt zurück!
MUTATION

updateParkingFeature

#

Update an existing parking feature.

Argumente

  • input!
Gibt zurück!
MUTATION

updateParkingLot

#

Update a parking lot. Tenant admins can update any lot in the tenant; providers can only update their own.

Argumente

  • input!
Gibt zurück!

Subscriptions

SUBSCRIPTION

parkingUserEvents

#

Subscribe to parking user events (Parking service) Receive real-time events relevant to parking users: - Reservation confirmations - Session updates - Expiry warnings - Notifications **Requirements:** - Must be authenticated - Must have Customer role - Must be using Parking app

Gibt zurück!