Skip to main content

Reservations

Reservation details

GET /reservations/{id}

Get reservation details object.

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
pmsqueryQueryParamPMSfalsePMS integration name. If supplied, the API will assume the path parameter id is a confirmation code.
usepmsidquerystringfalseAssume id is the PMS reservation ID. Must be used with pms. (Default: false)
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
pmsapi
pmsapaleo
pmsbeds24
pmsbooking
pmscloudbeds
pmsguesty
pmshostaway
pmshostfully
pmsinforhms
pmsimpala
pmslavanda
pmsmyvr
pmsopera
pmssmartbnb
pmsstayntouch
pmsstreamline
pmstrackhs

Example responses

200 Response

{
"id": "string",
"user_id": "string",
"confirmation_code": "string",
"status": "string",
"source": "string",
"listing_id": "string",
"listing_nickname": "string",
"listing_timezone_name": "string",
"number_of_guests": 0,
"nights": 0,
"total_price": 0,
"average_daily_rate": 0,
"check_in_date": "string",
"check_out_date": "string",
"guest_portal_url": "string",
"guest": {
"first_name": "string",
"last_name": "string",
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"location": "string"
},
"identification": {
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"document_number": "string",
"document_type": "string",
"nationality": "string",
"sex": "string",
"address": "string",
"birth_date": "string",
"expiry_date": "string",
"issue_date": "string"
},
"created_at": "string",
"updated_at": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationDetailsResponse
400Bad RequestAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation update

PUT /reservations/{id}

Update reservation object

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
callbackqueryQueryParamCallbackfalseWebhook URL to post data back to once Screening AI finished analyzing the reservation.
syncqueryQueryParamSyncfalseExecution is asynchronous by default and the response, including reservation ID, will be returned via webhook when you supply the callback parameter. You can enable synchronous execution by setting sync=1, but it is discouraged when sending large amounts of requests.
skip_gpqueryQueryParamSkipGPfalseVerification analysis to proceed without dependence on Guest Portal completion. To be included for all reservations where the guest is not expected to complete the portal.
x-api-keyheaderstringfalseAPI Authentication Key
bodybodyReservationCreateRequestfalseJSON object with reservation details

Enumerated Values

ParameterValue
sync1
synctrue
skip_gp1
skip_gptrue

Body parameter

{
"guest": {
"first_name": "John",
"last_name": "Doe"
}
}

Example responses

200 Response

{
"id": "string",
"user_id": "string",
"confirmation_code": "string",
"status": "string",
"source": "string",
"listing_id": "string",
"listing_nickname": "string",
"listing_timezone_name": "string",
"number_of_guests": 0,
"nights": 0,
"total_price": 0,
"average_daily_rate": 0,
"check_in_date": "string",
"check_out_date": "string",
"guest_portal_url": "string",
"guest": {
"first_name": "string",
"last_name": "string",
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"location": "string"
},
"identification": {
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"document_number": "string",
"document_type": "string",
"nationality": "string",
"sex": "string",
"address": "string",
"birth_date": "string",
"expiry_date": "string",
"issue_date": "string"
},
"created_at": "string",
"updated_at": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationDetailsResponse
400Bad RequestAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

input_body = {
"guest": {
"first_name": "John",
"last_name": "Doe"
}
}

headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.put('https://data.autohost.ai/v1/reservations/{id}', json=input_body, headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';
const inputBody = {
"guest": {
"first_name": "John",
"last_name": "Doe"
}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}', {
method: 'put',
body: JSON.stringify(inputBody),
headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation summary

GET /reservations/{id}/summary

Get reservation verifications summary and details

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
pmsqueryQueryParamPMSfalsePMS integration name. If supplied, the API will assume the path parameter id is a confirmation code.
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
pmsapi
pmsapaleo
pmsbeds24
pmsbooking
pmscloudbeds
pmsguesty
pmshostaway
pmshostfully
pmsinforhms
pmsimpala
pmslavanda
pmsmyvr
pmsopera
pmssmartbnb
pmsstayntouch
pmsstreamline
pmstrackhs

Example responses

A reservation status object

{
"guest_portal_status": "COMPLETED",
"guest_portal_last_screen": "IDCheck",
"verification_composite_status": "review",
"verification_status": "review",
"verification_status_reason": "ID Check, Fraud Detection and Business Rules require your attention",
"risk_color": "yellow",
"top_risks": [
"High risk potential for fraud detected. You should only allow the guest to enter if you've spoken to the guest over the phone and have met them in person",
"Some fraud signals detected. Make sure to treat it carefully and manually review other information collected",
"Guest location was detected to be within 50 KM (30 miles) of the listing",
"Guest name does not match the name on the reservation",
"There are 1 reports for this user IP on Autohost Threat Intelligence with the following tags: 'spam' and 'suspicious'"
],
"top_recommendations": [
"Proceed to confirm the accuracy of all reservation details",
"Collect additional information about the guests, and the trip, that may have been unclear or undisclosed",
"Make sure the guests receive and acknowledge the house rules",
"For security purposes, make sure you have the guest's ID for your records"
],
"loyalty_segments": [
{
"guest_id": "guest@example.com",
"timestamp": "2026-02-17T12:00:00Z",
"segment": {
"name": "Loyal Active",
"tier": 1,
"description": "Frequent guest with consistent booking pattern",
"recommended_action": "Offer loyalty rewards and early access to new listings",
"offer_type": "loyalty_reward",
"priority": "HIGH"
},
"rfm_scores": {
"recency": 5,
"frequency": 4,
"monetary": 4,
"composite": "544"
},
"metrics": {
"days_since_last_stay": 22,
"last_stay_date": "2026-01-26",
"first_stay_date": "2024-08-10",
"total_stays": 6,
"total_revenue": 4200,
"total_nights": 18,
"avg_booking_value": 700,
"nights_equivalent": 3,
"customer_tenure_days": 556
},
"data_quality": {
"confidence": "HIGH",
"has_email": true,
"has_phone": true,
"is_ota_masked": false,
"identifier_type": "email"
},
"top_factors": [
{
"factor": "total_stays",
"value": 6,
"impact": "positive",
"description": "Above-average repeat booking count"
},
{
"factor": "days_since_last_stay",
"value": 22,
"impact": "positive",
"description": "Recent activity indicates engaged guest"
}
],
"flags": {
"is_corporate_account": false,
"is_ota_guest": false,
"has_future_booking": false,
"is_seasonal_guest": false
}
}
],
"details": {
"general_risk": {
"status": "PASS",
"value": "YELLOW"
},
"background_check": {
"status": "DISABLED",
"value": ""
},
"credit_check": {
"status": "DISABLED",
"value": ""
},
"blacklist": {
"status": "INCOMPLETE",
"value": ""
},
"payment_verification": {
"status": "INCOMPLETE",
"value": ""
},
"identification_document": {
"status": "REVIEW",
"value": "review",
"help": "Guest name does not match the name on the reservation"
},
"fraud_detection": {
"status": "REVIEW",
"value": "REVIEW",
"findings": [
"Email address appears on breach reports and leaked data dumps online. This could indicate other malicious parties are using this account to impersonate legitimate users.",
"Email address seems to belong to a disposable provider. These providers are often used to create fake accounts and bypass email validation.",
"The phone number does not seem to be registered at all. Check for typos, otherwise this may be a bogus number."
],
"help": "Manual review suggested"
},
"adverse_media": {
"status": "REVIEW",
"value": "REVIEW",
"findings": [
"Fraud or Financial Crime",
"Harassment",
"Discrimination"
],
"help": "Manual review suggested"
},
"social_verification": {
"status": "PASS",
"value": "13 accounts found"
},
"sanctions": {
"status": "INCOMPLETE",
"value": ""
},
"house_rules": {
"status": "INCOMPLETE"
}
},
"supervised_status": null
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation status objectReservationSummaryResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/summary', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/summary', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation status

GET /reservations/{id}/status

Get reservation status and verification details

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
pmsqueryQueryParamPMSfalsePMS integration name. If supplied, the API will assume the path parameter id is a confirmation code.
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
pmsapi
pmsapaleo
pmsbeds24
pmsbooking
pmscloudbeds
pmsguesty
pmshostaway
pmshostfully
pmsinforhms
pmsimpala
pmslavanda
pmsmyvr
pmsopera
pmssmartbnb
pmsstayntouch
pmsstreamline
pmstrackhs

Example responses

200 Response

{
"status": "verified",
"pms_status": "CONFIRMED",
"supervised": "approve",
"reason": "string",
"guestportal_completed": true,
"business_rules": [
"string"
]
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation status objectReservationStatusResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/status', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/status', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation status change

POST /reservations/{id}/status

Approve or decline a reservation manually

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
x-api-keyheaderstringfalseAPI Authentication Key
bodybodyReservationsVerificationChangeRequestfalseJSON object with verification details

Body parameter

{
"supervised": "decline"
}

Example responses

200 Response

{
"status": "verified",
"pms_status": "CONFIRMED",
"supervised": "approve",
"reason": "string",
"guestportal_completed": true,
"business_rules": [
"string"
]
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation status objectReservationStatusResponse

Code samples

"""
Python Code Snippet
"""
import requests

input_body = {
"supervised": "decline"
}

headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.post('https://data.autohost.ai/v1/reservations/{id}/status', json=input_body, headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';
const inputBody = {
"supervised": "decline"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/status', {
method: 'post',
body: JSON.stringify(inputBody),
headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation Guest Portal Screens

GET /reservations/{id}/screens

Guest Portal screens configuration for a specific reservation.

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
pmsqueryQueryParamPMSfalsePMS integration name. If supplied, the API will assume the path parameter id is a confirmation code.
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
pmsapi
pmsapaleo
pmsbeds24
pmsbooking
pmscloudbeds
pmsguesty
pmshostaway
pmshostfully
pmsinforhms
pmsimpala
pmslavanda
pmsmyvr
pmsopera
pmssmartbnb
pmsstayntouch
pmsstreamline
pmstrackhs

Example responses

200 Response

{
"AboutYou": "disabled",
"AuthorityReporting": "disabled",
"BuildingScreen": "disabled",
"BackgroundCheck": "disabled",
"CreditCheck": "disabled",
"IDVerification": "disabled",
"IDCollection": "disabled",
"SecurityDeposit": "disabled",
"UsageAgreement": "disabled",
"Coronavirus": "disabled",
"CustomScreen": "disabled",
"FileUpload": "disabled",
"GuestList": "disabled",
"HouseRules": "disabled",
"LongTerm": "disabled",
"PurposeOfStay": "disabled",
"TimeInfoEdit": "disabled",
"SexOffendersAddon": "disabled",
"SocialVerificationAddon": "disabled",
"SanctionsSearchAddon": "disabled",
"FraudDetectionAddon": "disabled",
"AdverseMediaSearchAddon": "disabled"
}

Responses

StatusMeaningDescriptionSchema
200OKGuest Portal screens configuration objectReservationScreensResponse
400Bad RequestAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/screens', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/screens', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

GET /reservations/{id}/embed

Generate a temporary link to embed reservation details on your web page (DEPRECATED - Use SDK instead)

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
x-api-keyheaderstringfalseAPI Authentication Key

Example responses

A reservation embed object

{
"url": "https://exmpale.com/embed/34857439857439857349857",
"expires": "2021-09-05T16:18:39.808Z"
}
StatusMeaningDescriptionSchema
200OKA reservation embed objectReservationEmbedLinkResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/embed', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/embed', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation notes

GET /reservations/{id}/notes

Get list of notes for a reservation

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
pmsqueryQueryParamPMSfalsePMS integration name. If supplied, the API will assume the path parameter id is a confirmation code.
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
pmsapi
pmsapaleo
pmsbeds24
pmsbooking
pmscloudbeds
pmsguesty
pmshostaway
pmshostfully
pmsinforhms
pmsimpala
pmslavanda
pmsmyvr
pmsopera
pmssmartbnb
pmsstayntouch
pmsstreamline
pmstrackhs

Example responses

200 Response

[
{
"text": "string",
"author_id": "string",
"author_name": "string",
"author_type": "string",
"timestamp": "string"
}
]

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationNotesResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/notes', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/notes', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation payments

GET /reservations/{id}/payments

Payment details for a reservation. Includes Security Deposit, Damage Waiver and Payment Validation.

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
x-api-keyheaderstringfalseAPI Authentication Key

Example responses

200 Response

{
"security_deposit": {
"successful_authorizations": [
{
"currency": "string",
"amount": 0,
"receipt_url": "string",
"card_brand": "string",
"timestamp": "string"
}
],
"charge_failures": [
{
"message": "string",
"timestamp": "string"
}
],
"refunds": [
{
"currency": "string",
"amount": 0,
"receipt_url": "string",
"timestamp": "string"
}
],
"deposit_captures": [
{
"currency": "string",
"amount": 0,
"receipt_url": "string",
"card_brand": "string",
"timestamp": "string"
}
]
},
"payment_validation": {
"receipt_url": "string",
"name_on_card": "string",
"funding_type": "string",
"card_brand": "string",
"card_country": "string",
"status": "string",
"errors": [
{
"title": "string",
"description": "string"
}
]
},
"damage_waiver": {
"amount": 0,
"currency": "string",
"timestamp": "string",
"receipt_url": "string"
},
"extra_services": {
"amount": 0,
"receipt_url": "string",
"products": [
{
"name": "string",
"price": 0
}
]
}
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationPaymentsResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/payments', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/payments', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation messages

GET /reservations/{id}/stargate

List of queued and sent Stargate messages for a given reservation.

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
x-api-keyheaderstringtrueAPI Authentication Key

Example responses

200 Response

[
{
"email": "user@example.com",
"phone": "string",
"tag": "string",
"method": "string",
"via": "string",
"sendAfter": "2019-08-24T14:15:22Z",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z",
"reservation_id": "string",
"listing_id": "string",
"confirmation_code": "string",
"message": {
"subject": "string",
"text": "string",
"html": "string"
}
}
]

Responses

StatusMeaningDescriptionSchema
200OKA list of Stargate messagesReservationStargateResponse
404Not FoundAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/stargate', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/stargate', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation Guest Portal

GET /reservations/{id}/guestportal

Guest Portal details for a reservation

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
pmsqueryQueryParamPMSfalsePMS integration name. If supplied, the API will assume the path parameter id is a confirmation code.
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
pmsapi
pmsapaleo
pmsbeds24
pmsbooking
pmscloudbeds
pmsguesty
pmshostaway
pmshostfully
pmsinforhms
pmsimpala
pmslavanda
pmsmyvr
pmsopera
pmssmartbnb
pmsstayntouch
pmsstreamline
pmstrackhs

Example responses

200 Response

{
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"name_on_card": "string",
"security_deposit": true,
"last_step": "string",
"completed": true,
"completed_at": "string",
"updated_at": "string",
"guests": [
{
"name": "string",
"email": "user@example.com"
}
]
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationGuestPortalResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations/{id}/guestportal', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/guestportal', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

GET /reservations

Return paginated list of reservations matching the search criteria.

Parameters

NameInTypeRequiredDescription
fromquerynumberfalsePagination control
sizequerynumberfalseNumber of items to return
statusqueryQueryParamReservationStatusfalseReservation OTA status
searchquerystringfalseString search
listingsquerystringfalseAutohost listing ID. Use commas for multiple IDs.
guestportal_completedquerystringfalseFilter by Guest Portal completion status (true
activequerynumberfalseFilter by active reservations.
pending_reviewquerystringfalseReturn reservations that require a manual review (true
emailsquerystringfalseSearch reservations by guest email. Use commas for multiple addresses.
sourcequerystringfalseFilter reservation by booking source name.
startDatequerystringfalseFilter reservation from the specified start date (YYYY-MM-DD).
endDatequerystringfalseFilter reservation from the specified end date (YYYY-MM-DD).
dateFieldquerystringfalseCheck-in date is used by default, but it can be changed (check_in_date
x-api-keyheaderstringfalseAPI Authentication Key

Enumerated Values

ParameterValue
statusCONFIRMED
statusCANCELED
statusINQUIRY
statusany

Example responses

200 Response

{
"id": "string",
"user_id": "string",
"confirmation_code": "string",
"status": "string",
"source": "string",
"listing_id": "string",
"listing_nickname": "string",
"listing_timezone_name": "string",
"number_of_guests": 0,
"nights": 0,
"total_price": 0,
"average_daily_rate": 0,
"check_in_date": "string",
"check_out_date": "string",
"guest_portal_url": "string",
"guest": {
"first_name": "string",
"last_name": "string",
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"location": "string"
},
"identification": {
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"document_number": "string",
"document_type": "string",
"nationality": "string",
"sex": "string",
"address": "string",
"birth_date": "string",
"expiry_date": "string",
"issue_date": "string"
},
"created_at": "string",
"updated_at": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationDetailsResponse
400Bad RequestAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

headers = {
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.get('https://data.autohost.ai/v1/reservations', headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';

const headers = {
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations', {
method: 'get',

headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation creation

POST /reservations

Create new reservation object

Parameters

NameInTypeRequiredDescription
callbackqueryQueryParamCallbackfalseWebhook URL to post data back to once Screening AI finished analyzing the reservation.
syncqueryQueryParamSyncfalseExecution is asynchronous by default and the response, including reservation ID, will be returned via webhook when you supply the callback parameter. You can enable synchronous execution by setting sync=1, but it is discouraged when sending large amounts of requests.
skip_gpqueryQueryParamSkipGPfalseVerification analysis to proceed without dependence on Guest Portal completion. To be included for all reservations where the guest is not expected to complete the portal.
x-api-keyheaderstringfalseAPI Authentication Key
bodybodyReservationCreateRequestfalseJSON object with reservation details

Enumerated Values

ParameterValue
sync1
synctrue
skip_gp1
skip_gptrue

Body parameter

{
"guest": {
"first_name": "John",
"last_name": "Doe"
}
}

Example responses

200 Response

{
"id": "string",
"user_id": "string",
"confirmation_code": "string",
"status": "string",
"source": "string",
"listing_id": "string",
"listing_nickname": "string",
"listing_timezone_name": "string",
"number_of_guests": 0,
"nights": 0,
"total_price": 0,
"average_daily_rate": 0,
"check_in_date": "string",
"check_out_date": "string",
"guest_portal_url": "string",
"guest": {
"first_name": "string",
"last_name": "string",
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"location": "string"
},
"identification": {
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"document_number": "string",
"document_type": "string",
"nationality": "string",
"sex": "string",
"address": "string",
"birth_date": "string",
"expiry_date": "string",
"issue_date": "string"
},
"created_at": "string",
"updated_at": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA reservation objectReservationDetailsResponse
400Bad RequestAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

input_body = {
"guest": {
"first_name": "John",
"last_name": "Doe"
}
}

headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.post('https://data.autohost.ai/v1/reservations', json=input_body, headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';
const inputBody = {
"guest": {
"first_name": "John",
"last_name": "Doe"
}
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations', {
method: 'post',
body: JSON.stringify(inputBody),
headers,
});
const responseJson = await response.json();
console.log(responseJson);

Reservation payment event

POST /reservations/{id}/payment-event

Record a payment event belonging to a reservation for fraud analysis and business rules.

The following parameters are optional, but highly recommended:

  • card_country
  • card_provider
  • card_expiry_month
  • card_expiry_year
  • three_d_secure
  • billing_email
  • billing_phone
  • ip_address

If you are using Adyen, see this guide for more information on how to get the required parameters.

Examples of how to map the webhook events from common providers:

Parameters

NameInTypeRequiredDescription
idpathstringtrueAutohost reservation ID
x-api-keyheaderstringtrueAPI Authentication Key
bodybodyPaymentEventRequestfalseJSON object with payment event details

Body parameter

{
"event_source": "adyen",
"event_id": "123456789",
"event_type": "charge",
"event_status": "failure",
"customer_id": "123456789",
"processor_status_code": "111",
"processor_message": "Invalid BankCountryCode specified",
"network_status_code": "declined_by_network",
"three_d_secure": "exempted",
"amount": 101.5,
"currency": "usd",
"charge_descriptor": "PRE-AUTH Security Deposit",
"name_on_card": "John Doe",
"payment_method": "card",
"card_type": "credit",
"card_provider": "visa",
"card_iin": "41111",
"card_last4": "1111",
"card_expiry_month": "12",
"card_expiry_year": "2025",
"billing_country_code": "US",
"billing_address": "123 Main St",
"billing_city": "New York",
"billing_state_code": "NY",
"billing_postal_code": "10001",
"billing_phone": "+15555555555",
"billing_email": "user@example.com",
"billing_name": "John Doe",
"ip_address": "8.8.8.8",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"timestamp": "2022-05-22T18:06:20.352Z"
}

Example responses

200 Response

{
"message": "string"
}

Responses

StatusMeaningDescriptionSchema
200OKA success message objectPaymentEventResponse
400Bad RequestAn error messageErrorResponse

Code samples

"""
Python Code Snippet
"""
import requests

input_body = {
"event_source": "adyen",
"event_id": "123456789",
"event_type": "charge",
"event_status": "failure",
"customer_id": "123456789",
"processor_status_code": "111",
"processor_message": "Invalid BankCountryCode specified",
"network_status_code": "declined_by_network",
"three_d_secure": "exempted",
"amount": 101.5,
"currency": "usd",
"charge_descriptor": "PRE-AUTH Security Deposit",
"name_on_card": "John Doe",
"payment_method": "card",
"card_type": "credit",
"card_provider": "visa",
"card_iin": "41111",
"card_last4": "1111",
"card_expiry_month": "12",
"card_expiry_year": "2025",
"billing_country_code": "US",
"billing_address": "123 Main St",
"billing_city": "New York",
"billing_state_code": "NY",
"billing_postal_code": "10001",
"billing_phone": "+15555555555",
"billing_email": "user@example.com",
"billing_name": "John Doe",
"ip_address": "8.8.8.8",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"timestamp": "2022-05-22T18:06:20.352Z"
}

headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-api-key': 'string'
}

r = requests.post('https://data.autohost.ai/v1/reservations/{id}/payment-event', json=input_body, headers=headers)

print(r.json())

/*
TypeScript Code Snippet
*/

import fetch from 'node-fetch';
const inputBody = {
"event_source": "adyen",
"event_id": "123456789",
"event_type": "charge",
"event_status": "failure",
"customer_id": "123456789",
"processor_status_code": "111",
"processor_message": "Invalid BankCountryCode specified",
"network_status_code": "declined_by_network",
"three_d_secure": "exempted",
"amount": 101.5,
"currency": "usd",
"charge_descriptor": "PRE-AUTH Security Deposit",
"name_on_card": "John Doe",
"payment_method": "card",
"card_type": "credit",
"card_provider": "visa",
"card_iin": "41111",
"card_last4": "1111",
"card_expiry_month": "12",
"card_expiry_year": "2025",
"billing_country_code": "US",
"billing_address": "123 Main St",
"billing_city": "New York",
"billing_state_code": "NY",
"billing_postal_code": "10001",
"billing_phone": "+15555555555",
"billing_email": "user@example.com",
"billing_name": "John Doe",
"ip_address": "8.8.8.8",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"timestamp": "2022-05-22T18:06:20.352Z"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-api-key':'string'
};

const response = await fetch('https://data.autohost.ai/v1/reservations/{id}/payment-event', {
method: 'post',
body: JSON.stringify(inputBody),
headers,
});
const responseJson = await response.json();
console.log(responseJson);

Schemas

QueryParamPMS

"api"

Properties

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousapi
anonymousapaleo
anonymousbeds24
anonymousbooking
anonymouscloudbeds
anonymousguesty
anonymoushostaway
anonymoushostfully
anonymousinforhms
anonymousimpala
anonymouslavanda
anonymousmyvr
anonymousopera
anonymoussmartbnb
anonymousstayntouch
anonymousstreamline
anonymoustrackhs

ReservationDetailsResponse

{
"id": "string",
"user_id": "string",
"confirmation_code": "string",
"status": "string",
"source": "string",
"listing_id": "string",
"listing_nickname": "string",
"listing_timezone_name": "string",
"number_of_guests": 0,
"nights": 0,
"total_price": 0,
"average_daily_rate": 0,
"check_in_date": "string",
"check_out_date": "string",
"guest_portal_url": "string",
"guest": {
"first_name": "string",
"last_name": "string",
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"location": "string"
},
"identification": {
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"document_number": "string",
"document_type": "string",
"nationality": "string",
"sex": "string",
"address": "string",
"birth_date": "string",
"expiry_date": "string",
"issue_date": "string"
},
"created_at": "string",
"updated_at": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
idstringfalsenonenone
user_idstringfalsenonenone
confirmation_codestringfalsenonenone
statusstringfalsenonenone
sourcestringfalsenonenone
listing_idstringfalsenonenone
listing_nicknamestringfalsenonenone
listing_timezone_namestringfalsenonenone
number_of_guestsnumberfalsenonenone
nightsnumberfalsenonenone
total_pricenumberfalsenonenone
average_daily_ratenumberfalsenonenone
check_in_datestringfalsenonenone
check_out_datestringfalsenonenone
guest_portal_urlstringfalsenonenone
guestobjectfalsenonenone
» first_namestringfalsenonenone
» last_namestringfalsenonenone
» full_namestringfalsenonenone
» phonestringfalsenonenone
» emailstring(email)falsenonenone
» locationstringfalsenonenone
identificationobjectfalsenonenone
» first_namestringfalsenonenone
» last_namestringfalsenonenone
» middle_namestringfalsenonenone
» document_numberstringfalsenonenone
» document_typestringfalsenonenone
» nationalitystringfalsenonenone
» sexstringfalsenonenone
» addressstringfalsenonenone
» birth_datestringfalsenonenone
» expiry_datestringfalsenonenone
» issue_datestringfalsenonenone
created_atstringfalsenonenone
updated_atstringfalsenonenone

ErrorResponse

{
"error": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
errorstringfalsenonenone

ReservationCreateRequest

{
"status": "CONFIRMED",
"source": "string",
"listing_id": "string",
"confirmation_code": "string",
"number_of_guests": 0,
"nights": 0,
"total_price": 0,
"check_in_date": "2019-08-24T14:15:22Z",
"check_out_date": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"guest": {
"first_name": "string",
"last_name": "string",
"location": "string",
"phone": "string",
"email": "user@example.com",
"access_code": "string",
"birth_date": "2019-08-24",
"metadata": {
"ip_address": "192.168.0.1",
"user_agent": "string"
}
},
"guest_portal_screens": {
"AboutYou": "disabled",
"AuthorityReporting": "disabled",
"BuildingScreen": "disabled",
"BackgroundCheck": "disabled",
"CreditCheck": "disabled",
"IDVerification": "disabled",
"IDCollection": "disabled",
"SecurityDeposit": "disabled",
"UsageAgreement": "disabled",
"Coronavirus": "disabled",
"CustomScreen": "disabled",
"FileUpload": "disabled",
"GuestList": "disabled",
"HouseRules": "disabled",
"LongTerm": "disabled",
"PurposeOfStay": "disabled",
"TimeInfoEdit": "disabled",
"SexOffendersAddon": "disabled",
"SocialVerificationAddon": "disabled",
"SanctionsSearchAddon": "disabled",
"FraudDetectionAddon": "disabled",
"AdverseMediaSearchAddon": "disabled"
}
}

Properties

NameTypeRequiredRestrictionsDescription
statusstringtruenonenone
sourcestringtruenonenone
listing_idstringtruenonenone
confirmation_codestringtruenonenone
number_of_guestsnumbertruenonenone
nightsnumberfalsenonenone
total_pricenumbertruenonenone
check_in_datestring(date-time)truenonenone
check_out_datestring(date-time)truenonenone
created_atstring(date-time)falsenonenone
guestobjectfalsenonenone
» first_namestringfalsenonenone
» last_namestringfalsenonenone
» locationstringfalsenonenone
» phonestringfalsenonenone
» emailstring(email)falsenonenone
» access_codestringfalsenonenone
» birth_datestring(date)falsenonenone
» metadataobjectfalsenonenone
»» ip_addressstring(ipv4)falsenonenone
»» user_agentstringfalsenonenone
guest_portal_screensobjectfalsenonenone
» AboutYoustringfalsenonenone
» AuthorityReportingstringfalsenonenone
» BuildingScreenstringfalsenonenone
» BackgroundCheckstringfalsenonenone
» CreditCheckstringfalsenonenone
» IDVerificationstringfalsenonenone
» IDCollectionstringfalsenonenone
» SecurityDepositstringfalsenonenone
» UsageAgreementstringfalsenonenone
» Coronavirusstringfalsenonenone
» CustomScreenstringfalsenonenone
» FileUploadstringfalsenonenone
» GuestListstringfalsenonenone
» HouseRulesstringfalsenonenone
» LongTermstringfalsenonenone
» PurposeOfStaystringfalsenonenone
» TimeInfoEditstringfalsenonenone
» SexOffendersAddonstringfalsenonenone
» SocialVerificationAddonstringfalsenonenone
» SanctionsSearchAddonstringfalsenonenone
» FraudDetectionAddonstringfalsenonenone
» AdverseMediaSearchAddonstringfalsenonenone

Enumerated Values

PropertyValue
statusCONFIRMED
statusCANCELED
statusINQUIRY
AboutYoudisabled
AboutYourequired
AboutYouinherit
AuthorityReportingdisabled
AuthorityReportingrequired
AuthorityReportinginherit
BuildingScreendisabled
BuildingScreenrequired
BuildingScreeninherit
BackgroundCheckdisabled
BackgroundCheckrequired
BackgroundCheckinherit
CreditCheckdisabled
CreditCheckrequired
CreditCheckinherit
IDVerificationdisabled
IDVerificationrequired
IDVerificationinherit
IDCollectiondisabled
IDCollectionrequired
IDCollectioninherit
SecurityDepositdisabled
SecurityDepositrequired
SecurityDepositinherit
UsageAgreementdisabled
UsageAgreementrequired
UsageAgreementinherit
Coronavirusdisabled
Coronavirusrequired
Coronavirusinherit
CustomScreendisabled
CustomScreenrequired
CustomScreeninherit
FileUploaddisabled
FileUploadrequired
FileUploadinherit
GuestListdisabled
GuestListrequired
GuestListinherit
HouseRulesdisabled
HouseRulesrequired
HouseRulesinherit
LongTermdisabled
LongTermrequired
LongTerminherit
PurposeOfStaydisabled
PurposeOfStayrequired
PurposeOfStayinherit
TimeInfoEditdisabled
TimeInfoEditrequired
TimeInfoEditinherit
SexOffendersAddondisabled
SexOffendersAddonrequired
SexOffendersAddoninherit
SocialVerificationAddondisabled
SocialVerificationAddonrequired
SocialVerificationAddoninherit
SanctionsSearchAddondisabled
SanctionsSearchAddonrequired
SanctionsSearchAddoninherit
FraudDetectionAddondisabled
FraudDetectionAddonrequired
FraudDetectionAddoninherit
AdverseMediaSearchAddondisabled
AdverseMediaSearchAddonrequired
AdverseMediaSearchAddoninherit

QueryParamCallback

"string"

Properties

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

QueryParamSync

1

Properties

NameTypeRequiredRestrictionsDescription
anonymousbooleanfalsenonenone

Enumerated Values

PropertyValue
anonymous1
anonymoustrue

QueryParamSkipGP

1

Properties

NameTypeRequiredRestrictionsDescription
anonymousbooleanfalsenonenone

Enumerated Values

PropertyValue
anonymous1
anonymoustrue

ReservationSummaryResponse

{
"guest_portal_status": "COMPLETED",
"guest_portal_last_screen": "string",
"verification_composite_status": "verified",
"verification_status": "verified",
"verification_status_reason": "string",
"supervised_status": "approve",
"supervised_decline_reason": "string",
"risk_color": "string",
"top_risks": [
"string"
],
"top_recommendations": [
"string"
],
"loyalty_segments": [
{
"guest_id": "string",
"timestamp": "string",
"segment": {
"name": "Champions",
"tier": 1,
"description": "string",
"recommended_action": "string",
"offer_type": "string",
"priority": "CRITICAL"
},
"rfm_scores": {
"recency": 1,
"frequency": 2,
"monetary": 1,
"composite": "string"
},
"metrics": {
"days_since_last_stay": 0,
"last_stay_date": "string",
"first_stay_date": "string",
"total_stays": 0,
"total_revenue": 0,
"total_nights": 0,
"avg_booking_value": 0,
"nights_equivalent": 0,
"customer_tenure_days": 0
},
"data_quality": {
"confidence": "HIGH",
"has_email": true,
"has_phone": true,
"is_ota_masked": true,
"identifier_type": "string"
},
"top_factors": [
{
"factor": "string",
"value": null,
"impact": "positive",
"description": "string"
}
],
"flags": {
"is_corporate_account": true,
"is_ota_guest": true,
"has_future_booking": true,
"is_seasonal_guest": true
}
}
],
"details": {
"general_risk": {
"status": "PASS",
"value": "string"
},
"background_check": {
"status": "PASS",
"value": "string"
},
"credit_check": {
"status": "PASS",
"value": "string"
},
"blacklist": {
"status": "PASS",
"value": "string"
},
"payment_verification": {
"status": "PASS",
"value": "string"
},
"identification_document": {
"status": "PASS",
"value": "string"
},
"fraud_detection": {
"status": "PASS",
"value": "string"
},
"social_verification": {
"status": "PASS",
"value": "string"
},
"sanctions": {
"status": "PASS",
"value": "string"
},
"agreement": {
"status": "PASS",
"value": "string"
}
}
}

Properties

NameTypeRequiredRestrictionsDescription
guest_portal_statusstringfalsenonenone
guest_portal_last_screenstringfalsenonenone
verification_composite_statusstringfalsenonenone
verification_statusstringfalsenonenone
verification_status_reasonstringfalsenonenone
supervised_statusstringfalsenonenone
supervised_decline_reasonstringfalsenonenone
risk_colorstringfalsenonenone
top_risks[string]falsenonenone
top_recommendations[string]falsenonenone
loyalty_segments[object]falsenoneGuest loyalty RFM segmentation results. Only present when segmentation data is available.
» guest_idstringfalsenoneGuest identifier (email or phone)
» timestampstringfalsenoneTimestamp of segmentation calculation
» segmentobjectfalsenoneSegment classification with actionable guidance
»» namestringfalsenoneRFM segment classification
»» tierintegerfalsenonePriority tier (1 = highest)
»» descriptionstringfalsenonenone
»» recommended_actionstringfalsenonenone
»» offer_typestringfalsenonenone
»» prioritystringfalsenoneAction priority level
» rfm_scoresobjectfalsenoneRFM score breakdown
»» recencyintegerfalsenonenone
»» frequencyintegerfalsenonenone
»» monetaryintegerfalsenonenone
»» compositestringfalsenoneCombined RFM score, e.g. '535'
» metricsobjectfalsenoneGuest behavioral metrics
»» days_since_last_stayintegerfalsenonenone
»» last_stay_datestringfalsenonenone
»» first_stay_datestringfalsenonenone
»» total_staysintegerfalsenonenone
»» total_revenuenumberfalsenonenone
»» total_nightsintegerfalsenonenone
»» avg_booking_valuenumberfalsenonenone
»» nights_equivalentnumberfalsenonenone
»» customer_tenure_daysintegerfalsenonenone
» data_qualityobjectfalsenoneData quality indicators
»» confidencestringfalsenoneGuest identification confidence
»» has_emailbooleanfalsenonenone
»» has_phonebooleanfalsenonenone
»» is_ota_maskedbooleanfalsenonenone
»» identifier_typestringfalsenoneIdentifier type used for lookup ('email' or 'phone')
» top_factors[object]falsenoneExplanation factors for segment assignment
»» factorstringfalsenonenone
»» valueanyfalsenoneFactor value
»» impactstringfalsenoneWhether the factor is positive or negative
»» descriptionstringfalsenonenone
» flagsobjectfalsenoneGuest classification flags
»» is_corporate_accountbooleanfalsenonenone
»» is_ota_guestbooleanfalsenonenone
»» has_future_bookingbooleanfalsenonenone
»» is_seasonal_guestbooleanfalsenonenone
detailsobjectfalsenonenone
» general_riskobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» background_checkobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» credit_checkobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» blacklistobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» payment_verificationobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» identification_documentobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» fraud_detectionobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» social_verificationobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» sanctionsobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone
» agreementobjectfalsenonenone
»» statusstringfalsenonenone
»» valuestringfalsenonenone

Enumerated Values

PropertyValue
guest_portal_statusCOMPLETED
guest_portal_statusINCOMPLETE
verification_composite_statusverified
verification_composite_statusreview
verification_composite_statuspending
verification_composite_statusapprove
verification_composite_statusdecline
verification_statusverified
verification_statusreview
verification_statuspending
supervised_statusapprove
supervised_statusdecline
nameChampions
nameHigh Value Active
nameHigh Value At Risk
nameHigh Value Slipping
nameLoyal Active
nameLoyal At Risk
namePotential Loyalists
nameRepeat At Risk
namePromising First-Timers
nameRecent First-Timers
nameFirst-Timers Need Attention
nameHibernating
nameOther
priorityCRITICAL
priorityHIGH
priorityMEDIUM
priorityLOW
confidenceHIGH
confidenceMEDIUM
confidenceLOW
confidenceUNKNOWN
impactpositive
impactnegative
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusDECLINE
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED
statusPASS
statusREVIEW
statusINCOMPLETE
statusDISABLED

ReservationStatusResponse

{
"status": "verified",
"pms_status": "CONFIRMED",
"supervised": "approve",
"reason": "string",
"guestportal_completed": true,
"business_rules": [
"string"
]
}

Properties

NameTypeRequiredRestrictionsDescription
statusstringfalsenonenone
pms_statusstringfalsenonenone
supervisedstringfalsenonenone
reasonstringfalsenonenone
guestportal_completedbooleanfalsenonenone
business_rules[string]falsenonenone

Enumerated Values

PropertyValue
statusverified
statusreview
statuspending
pms_statusCONFIRMED
pms_statusCANCELED
pms_statusINQUIRY
supervisedapprove
superviseddecline

ReservationsVerificationChangeRequest

{
"supervised": "approve",
"notes": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
supervisedstringfalsenonenone
notesstringfalsenonenone

Enumerated Values

PropertyValue
supervisedapprove
superviseddecline

ReservationScreensResponse

{
"AboutYou": "disabled",
"AuthorityReporting": "disabled",
"BuildingScreen": "disabled",
"BackgroundCheck": "disabled",
"CreditCheck": "disabled",
"IDVerification": "disabled",
"IDCollection": "disabled",
"SecurityDeposit": "disabled",
"UsageAgreement": "disabled",
"Coronavirus": "disabled",
"CustomScreen": "disabled",
"FileUpload": "disabled",
"GuestList": "disabled",
"HouseRules": "disabled",
"LongTerm": "disabled",
"PurposeOfStay": "disabled",
"TimeInfoEdit": "disabled",
"SexOffendersAddon": "disabled",
"SocialVerificationAddon": "disabled",
"SanctionsSearchAddon": "disabled",
"FraudDetectionAddon": "disabled",
"AdverseMediaSearchAddon": "disabled"
}

Properties

NameTypeRequiredRestrictionsDescription
AboutYoustringfalsenonenone
AuthorityReportingstringfalsenonenone
BuildingScreenstringfalsenonenone
BackgroundCheckstringfalsenonenone
CreditCheckstringfalsenonenone
IDVerificationstringfalsenonenone
IDCollectionstringfalsenonenone
SecurityDepositstringfalsenonenone
UsageAgreementstringfalsenonenone
Coronavirusstringfalsenonenone
CustomScreenstringfalsenonenone
FileUploadstringfalsenonenone
GuestListstringfalsenonenone
HouseRulesstringfalsenonenone
LongTermstringfalsenonenone
PurposeOfStaystringfalsenonenone
TimeInfoEditstringfalsenonenone
SexOffendersAddonstringfalsenonenone
SocialVerificationAddonstringfalsenonenone
SanctionsSearchAddonstringfalsenonenone
FraudDetectionAddonstringfalsenonenone
AdverseMediaSearchAddonstringfalsenonenone

Enumerated Values

PropertyValue
AboutYoudisabled
AboutYourequired
AboutYouinherit
AuthorityReportingdisabled
AuthorityReportingrequired
AuthorityReportinginherit
BuildingScreendisabled
BuildingScreenrequired
BuildingScreeninherit
BackgroundCheckdisabled
BackgroundCheckrequired
BackgroundCheckinherit
CreditCheckdisabled
CreditCheckrequired
CreditCheckinherit
IDVerificationdisabled
IDVerificationrequired
IDVerificationinherit
IDCollectiondisabled
IDCollectionrequired
IDCollectioninherit
SecurityDepositdisabled
SecurityDepositrequired
SecurityDepositinherit
UsageAgreementdisabled
UsageAgreementrequired
UsageAgreementinherit
Coronavirusdisabled
Coronavirusrequired
Coronavirusinherit
CustomScreendisabled
CustomScreenrequired
CustomScreeninherit
FileUploaddisabled
FileUploadrequired
FileUploadinherit
GuestListdisabled
GuestListrequired
GuestListinherit
HouseRulesdisabled
HouseRulesrequired
HouseRulesinherit
LongTermdisabled
LongTermrequired
LongTerminherit
PurposeOfStaydisabled
PurposeOfStayrequired
PurposeOfStayinherit
TimeInfoEditdisabled
TimeInfoEditrequired
TimeInfoEditinherit
SexOffendersAddondisabled
SexOffendersAddonrequired
SexOffendersAddoninherit
SocialVerificationAddondisabled
SocialVerificationAddonrequired
SocialVerificationAddoninherit
SanctionsSearchAddondisabled
SanctionsSearchAddonrequired
SanctionsSearchAddoninherit
FraudDetectionAddondisabled
FraudDetectionAddonrequired
FraudDetectionAddoninherit
AdverseMediaSearchAddondisabled
AdverseMediaSearchAddonrequired
AdverseMediaSearchAddoninherit

ReservationEmbedLinkResponse

{
"url": "string",
"expires": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
urlstringfalsenonenone
expiresstringfalsenonenone

ReservationNotesResponse

[
{
"text": "string",
"author_id": "string",
"author_name": "string",
"author_type": "string",
"timestamp": "string"
}
]

Properties

NameTypeRequiredRestrictionsDescription
textstringfalsenonenone
author_idstringfalsenonenone
author_namestringfalsenonenone
author_typestringfalsenonenone
timestampstringfalsenonenone

ReservationPaymentsResponse

{
"security_deposit": {
"successful_authorizations": [
{
"currency": "string",
"amount": 0,
"receipt_url": "string",
"card_brand": "string",
"timestamp": "string"
}
],
"charge_failures": [
{
"message": "string",
"timestamp": "string"
}
],
"refunds": [
{
"currency": "string",
"amount": 0,
"receipt_url": "string",
"timestamp": "string"
}
],
"deposit_captures": [
{
"currency": "string",
"amount": 0,
"receipt_url": "string",
"card_brand": "string",
"timestamp": "string"
}
]
},
"payment_validation": {
"receipt_url": "string",
"name_on_card": "string",
"funding_type": "string",
"card_brand": "string",
"card_country": "string",
"status": "string",
"errors": [
{
"title": "string",
"description": "string"
}
]
},
"damage_waiver": {
"amount": 0,
"currency": "string",
"timestamp": "string",
"receipt_url": "string"
},
"extra_services": {
"amount": 0,
"receipt_url": "string",
"products": [
{
"name": "string",
"price": 0
}
]
}
}

Properties

NameTypeRequiredRestrictionsDescription
security_depositobjectfalsenonenone
» successful_authorizations[object]falsenonenone
»» currencystringfalsenonenone
»» amountnumberfalsenonenone
»» receipt_urlstringfalsenonenone
»» card_brandstringfalsenonenone
»» timestampstringfalsenonenone
» charge_failures[object]falsenonenone
»» messagestringfalsenonenone
»» timestampstringfalsenonenone
» refunds[object]falsenonenone
»» currencystringfalsenonenone
»» amountnumberfalsenonenone
»» receipt_urlstringfalsenonenone
»» timestampstringfalsenonenone
» deposit_captures[object]falsenonenone
»» currencystringfalsenonenone
»» amountnumberfalsenonenone
»» receipt_urlstringfalsenonenone
»» card_brandstringfalsenonenone
»» timestampstringfalsenonenone
payment_validationobjectfalsenonenone
» receipt_urlstringfalsenonenone
» name_on_cardstringfalsenonenone
» funding_typestringfalsenonenone
» card_brandstringfalsenonenone
» card_countrystringfalsenonenone
» statusstringfalsenonenone
» errors[object]falsenonenone
»» titlestringfalsenonenone
»» descriptionstringfalsenonenone
damage_waiverobjectfalsenonenone
» amountnumberfalsenonenone
» currencystringfalsenonenone
» timestampstringfalsenonenone
» receipt_urlstringfalsenonenone
extra_servicesobjectfalsenonenone
» amountnumberfalsenonenone
» receipt_urlstringfalsenonenone
» products[object]falsenonenone
»» namestringfalsenonenone
»» pricenumberfalsenonenone

ReservationStargateResponse

[
{
"email": "user@example.com",
"phone": "string",
"tag": "string",
"method": "string",
"via": "string",
"sendAfter": "2019-08-24T14:15:22Z",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z",
"reservation_id": "string",
"listing_id": "string",
"confirmation_code": "string",
"message": {
"subject": "string",
"text": "string",
"html": "string"
}
}
]

Properties

NameTypeRequiredRestrictionsDescription
emailstring(email)falsenonenone
phonestringfalsenonenone
tagstringfalsenonenone
methodstringfalsenonenone
viastringfalsenonenone
sendAfterstring(date-time)falsenonenone
createdstring(date-time)falsenonenone
updatedstring(date-time)falsenonenone
reservation_idstringfalsenonenone
listing_idstringfalsenonenone
confirmation_codestringfalsenonenone
messageobjectfalsenonenone
» subjectstringfalsenonenone
» textstringfalsenonenone
» htmlstringfalsenonenone

ReservationGuestPortalResponse

{
"full_name": "string",
"phone": "string",
"email": "user@example.com",
"name_on_card": "string",
"security_deposit": true,
"last_step": "string",
"completed": true,
"completed_at": "string",
"updated_at": "string",
"guests": [
{
"name": "string",
"email": "user@example.com"
}
]
}

Properties

NameTypeRequiredRestrictionsDescription
full_namestringfalsenonenone
phonestringfalsenonenone
emailstring(email)falsenonenone
name_on_cardstringfalsenonenone
security_depositbooleanfalsenonenone
last_stepstringfalsenonenone
completedbooleanfalsenonenone
completed_atstringfalsenonenone
updated_atstringfalsenonenone
guests[object]falsenonenone
» namestringfalsenonenone
» emailstring(email)falsenonenone

QueryParamReservationStatus

"CONFIRMED"

Properties

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousCONFIRMED
anonymousCANCELED
anonymousINQUIRY
anonymousany

PaymentEventRequest

{
"reservation_id": "string",
"event_source": "adyen",
"event_id": "string",
"event_type": "authorization",
"event_status": "info",
"customer_id": "string",
"processor_status_code": "string",
"processor_message": "string",
"network_status_code": "approved_by_network",
"three_d_secure": "attempt_acknowledged",
"amount": 0,
"currency": "str",
"charge_descriptor": "string",
"name_on_card": "string",
"payment_method": "card",
"card_type": "credit",
"card_provider": "visa",
"card_country": "st",
"card_iin": "string",
"card_last4": "stri",
"card_expiry_month": "st",
"card_expiry_year": "stri",
"card_fingerprint": "string",
"card_cvc_check": "pass",
"card_postal_code_check": "pass",
"card_line1_check": "pass",
"billing_country_code": "st",
"billing_address": "string",
"billing_city": "string",
"billing_state_code": "string",
"billing_postal_code": "string",
"billing_phone": "string",
"billing_email": "user@example.com",
"billing_name": "string",
"ip_address": "192.168.0.1",
"user_agent": "string",
"timestamp": "2019-08-24T14:15:22Z"
}

Properties

NameTypeRequiredRestrictionsDescription
reservation_idstringtruenoneAutohost reservation ID
event_sourcestringtruenonePayment processor
event_idstringtruenoneUnique event ID from payment processor
event_typestringtruenoneType of the event
event_statusstringtruenoneStatus of the event
customer_idstringfalsenoneUnique customer ID from payment processor or your system
processor_status_codestringfalsenoneStatus code from the payment processor
processor_messagestringfalsenoneMessage from the payment processor
network_status_codestringfalsenoneNetwork status code
three_d_securestringfalsenone3D Secure status (if applicable)
amountnumberfalsenoneAmount in major currency units (e.g. 1.25)
currencystringfalsenoneISO 4217 currency code (e.g. usd)
charge_descriptorstringfalsenoneShort description of the charge
name_on_cardstringfalsenoneName on the card
payment_methodstringfalsenonePayment method
card_typestringfalsenoneCard type (credit, debit, prepaid)
card_providerstringfalsenoneIssuer of the card
card_countrystringfalsenoneThe country where the card was issued in ISO 3166-1 alpha-2 format (e.g. US)
card_iinstringfalsenoneIssuer Identification Number
card_last4stringfalsenoneLast 4 digits of the card number
card_expiry_monthstringfalsenoneExpiry month of the card
card_expiry_yearstringfalsenoneExpiry year of the card
card_fingerprintstringfalsenoneUnique card fingerprint provided by payment processor (if available)
card_cvc_checkstringfalsenoneCard security code check
card_postal_code_checkstringfalsenoneCard postal code check
card_line1_checkstringfalsenoneCard address line 1 check
billing_country_codestringfalsenoneCountry code of the billing address in ISO 3166-1 alpha-2 format
billing_addressstringfalsenoneBilling street address
billing_citystringfalsenoneBilling city
billing_state_codestringfalsenoneBilling state code in ISO 3166-2 format
billing_postal_codestringfalsenoneBilling postal code
billing_phonestringfalsenoneBilling phone number in E.164 format (e.g. +15555555555)
billing_emailstring(email)falsenoneBilling email address
billing_namestringfalsenoneBilling name
ip_addressstring(ipv4)falsenoneIP address of the customer
user_agentstringfalsenoneUser agent of the customer
timestampstring(date-time)falsenoneTimestamp of the event in ISO 8601 format (e.g. 2022-05-22T18:06:20.352Z)

Enumerated Values

PropertyValue
event_sourceadyen
event_sourcestripe
event_sourceother
event_typeauthorization
event_typecharge
event_typerefund
event_typedispute
event_typechargeback
event_statusinfo
event_statuswarning
event_statussuccess
event_statusfailure
network_status_codeapproved_by_network
network_status_codedeclined_by_network
network_status_codenot_sent_to_network
network_status_codereversed_after_approval
three_d_secureattempt_acknowledged
three_d_secureauthenticated
three_d_secureexempted
three_d_securefailed
three_d_securenot_supported
three_d_secureprocessing_error
payment_methodcard
payment_methodach
card_typecredit
card_typedebit
card_typeprepaid
card_providervisa
card_providermastercard
card_provideramex
card_providerdiscover
card_providerjcb
card_providerdiners
card_providermaestro
card_providerunionpay
card_providerother
card_cvc_checkpass
card_cvc_checkfail
card_cvc_checkunavailable
card_postal_code_checkpass
card_postal_code_checkfail
card_postal_code_checkunavailable
card_line1_checkpass
card_line1_checkfail
card_line1_checkunavailable

PaymentEventResponse

{
"message": "string"
}

Properties

NameTypeRequiredRestrictionsDescription
messagestringfalsenonenone