Dependent on reviews setup properly, active, and available for synching under channel integration.
cURL example:
curl --user ${ownerrez_user}:${ownerrez_key} --location --request POST "${ownerrez_api}/haapi/haxml/ReviewIndex?id=${ownerrez_account_id}" --header 'Content-Type: application/xml' --data-raw "
<?xml version=\"1.0\"?>
<reviewContentIndexRequest>
<advertiserAssignedId>${ownerrez_account_id}</advertiserAssignedId>
<listingExternalId>${ownerrez_property_id}</listingExternalId>
</reviewContentIndexRequest>" --silent | xmllint --format -
id
is your Account Id example like `ora...`
ownerrez_property_id
is like `orp..`
Optional XML post fields in the request are:
<startDate></startDate>` expected `YYYY-MM-DD` format
<endDate></endDate>` expected `YYYY-MM-DD` format
XML payload:
?xml version="1.0"?>
<reviewContentIndex>
<documentVersion>1.1</documentVersion>
<advertiser>
<advertiserId>ora7ccdcde40x</advertiserId>
<reviewContentIndexEntry>
<externalId>ORREV108300211</externalId>
<lastUpdatedDate>2022-09-19T19:19:28</lastUpdatedDate>
<listingExternalId>orp5b2e1ax</listingExternalId>
<reviewUrl>https://faststage.ownerreservations.com/haapi/haxml/ora7ccdcde40x/review/ORREV108300211</reviewUrl>
<unitExternalId>orp5b2e1ax</unitExternalId>
</reviewContentIndexEntry>
</advertiser>
</reviewContentIndex>
Request with startDate filter
cURL example:
curl --user ${ownerrez_user}:${ownerrez_key} --location --request POST "${ownerrez_api}/haapi/haxml/ReviewIndex?id=${ownerrez_account_id}" --header 'Content-Type: application/xml' --data-raw "
<?xml version=\"1.0\"?>
<reviewContentIndexRequest>
<advertiserAssignedId>${ownerrez_account_id}</advertiserAssignedId>
<listingExternalId>${ownerrez_property_id}</listingExternalId>
<startDate>2020-01-01</startDate>
</reviewContentIndexRequest>" --silent | xmllint --format -
Date filtered results with a startDate in the future and no endDate
cURL example:
curl --user ${ownerrez_user}:${ownerrez_key} --location --request POST "${ownerrez_api}/haapi/haxml/ReviewIndex?id=${ownerrez_account_id}" --header 'Content-Type: application/xml' --data-raw "
<?xml version=\"1.0\"?>
<reviewContentIndexRequest>
<advertiserAssignedId>${ownerrez_account_id}</advertiserAssignedId>
<listingExternalId>${ownerrez_property_id}</listingExternalId>
<startDate>2500-01-01</startDate>
</reviewContentIndexRequest>" --silent | xmllint --format -
XML payload:
<reviewContentIndex>
<documentVersion>1.1</documentVersion>
<advertiser>
<advertiserId>ora7ccdcde40x</advertiserId>
</advertiser>
</reviewContentIndex>