OpenApi
    • Branches
      • List active branches
        GET
      • Get a branch's service tree
        GET
    • Services
      • Get available appointment slots
        GET
    • Tickets
      • Book a ticket (walk-in or appointment)
        POST
      • Fetch a ticket
        GET
      • Cancel a ticket
        POST
      • Reschedule an appointment
        POST
    • Customers
      • Create a customer
        POST
      • List customers (paginated)
        GET
      • Fetch one customer
        GET
      • Update a customer
        PUT
      • Delete a customer
        DELETE
      • List a customer's tickets
        GET
    • Schemas
      • SuccessEnvelope
      • PaginatedEnvelope
      • ErrorEnvelope
      • ValidationErrorEnvelope
      • AuthErrorEnvelope
      • Pagination
      • Branch
      • BranchTreeGroup
      • Service
      • Slot
      • Ticket
      • Customer
      • CustomerWriteRequest
      • CustomerUpdateRequest
      • BookTicketRequest
      • ChangeTimeRequest

    Ticket

    A ticket (walk-in or appointment). queueSize and waitingTime are present only while
    the ticket is waiting.

    {
        "id": "k7m2p9x4q1",
        "ticketNumber": "A042",
        "status": "waiting",
        "statusAt": "2026-06-23T11:10:00.000Z",
        "type": "appointment",
        "time": "2026-07-01T09:30:00.000Z",
        "branch": {
            "id": "802b33af66",
            "name": "Seef Mall Branch"
        },
        "service": {
            "id": "802b33af66",
            "name": "Account Opening"
        },
        "groupOfService": {
            "id": "7c1f9a3b2d",
            "name": "Teller Services"
        },
        "customer": {
            "id": "9f2c8b7a4e1d6c3f0a5b8e2d7c4f1a9b",
            "name": "Layla Hassan"
        },
        "bookedAt": "2026-06-23T11:08:41.000Z",
        "queueSize": 6,
        "waitingTime": 18
    }
    Built with