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

    BookTicketRequest

    Ticket booking payload.
    Omit time → walk-in; customer optional.
    Include time → appointment; exactly one of customerId / customerExternalId
    is required, and time must be a future UTC ISO-8601 datetime (trailing Z).
    location, when provided, requires both lat and lng within valid ranges.

    {
        "serviceId": "6fe8fb8b12",
        "groupOfServiceId": "7c1f9a3b2d",
        "time": "2026-07-01T09:30:00.000Z",
        "customerId": "9f2c8b7a4e1d6c3f0a5b8e2d7c4f1a9b",
        "customerExternalId": "crm-7741",
        "options": {
            "accountType": "savings"
        },
        "location": {
            "lat": 26.2361,
            "lng": 50.5436
        }
    }
    Built with