cURL example:
curl --user ${ownerrez_user}:${ownerrez_key} --location --request GET "${lodgingConfigurationContentUrl}" --silent | xmllint --format -
Get the lodgingConfigurationContentUrl
for a lodging config from the advertiser lodging config index feed.
NOTE: the LC index provides default values and this per property LC feed provides overrides. So if a value is in the LC index but not a per property feed, use the value from the index.
XML payload:
<?xml version="1.0"?>
<lodgingConfigurationContent>
<listingExternalId>orp5b2abax</listingExternalId>
<unitExternalId>orp5b2abax</unitExternalId>
<lodgingConfiguration>
<cancellationPolicy>
<policy>STRICT</policy>
</cancellationPolicy>
<eventsAllowedRule>
<allowed>false</allowed>
</eventsAllowedRule>
<maximumOccupancyRule>
<guests>6</guests>
</maximumOccupancyRule>
<petsAllowedRule>
<allowed>false</allowed>
</petsAllowedRule>
<rentalAgreementFile locale="en">
<rentalAgreementPdfUrl>https://stage.cdn.orez.io/sc/content/docs/default-agreement-example.pdf?v=1.0.7454.0</rentalAgreementPdfUrl>
</rentalAgreementFile>
</lodgingConfiguration>
</lodgingConfigurationContent>