post https://sandbox-api.hostfully.com/v2/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
rent: [RentGraphQLTO]
channelCommission
fees: [FeesGraghQLTO]
securityDeposit: BigDecimal
totalGrossOrderValue: BigDecimal
creationDateTimeString: String
rateMultiplier: BigDecimal
force100PercentPaymentAtReservation: Boolean
currency: Currency
}
type FeesGraghQLTO {
fees {
cleaningFee {
netAmount,
taxAmount,
grossAmount
},
otherFees {
grossAmount,
name
}
}
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]
}