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.
- Register at
POST /api/auth/registerand await administrator approval. - Log in at
POST /api/auth/login. Approved, verified accounts receiveaccessToken,tokenType, andexpiresIn. First login returns an OTPchallengeId; submit it with the emailed code toPOST /api/auth/otp/verify. - Send
Authorization: Bearer <accessToken>on authenticated requests. The website uses an HttpOnly cookie. Both methods follow the same role, account-status, and ownership rules. - Use a unique
Idempotency-Keywhen creating a booking or initiating a payment. Retain the key when retrying the same operation. - Guest booking creation returns a
guestAccessToken. Send it asX-Booking-Tokento read, cancel, or pay for that booking. - 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