{
"type": "object",
"properties": {
"detail": {
"type": "object",
"properties": {
"title": {"type": "string"},
"firstName": {"type": "string"},
"lastName": {"type": "string"},
"phone": {"type": "string"},
"email": {"type": "string"},
"sex": {"type": "string"},
"occupation": {"type": "string"},
"country": {"type": "string"},
"state": {"type": "string"},
"address1": {"type": "string"},
"address2": {"type": "string"},
"city": {"type": "string"}
}
},
"errorCode": {"type": "integer"},
"errorMessage": {"type": "string"}
}
}
curl --location --request GET 'https://guestapi.roomability.io/Guest/Detail?email=goodguest@gmail.com' \
--header 'X-API-Key: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{}'{
"detail": {
"title": "Mr.",
"firstName": "Good",
"lastName": "Guest",
"phone": "08030000000",
"email": "goodguest@gmail.com",
"sex": "Male",
"occupation": "Lawyer",
"country": "Nigeria",
"state": "Lagos",
"address1": "",
"address2": "Admiralty Way",
"city": "Lekki"
},
"errorCode": 0,
"errorMessage": "Guest detail retrieved successfully."
}