QA Car API

Use the API to test account approval, email verification, guest and account bookings, and payments.

Download the OpenAPI specification for endpoint contracts and authentication requirements.

  1. Register at POST /api/auth/register and await administrator approval.
  2. Log in at POST /api/auth/login. Approved, verified accounts receive accessToken, tokenType, and expiresIn. First login returns an OTP challengeId; submit it with the emailed code to POST /api/auth/otp/verify.
  3. Send Authorization: Bearer <accessToken> on authenticated requests. The website uses an HttpOnly cookie. Both methods follow the same role, account-status, and ownership rules.
  4. Use a unique Idempotency-Key when creating a booking or initiating a payment. Retain the key when retrying the same operation.
  5. Guest booking creation returns a guestAccessToken. Send it as X-Booking-Token to read, cancel, or pay for that booking.
  6. Booking totals come from the server. Seats are held for 15 minutes. The sandbox payment page appears only for sandbox attempts.

Administrative actions require an administrator session. Test-data cleanup is restricted to an owned test run when test tools are enabled. Detailed setup, fixtures, and migration instructions are in the repository README.

View website flows