/leadsql

GraphQL endpoint for leads

GraphQL schema:

schema {
    query: leadQuery
}

type LeadGraphQLTO {
    leadType: LeadType
    uid: String
    propertyUid: String
    checkInDateTimeString: String
    checkOutDateTimeString: String
    status: Lead.Status
    source: Lead.Source
  
    //nullables:
    bookedDateTimeString: String
    externalBookingID: String

    //guest info:
    firstName: String
    lastName: String
    adultCount: Int
    petCount: Int
    childrenCount: Int
    infantCount: Int
    riskScore: Int
    notes: String
    email: String
    phoneNumber: String
    flightNumber: String
    reasonForTrip: String
    preferredCurrency: String
    preferredLocale: String
    city: String
    countdown: [CountDownGraphQLTO]
    order: [OrderGraphQLTO]
    state: String
    hasCompletedPreArrivalForm: Boolean
    agreementSigned: Boolean
    assignee: [AssigneeGraphQLTO]
    property: [PropertyGraphQLTO]
}

type OrderGraphQLTO {
    uid: String
    creationDateTimeString: String
    securityDeposit: BigDecimal
    rateMultiplier: BigDecimal
    force100PercentPaymentAtReservation: Boolean
    currency: Currency
    fees: [FeesGraghQLTO]
    totalGrossOrderValue: BigDecimal
}

type FeesGraghQLTO {
    fees{
       name,
       grossAmount
        }
    allFeesGrossAmount
}

type CountDownGraphQLTO {
    countingDown
    nextStatus
    countdownPercentage
    overdue
}

type AssigneeGraphQLTO {
uid,
    firstName
    lastName
    bestProfile
    email
    type
}

type PropertyGraphQLTO{
    name,
    uid,
    pictureLink
}

type leadQuery {
    leads(agencyUid: String): [LeadGraphQLTO]
    leads(propertyUid: String): [LeadGraphQLTO]
    leads(propertyUids: ["propertyUid1", "propertyUid2"]: [LeadGraphQLTO]
}
Language
Authentication
Header
Click Try It! to start a request and see the response here!