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.
Paramètres
Paramètres de requête
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 · par défaut 100
Réponses
200One page of the Properties of the Connection Scope.
application/jsonPropertyList
dataProperty[]obligatoireOne page of Properties, ordered by
id.Afficher 5 attributs enfantsMasquer les attributs enfants
idstring (uuid)obligatoirenamestringobligatoirecurrencystringobligatoireISO 4217 code of every amount of the property.
timezonestringobligatoireIANA time zone of the property dates.
pricing_modifiersPricingModifier[]obligatoireAfficher 3 attributs enfantsMasquer les attributs enfants
sales_channelstringobligatoirewebsitefor the direct website, else the Sales Channel shortcode (e.g.ABBfor Airbnb,BDCfor Booking.com).namestringobligatoireChannel Display Name.
percentnumberobligatoireApplied on top of the base rate on this Sales Channel, e.g. 15 for +15 %. Channels without a modifier are omitted.
next_cursorstring | nullobligatoirePass it as
cursorto read the next page;nullon the last page.
401Error code: unauthorized, connection_revoked.
Codes d’erreur
unauthorizedLe jeton d’accès est absent, inconnu, expiré ou révoqué, ou a été émis avant que le compte ne reconnecte l’App. Rafraîchissez-le ; si le rafraîchissement échoue, demandez au propriétaire de reconnecter l’App.connection_revokedLe propriétaire a révoqué la connexion d’App (ou votre App a révoqué son propre jeton de rafraîchissement). Cessez les appels pour ce compte et supprimez ses jetons.
402Error code: subscription_blocked.
Codes d’erreur
subscription_blockedL’abonnement ZenHost du compte est bloqué (impayé, résilié…). La connexion est conservée : prévenez votre client, les appels refonctionnent dès que l’abonnement est rétabli.
403Error code: app_suspended, forbidden_permission.
Codes d’erreur
app_suspendedZenHost a suspendu votre App, ou ne l’autorise plus sur ce compte. Cessez les appels et contactez ZenHost.forbidden_permissionVotre App n’a pas reçu la permission que cet endpoint exige.
422Error code: validation_failed.
Codes d’erreur
validation_failedLa requête, les en-têtes ou le corps sont invalides ;details.issuesdésigne chaque problème (path,message, etmaximumquand une valeur ou une liste est trop grande).
429Error code: rate_limited.
En-tête 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.
Codes d’erreur
rate_limitedTrop d’appels sur cette connexion d’App. Attendez le nombre de secondes indiqué dansRetry-After.
500Error code: internal_error.
Codes d’erreur
internal_errorZenHost n’a pas pu répondre. Réessayez plus tard avec un délai croissant.