List the Properties of the Connection Scope
/api/v1/propertiesproperties.readEvery Property the App Connection may act on, with its currency, time zone and Property Pricing Modifiers per Sales Channel, ordered by id and paged with next_cursor. A walk through the pages never repeats a Property, and returns every Property present for the whole walk, even while Properties are renamed.
GET /restrictions and Restriction Batches take at most 100 Properties per call: read every page (up to 100 Properties each), then make one call per page.
Parameters
Query parameters
cursorstringnext_cursorof the previous page.limitintegerPage size. A full page is exactly what
GET /restrictionsand a Restriction Batch accept in one call.min 1 · max 100 · default 100
Responses
200One page of the Properties of the Connection Scope.
application/jsonPropertyList
dataProperty[]requiredOne page of Properties, ordered by
id.Show 5 child attributesHide child attributes
idstring (uuid)requirednamestringrequiredcurrencystringrequiredISO 4217 code of every amount of the property.
timezonestringrequiredIANA time zone of the property dates.
pricing_modifiersPricingModifier[]requiredShow 3 child attributesHide child attributes
sales_channelstringrequiredwebsitefor the direct website, else the Sales Channel shortcode (e.g.ABBfor Airbnb,BDCfor Booking.com).namestringrequiredChannel Display Name.
percentnumberrequiredApplied on top of the base rate on this Sales Channel, e.g. 15 for +15 %. Channels without a modifier are omitted.
next_cursorstring | nullrequiredPass it as
cursorto read the next page;nullon the last page.
401Error code: unauthorized, connection_revoked.
Error codes
unauthorizedThe access token is missing, unknown, expired or revoked, or was issued before the account connected the App again. Refresh it; if refreshing fails, ask the owner to connect again.connection_revokedThe owner revoked the App Connection (or your App revoked its own refresh token). Stop calling for this account and drop its tokens.
402Error code: subscription_blocked.
Error codes
subscription_blockedThe ZenHost subscription of the account is blocked (unpaid, cancelled…). The connection is kept: tell your customer, calls work again once the subscription is restored.
403Error code: app_suspended, forbidden_permission.
Error codes
app_suspendedZenHost suspended your App, or no longer allows it on this account. Stop calling and contact ZenHost.forbidden_permissionYour App was not granted the Permission this endpoint requires.
422Error code: validation_failed.
Error codes
validation_failedThe query, headers or body are invalid;details.issuespoints at each problem (path,message, andmaximumwhen a value or list is too big).
429Error code: rate_limited.
Header Retry-After — Seconds to wait before the next call is allowed. Limits per App Connection: 60 reads (GET), 10 writes (other POST) and 30 messages sent to guests per minute.
Error codes
rate_limitedToo many calls on this App Connection. Wait for the number of seconds inRetry-After.
500Error code: internal_error.
Error codes
internal_errorZenHost failed to answer. Retry later with a back-off.